/* Jenish Maharjan portfolio: blue blueprint theme */
:root {
  --bg: #0A2A63;
  --bg-2: #0D3275;
  --panel: #113B88;
  --panel-2: #15469E;
  --line: rgba(173, 205, 255, 0.22);
  --line-strong: rgba(173, 205, 255, 0.5);
  --grid: rgba(143, 211, 255, 0.07);
  --text: #F2F6FF;
  --muted: #BCCDEF;
  --accent: #8FD3FF;
  --white: #FFFFFF;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--white); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.display { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.01em; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 42, 99, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1.5px solid var(--accent); border-radius: 8px;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 15px; color: var(--accent);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav-links a:hover { color: var(--white); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 16px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--white); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: end; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.hero-role { color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 20px; }
.hero h1 { font-weight: 800; font-size: clamp(56px, 9vw, 124px); line-height: 0.92; letter-spacing: -0.02em; }
.hero-lead { margin-top: 28px; max-width: 600px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-place { margin-top: 24px; color: var(--muted); font-size: 15px; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
  background: rgba(13, 50, 117, 0.85);
}
.fact { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact-num { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 48px; line-height: 1; color: var(--white); }
.fact-label { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; }
.section-head p { max-width: 460px; color: var(--muted); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pipeline */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stage { position: relative; padding: 36px 24px 0 0; border-top: 2px solid var(--line-strong); }
.stage::before {
  content: ""; position: absolute; top: -10px; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-2); border: 3px solid var(--accent);
}
.stage h3 { font-size: 21px; font-weight: 600; }
.stage .tools { margin-top: 6px; color: var(--accent); font-size: 15px; font-weight: 500; }
.stage p:last-child { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 23px; font-weight: 600; line-height: 1.25; }
.card p { color: var(--muted); font-size: 16px; }
.card .tools { color: var(--accent); font-size: 15px; font-weight: 500; margin-top: auto; padding-top: 8px; }
.card .more { color: var(--white); font-weight: 600; font-size: 15px; align-self: flex-start; padding: 6px 0; }
.card .more:hover { color: var(--accent); }
.card-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--panel-2); border: 1.5px solid var(--accent);
}
.card-featured .big { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(88px, 12vw, 148px); line-height: 0.9; color: var(--white); }
.card-featured .big-label { color: var(--accent); font-weight: 600; margin-top: 10px; }
.card-featured .body { display: flex; flex-direction: column; gap: 12px; }
.card-featured h3 { font-size: 28px; }
@media (max-width: 760px) { .card-featured { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Experience timeline */
.split { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.split > h2 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; }
.timeline { list-style: none; border-left: 2px solid var(--line-strong); display: flex; flex-direction: column; gap: 56px; }
.role { position: relative; padding-left: 36px; }
.role::before {
  content: ""; position: absolute; left: -10px; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.role-current::before { background: var(--accent); }
.role-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 6px; }
.role h3 { font-size: 24px; font-weight: 600; }
.role .when { color: var(--accent); font-size: 15px; font-weight: 500; }
.role .where { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.role ul, .groups ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; max-width: 760px; }
.role li::marker, .groups li::marker { color: var(--accent); }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 40px; margin-top: 8px; }
.groups h4 { font-size: 16px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }

/* Toolbox */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool-group { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 59, 136, 0.6); }
.tool-group h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cred { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.cred-main { background: var(--panel-2); border: 1.5px solid var(--accent); }
.cred .badge { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 48px; line-height: 1; color: var(--white); margin-bottom: 10px; }
.cred h3 { font-size: 19px; font-weight: 600; }
.cred p { color: var(--muted); font-size: 15px; }

/* Footer CTA */
.cta { padding: 96px 0 72px; }
.cta-box {
  border: 1.5px solid var(--accent); border-radius: 20px; background: var(--panel-2);
  padding: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
}
.cta-box h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; max-width: 620px; }
.cta-links { display: flex; flex-direction: column; gap: 6px; }
.cta-links a { color: var(--white); font-size: 17px; }
.cta-links a:hover { color: var(--accent); }
@media (max-width: 600px) { .cta-box { padding: 32px 24px; } }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }

/* Case study page */
.page-head { padding: 80px 0 56px; }
.page-head h1 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(52px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.02em; }
.page-head p { margin-top: 24px; max-width: 640px; font-size: 20px; color: var(--muted); }
.jump { list-style: none; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 15px;
}
.jump a:hover { border-color: var(--accent); color: var(--white); }
.jump a.hot { background: var(--white); color: var(--bg); border-color: var(--white); font-weight: 600; }
.cases { display: flex; flex-direction: column; gap: 32px; padding-bottom: 32px; }
.case {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px;
  padding: 48px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
}
.case-featured { border: 1.5px solid var(--accent); background: var(--panel); }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 24px; } }
.case-side { display: flex; flex-direction: column; gap: 20px; }
.case-side h2 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 32px; line-height: 1.1; }
.case-side .big { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 104px; line-height: 0.9; color: var(--white); }
.case-side .big-label { color: var(--accent); font-weight: 600; margin-top: -8px; }
.case-side dl { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.case-side dt { font-weight: 600; }
.case-side dd { margin: 0; color: var(--muted); }
.case-main { display: flex; flex-direction: column; gap: 28px; }
.case-main h3 { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.case-main p { max-width: 720px; }
.case-main ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.case-main li::marker { color: var(--accent); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.flow span.step { padding: 6px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.flow span.step.end { background: var(--white); color: var(--bg); border-color: var(--white); font-weight: 600; }
.flow span.arrow { color: var(--accent); }
.result { padding: 24px 28px; border-radius: var(--radius); background: var(--panel-2); border: 1.5px solid var(--accent); }
.result h3 { color: var(--white); }

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .fact-num { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
