/* =========================================================
   Mukunda Singh Khattri — Portfolio
   Design tokens carried over from the original build.
   ========================================================= */

:root {
  --background: #0f172a;
  --foreground: #ffffff;
  --card: #111827;
  --primary: #3b82f6;
  --accent: #f59e0b;
  --muted: #1e293b;
  --muted-foreground: #cbd5e1;
  --border: #1e293b;
  --radius: 0.75rem;
  --maxw: 1200px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 860px;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section-tight {
  padding: 56px 0;
}

.page-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: 16px;
}

.page-head p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--primary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted-foreground);
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: #2f74e6;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(203, 213, 225, 0.25);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.7);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(203, 213, 225, 0.2);
  color: var(--muted-foreground);
}

.badge-primary {
  background: rgba(59, 130, 246, 0.18);
  color: #93b8fb;
  border-color: rgba(59, 130, 246, 0.35);
}

.badge-accent {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-solid {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ---------- Navbar ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 16px;
  transition: padding 0.3s ease;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.site-header.scrolled .nav {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(30, 41, 59, 0.9);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.7);
}

.nav-links a.active {
  background: var(--primary);
  color: #fff;
}

.nav-cta {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(30, 41, 59, 0.9);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
  margin: 12px auto 0;
  max-width: var(--maxw);
  padding: 20px;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu.open {
  display: flex;
  animation: dropIn 0.25s ease;
}

.mobile-menu a {
  padding: 12px;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mobile-menu a.active {
  color: #93b8fb;
  background: rgba(59, 130, 246, 0.12);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-body {
  padding-top: 96px;
  min-height: 60vh;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  width: 55%;
  padding-bottom: 55%;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow::before {
  top: -12%;
  left: -12%;
  background: rgba(59, 130, 246, 0.16);
}

.hero-glow::after {
  bottom: -18%;
  right: -12%;
  background: rgba(245, 158, 11, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  margin-bottom: 22px;
}

.hero-lede {
  color: var(--muted-foreground);
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  list-style: none;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.hero-trust svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}

/* Hero portrait */

.portrait-wrap {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
}

.portrait-glow {
  position: absolute;
  inset: -8%;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.22;
  filter: blur(38px);
}

.portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}

.portrait:hover {
  transform: rotate(0deg);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}

.float-badge.tr {
  top: -22px;
  right: -18px;
}

.float-badge.bl {
  bottom: -22px;
  left: -18px;
  animation-delay: 1s;
}

.float-badge .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.float-badge .ico svg {
  width: 19px;
  height: 19px;
}

.float-badge .ico.blue {
  background: rgba(59, 130, 246, 0.18);
  color: var(--primary);
}

.float-badge .ico.amber {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent);
}

.float-badge small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.float-badge strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* ---------- Metric strip ---------- */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px;
}

.metric {
  text-align: center;
}

.metric .val {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.metric .val.blue {
  color: #60a5fa;
}

.metric .val.green {
  color: #34d399;
}

.metric .lbl {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------- Generic card grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  padding: 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature .ico svg {
  width: 23px;
  height: 23px;
}

.ico.blue {
  background: rgba(59, 130, 246, 0.14);
  color: var(--primary);
}

.ico.amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
}

.feature h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted-foreground);
  font-size: 0.925rem;
}

.feature .phase {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.feature .phase svg {
  width: 13px;
  height: 13px;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-head .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--muted);
}

.tool-head .ico svg {
  width: 19px;
  height: 19px;
}

.tool-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--border);
  color: var(--muted-foreground);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.6),
    rgba(30, 41, 59, 0.7)
  );
}

.tl-item {
  position: relative;
  margin-bottom: 26px;
  padding: 28px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  border: 3px solid var(--background);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
  transform: translateX(-1px);
}

.tl-item.current::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.28);
}

.tl-item.current {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 34px -14px rgba(59, 130, 246, 0.75);
}

.tl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tl-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.tl-item h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.tl-org {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tl-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.tl-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.tl-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ---------- Skills ---------- */

.skill-col {
  padding: 32px;
}

.skill-col h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 26px;
}

.skill {
  margin-bottom: 20px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-top .pct {
  color: var(--primary);
}

.skill-track {
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Portfolio ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--card);
  color: var(--muted-foreground);
  border: 1px solid rgba(30, 41, 59, 0.9);
  font-family: inherit;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.case-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
}

.case-card[hidden] {
  display: none;
}

.case-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.case-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.case-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-result {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--accent);
  color: #1a1205;
  padding: 8px 16px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.05rem;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
}

.case-card:hover .case-result {
  transform: rotate(0deg);
}

.case-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.case-body h3 {
  font-size: 1.6rem;
}

.case-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 6px;
}

.case-goal svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.case-metrics div {
  text-align: center;
}

.case-metrics .m-val {
  font-size: 1.1rem;
  font-weight: 800;
}

.case-metrics .m-lbl {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted-foreground);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted-foreground);
}

/* ---------- Case study detail ---------- */

.case-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  margin-bottom: 46px;
}

.case-hero svg {
  width: 100%;
  display: block;
}

.case-hero-copy {
  padding: 24px 28px 30px;
  background: linear-gradient(to bottom, rgba(11, 18, 34, 0.9), rgba(17, 24, 39, 0.85));
  border-top: 1px solid rgba(30, 41, 59, 0.9);
}

.case-hero-copy h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-top: 12px;
}

.stat-row {
  display: grid;
  gap: 14px;
}

.stat-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
}

.stat-row .s-lbl {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-row .s-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.h-ico {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.h-ico svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote {
  font-style: italic;
  color: var(--muted-foreground);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

/* ---------- Certifications ---------- */

.cert-card {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cert-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--muted);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.cert-card h3 {
  font-size: 1.1rem;
}

.cert-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cert-id {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  word-break: break-all;
  background: rgba(30, 41, 59, 0.7);
  padding: 6px 10px;
  border-radius: 8px;
}

/* ---------- Resume ---------- */

.resume-sheet {
  background: #fff;
  color: #1f2937;
  border-radius: 16px;
  padding: 46px;
}

.resume-sheet h2 {
  color: #0f172a;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.resume-sheet h3 {
  color: #0f172a;
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.resume-sheet .r-sub {
  color: #6b7280;
  font-size: 1rem;
}

.resume-sheet .r-contact {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 8px;
}

.resume-sheet .r-role {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #111827;
  margin-top: 14px;
}

.resume-sheet .r-role span:last-child {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
}

.resume-sheet .r-org {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.resume-sheet ul {
  padding-left: 20px;
  color: #374151;
  font-size: 0.9rem;
}

.resume-sheet li {
  margin-bottom: 4px;
}

/* ---------- Contact ---------- */

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
}

.contact-line .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
}

.contact-line .ico svg {
  width: 19px;
  height: 19px;
}

.contact-line small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.contact-line strong {
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-word;
}

.form-card {
  padding: 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #f87171;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #fca5a5;
}

.field.invalid .field-error {
  display: block;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 22px;
}

.form-status.ok {
  color: #34d399;
}

.form-status.err {
  color: #fca5a5;
}

/* ---------- Blog ---------- */

.post-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

.post-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.post-card h3 {
  font-size: 1.4rem;
}

.prose {
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.prose h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 38px 0 14px;
}

.prose h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: #fff;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.1));
  pointer-events: none;
}

.cta-band .wrap {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-bottom: 18px;
}

.cta-band p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}

.site-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a,
.site-footer p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.site-footer ul a:hover {
  color: var(--primary);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(17, 24, 39, 0.6);
  color: var(--muted-foreground);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover {
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.5);
}

.social-row svg {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.shown {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-tags,
  .hero-trust,
  .hero .btn-row {
    justify-content: center;
  }
  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 26px 18px;
  }
  .float-badge.tr {
    right: -6px;
  }
  .float-badge.bl {
    left: -6px;
  }
  .resume-sheet {
    padding: 26px;
  }
  .timeline {
    padding-left: 22px;
  }
  .tl-item {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .btn-row {
    flex-direction: column;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .btn-row,
  .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* Hide the resume page from the site. Delete this block to bring it back. */
a[href="resume.html"] {
  display: none !important;
}
.capability-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 18px 24px;
  overflow: hidden;
}

.capability-strip span {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.capability-strip span + span {
  border-left: 1px solid rgba(255,255,255,.12);
}

.capability-strip .blue {
  color: #60a5fa;
}

.capability-strip .green {
  color: #34d399;
}

@media (max-width: 650px) {
  .capability-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
  }

  .capability-strip span + span {
    border-left: none;
  }

  .capability-strip span:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,.12);
  }
}

