:root {
  --paper: #f2f0e9;
  --paper-bright: #fbfaf6;
  --white: #ffffff;
  --ink: #0b1f33;
  --ink-soft: #183249;
  --muted: #5e6b76;
  --line: #d8d8d1;
  --blue: #315eea;
  --blue-dark: #2147be;
  --teal: #147b6c;
  --teal-light: #d9eee9;
  --lime: #dcef8e;
  --gold: #f1b45d;
  --navy: #0a1c2d;
  --navy-soft: #102b42;
  --shadow: 0 24px 70px rgba(11, 31, 51, 0.12);
  --shadow-soft: 0 14px 36px rgba(11, 31, 51, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  letter-spacing: -0.045em;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 6.1vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h1 em {
  display: block;
  color: var(--blue);
  font-style: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  overflow: hidden;
  padding: 116px 24px 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(49, 94, 234, 0.13), transparent 26rem),
    radial-gradient(circle at 10% 72%, rgba(20, 123, 108, 0.10), transparent 28rem),
    var(--paper-bright);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.nav-shell {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 68px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(216, 216, 209, 0.85);
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.88);
  box-shadow: 0 12px 34px rgba(11, 31, 51, 0.10);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 218px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 0.94rem; letter-spacing: -0.02em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover { color: var(--ink); background: rgba(11, 31, 51, 0.055); }

nav .nav-resume {
  margin-left: 5px;
  padding-inline: 16px;
  color: #fff;
  background: var(--ink);
}

nav .nav-resume:hover { color: #fff; background: var(--blue); }

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  min-height: 600px;
  margin: 0 auto;
  padding: 28px 0 36px;
}

.hero-copy { animation: enter 480ms ease-out both; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 36px;
  padding: 8px 13px 8px 10px;
  border: 1px solid #cfd7ce;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 800;
}

.availability span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28a779;
  box-shadow: 0 0 0 5px rgba(40, 167, 121, 0.14);
}

.eyebrow,
.project-label,
.visual-label,
.degree-level,
.skill-index {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(49, 94, 234, 0.24);
}

.button-primary:hover { background: var(--blue-dark); box-shadow: 0 16px 32px rgba(49, 94, 234, 0.30); }

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover { background: #fff; box-shadow: var(--shadow-soft); }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}

.hero-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 4px;
  text-decoration-color: #b6bbc0;
}

.hero-links a:hover { color: var(--blue); }

.recruiter-card {
  position: relative;
  align-self: center;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  box-shadow: var(--shadow);
  animation: enter 560ms 70ms ease-out both;
}

.recruiter-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(49, 94, 234, 0.42);
  filter: blur(4px);
}

.recruiter-card > * { position: relative; z-index: 1; }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.card-topline p {
  margin: 0;
  color: #aab9c8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-monogram {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.92rem;
  font-weight: 950;
}

.quick-facts {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-facts div {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-facts dt {
  color: var(--lime);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.quick-facts dd { margin: 0; color: #cad5de; font-size: 0.88rem; }

.focus-block { margin-top: 24px; }

.focus-block > span {
  display: block;
  margin-bottom: 10px;
  color: #8fa3b5;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.chip-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.chip-row span {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbe5ec;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.proof-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 36px rgba(11, 31, 51, 0.055);
}

.proof-bar p {
  margin: 0;
  padding: 18px 22px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.proof-bar p + p { border-left: 1px solid var(--line); }
.proof-bar span { margin-right: 10px; color: var(--blue); font-size: 0.72rem; font-weight: 900; }

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading { margin-bottom: 44px; }
.section-heading h2 { max-width: 800px; }

.experience-section {
  border-top: 1px solid var(--line);
  background: transparent;
}

.compact-heading { max-width: 820px; }

.timeline { border-top: 1px solid var(--line); }

.role-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(34px, 8vw, 110px);
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.role-date {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.role-company {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.current-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-content h3 { font-size: clamp(1.75rem, 3vw, 2.45rem); }

.role-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.62);
}

.signal-list strong,
.signal-list span { display: block; }
.signal-list strong { margin-bottom: 6px; color: var(--blue); font-size: 0.78rem; }
.signal-list span { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.work-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.work-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(49, 94, 234, 0.22);
  filter: blur(3px);
}

.work-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); }

.work-section .section-heading h2 { color: #fff; }
.work-section .section-heading .eyebrow { color: var(--lime); }

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.62fr);
  gap: 44px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.featured-project h3 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.project-lede {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 32px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.project-detail-grid div { padding: 18px; background: #fff; }

.project-detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-grid p { color: var(--muted); font-size: 0.82rem; line-height: 1.48; }
.featured-project .tag-row span { color: var(--ink-soft); background: #e8e7e1; }

.featured-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.featured-links .button { width: auto; }

.workflow-visual {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    var(--blue);
  background-size: 34px 34px;
}

.workflow-visual .visual-label { color: #dfe6ff; }

.workflow-visual ol {
  display: grid;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-visual li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-content: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow-visual li > span { grid-row: 1 / 3; color: var(--lime); font-size: 0.72rem; font-weight: 900; }
.workflow-visual strong { line-height: 1.2; }
.workflow-visual small { color: #d5defb; }

.visual-footer { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #dfe6ff; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.visual-line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--lime), rgba(255, 255, 255, 0.25)); }

.secondary-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  min-height: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.26); }
.project-card h3 { max-width: 520px; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.project-card > p:not(.project-label) { color: #b8c5d0; }
.project-card .project-label { color: var(--lime); }

.project-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}

.project-card .tag-row span { color: #cdd9e3; background: rgba(255, 255, 255, 0.08); }

.project-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.project-link:hover { color: var(--lime); }

.accent-project {
  border-color: rgba(220, 239, 142, 0.25);
  background: linear-gradient(145deg, rgba(20, 123, 108, 0.3), rgba(255, 255, 255, 0.05));
}

.skills-section { padding-bottom: 70px; }

.skill-groups { border-top: 1px solid var(--line); }

.skill-groups article {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.skill-index { margin: 0; color: var(--muted); }

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--paper-bright);
  font-size: 0.82rem;
  font-weight: 750;
}

.education-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 100px);
  width: min(1240px, calc(100% - 32px));
  margin-bottom: 100px;
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid #d5dcf4;
  border-radius: var(--radius-xl);
  background: #e9edfa;
}

.education-intro h2 { font-size: clamp(2.3rem, 4.2vw, 4.1rem); }
.education-intro > p:not(.eyebrow) { color: var(--muted); }

.education-stack { display: grid; gap: 14px; }

.education-stack article {
  padding: 26px;
  border: 1px solid rgba(49, 94, 234, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.degree-level { color: var(--blue); }
.education-stack h3 { margin-bottom: 6px; font-size: 1.42rem; }
.education-stack p { color: var(--muted); font-size: 0.9rem; }
.undergrad-card { box-shadow: 0 12px 30px rgba(49, 94, 234, 0.09); }

.learning-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 12px;
}

.learning-grid div {
  padding-top: 22px;
  border-top: 2px solid rgba(49, 94, 234, 0.22);
}

.learning-grid h3 { font-size: 1rem; }
.learning-grid p { color: var(--muted); font-size: 0.86rem; }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 28px;
  padding: clamp(38px, 6vw, 68px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 95% 10%, rgba(49, 94, 234, 0.54), transparent 22rem),
    linear-gradient(135deg, var(--navy), #17354d);
  box-shadow: var(--shadow);
}

.contact-copy .eyebrow { color: var(--lime); }
.contact-copy h2 { max-width: 720px; color: #fff; }
.contact-copy > p:last-child { max-width: 680px; color: #b9c7d2; }

.contact-actions { display: grid; gap: 16px; }

.contact-primary {
  justify-content: space-between;
  color: var(--ink);
  background: var(--lime);
}

.contact-primary:hover { background: #e7f6aa; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2); }

.contact-actions > div { display: flex; flex-wrap: wrap; gap: 18px; }

.contact-actions > div a {
  color: #c9d5de;
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.contact-actions > div a:hover { color: #fff; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 52px;
  color: var(--muted);
  font-size: 0.8rem;
}

footer p { margin: 0; }
footer p:first-child { display: flex; gap: 12px; }
footer strong { color: var(--ink); }

@keyframes enter {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@media (min-width: 1440px) {
  .nav-shell,
  .hero-shell,
  .proof-bar,
  .section,
  .work-inner,
  .contact-section,
  footer {
    width: min(1560px, calc(100% - 96px));
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1.3fr) minmax(430px, 0.7fr);
    gap: clamp(64px, 5vw, 96px);
  }

  h1 { max-width: 960px; font-size: clamp(4.7rem, 5vw, 6rem); }
  .hero-summary { max-width: 840px; }
  .section-heading h2 { max-width: 980px; }
  .role-card { grid-template-columns: 290px minmax(0, 1fr); }

  .education-section {
    width: min(1620px, calc(100% - 72px));
  }
}

@media (max-width: 1040px) {
  .hero-shell { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 820px; }
  .recruiter-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; }
  .card-topline { grid-column: 1 / -1; margin-bottom: 8px; }
  .quick-facts { grid-column: 1; }
  .focus-block { grid-column: 2; margin-top: 0; }
  .featured-project { grid-template-columns: 1fr; }
  .workflow-visual ol { grid-template-columns: repeat(4, 1fr); }
  .workflow-visual li { border-right: 1px solid rgba(255,255,255,0.18); border-bottom: 0; }
  .signal-list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .brand-copy { display: none; }
  .brand { min-width: auto; }
  nav a { padding-inline: 9px; }
  .proof-bar { grid-template-columns: repeat(2, 1fr); }
  .proof-bar p:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .proof-bar p:nth-child(4) { border-top: 1px solid var(--line); }
  .role-card,
  .education-section,
  .contact-section { grid-template-columns: 1fr; }
  .role-card { gap: 18px; }
  .secondary-projects { grid-template-columns: 1fr; }
  .skill-groups article { grid-template-columns: 1fr; gap: 14px; }
  .learning-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 24px; }
  .site-header { padding: 18px 16px 0; }
  .nav-shell {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 58px;
    margin: 0 auto;
    transform: none;
  }
  .brand-mark { width: 40px; height: 40px; }
  nav { min-width: 0; overflow-x: auto; }
  nav a { flex: 0 0 auto; font-size: 0.77rem; }
  nav a[href="#education"] { display: none; }
  .hero-shell { padding: 54px 0 58px; gap: 36px; }
  .availability { margin-bottom: 28px; }
  h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero-summary { font-size: 1.02rem; }
  .button { width: 100%; justify-content: space-between; }
  .hero-links { justify-content: center; }
  .recruiter-card { display: block; padding: 24px; }
  .quick-facts div { grid-template-columns: 105px 1fr; }
  .proof-bar p { padding: 15px; font-size: 0.74rem; }
  .section { width: min(100% - 32px, 1180px); padding: 76px 0; }
  .section-heading { margin-bottom: 38px; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .work-inner { width: min(100% - 32px, 1180px); }
  .featured-project { padding: 24px; }
  .workflow-visual { padding: 22px; }
  .workflow-visual ol { grid-template-columns: 1fr; }
  .workflow-visual li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .project-card { min-height: 0; padding: 26px; }
  .project-icon { margin-bottom: 24px; }
  .education-section { width: min(100% - 20px, 1240px); margin-bottom: 72px; padding: 30px 22px; }
  .contact-section { width: min(100% - 32px, 1180px); padding: 34px 24px; }
  .contact-primary { font-size: 0.76rem; }
  footer { display: grid; width: min(100% - 32px, 1180px); }
  footer p:first-child { display: grid; gap: 0; }
}

/* ServiceNow case study */
.case-study-page { background: var(--paper-bright); }

.case-header {
  position: relative;
  overflow: hidden;
  padding: 128px 24px 78px;
  background:
    radial-gradient(circle at 88% 12%, rgba(49, 94, 234, 0.16), transparent 28rem),
    linear-gradient(rgba(11, 31, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.035) 1px, transparent 1px),
    var(--paper-bright);
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.case-hero-copy h1 { max-width: 820px; }

.case-lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.58;
}

.case-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-soft);
  gap: 1px;
}

.case-stat-grid div { min-height: 148px; padding: 24px; background: #fff; }
.case-stat-grid dt { color: var(--blue); font-size: 2.15rem; font-weight: 950; letter-spacing: -0.06em; }
.case-stat-grid dd { margin: 8px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 8vw, 110px);
}

.case-intro h2 { max-width: 630px; }
.case-intro-copy { padding-top: 30px; color: var(--muted); font-size: 1.04rem; }

.case-image-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 96px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #d5dcf4;
  border-radius: var(--radius-xl);
  background: #e9edfa;
}

.case-image-copy h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
.case-image-copy > p:last-child { color: var(--muted); }

.portal-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 51, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(11, 31, 51, 0.15);
}

.portal-preview img { display: block; width: 100%; height: auto; }
.portal-preview figcaption { padding: 11px 15px; color: var(--muted); font-size: 0.72rem; }

.case-band { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.case-band::after { content: ""; position: absolute; right: -180px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%; background: rgba(49, 94, 234, 0.22); }
.case-band-inner { position: relative; z-index: 1; }
.case-band .eyebrow { color: var(--lime); }
.case-band h2, .case-band h3 { color: #fff; }

.case-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.case-feature-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.case-feature-grid article > span { color: var(--lime); font-size: 0.72rem; font-weight: 900; }
.case-feature-grid h3 { margin-top: 36px; font-size: 1.55rem; }
.case-feature-grid p { color: #b8c5d0; font-size: 0.9rem; }

.lifecycle {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.lifecycle p { margin: 0; }
.lifecycle span, .lifecycle small { display: block; }
.lifecycle span { color: #fff; font-weight: 900; }
.lifecycle small { margin-top: 4px; color: #9fb0be; }
.lifecycle b { color: var(--lime); }

.case-revision {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.75fr);
  gap: clamp(52px, 9vw, 120px);
  align-items: center;
}

.revision-copy > p:not(.eyebrow) { color: var(--muted); }

.plain-checklist { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.plain-checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); font-weight: 700; }
.plain-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 950; }

.article-sample {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.article-sample-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.article-sample-top strong { color: var(--blue); }
.article-sample h3 { margin: 24px 0 6px; font-size: 1.8rem; }
.article-byline { color: var(--muted); font-size: 0.78rem; }
.article-callout { margin: 22px 0; padding: 16px; border-left: 4px solid var(--blue); background: #f2f5ff; }
.article-callout p { margin-top: 4px; color: var(--muted); font-size: 0.84rem; }
.article-sample h4 { margin: 20px 0 8px; }
.article-sample ol { color: var(--muted); font-size: 0.86rem; }
.article-table { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.article-table p { display: grid; grid-template-columns: 140px 1fr; margin: 0; padding: 11px 13px; font-size: 0.78rem; }
.article-table p + p { border-top: 1px solid var(--line); }
.article-table span { color: var(--muted); }

.case-scope {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
  gap: 18px;
  padding-top: 24px;
}

.scope-card, .scope-note { padding: clamp(28px, 4vw, 46px); border-radius: var(--radius-lg); }
.scope-card { border: 1px solid #d5dcf4; background: #e9edfa; }
.scope-card h2 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); }
.case-skill-list span { background: rgba(255,255,255,0.75); }
.scope-note { color: #fff; background: var(--blue); }
.scope-note h3 { color: #fff; }
.scope-note p { color: #e0e7ff; }
.scope-note a { display: inline-flex; gap: 12px; margin-top: 18px; color: #fff; font-size: 0.86rem; font-weight: 850; text-underline-offset: 4px; }
.case-contact { margin-top: 0; }

/* Sales activity tracker case study */
.sales-stat-grid dt { font-size: 1.55rem; letter-spacing: -0.045em; }
.case-inline-link { color: var(--blue); }
.case-inline-link:hover { color: var(--blue-dark); }
.sales-preview { border-color: rgba(49, 94, 234, 0.2); }

.tracker-sample {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.tracker-sample-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: #fff;
  background: var(--navy);
}

.tracker-sample-top span { font-weight: 900; }
.tracker-sample-top strong { color: var(--lime); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; }

.tracker-columns,
.tracker-row {
  display: grid;
  grid-template-columns: 1.05fr 0.82fr 0.9fr 1.25fr;
  align-items: center;
}

.tracker-columns {
  color: #fff;
  background: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tracker-columns span,
.tracker-row span { padding: 12px 13px; }

.tracker-row { color: var(--ink-soft); font-size: 0.8rem; }
.tracker-row + .tracker-row { border-top: 1px solid var(--line); }
.tracker-row:nth-child(even) { background: #f2f7fb; }
.tracker-row .check-clear { color: var(--teal); font-weight: 850; }
.tracker-row .check-review { color: #92400e; background: #fef3c7; font-weight: 850; }
.tracker-row .check-missing { color: #991b1b; background: #fee2e2; font-weight: 850; }

.tracker-note {
  margin: 20px;
  padding: 16px;
  border-left: 4px solid var(--blue);
  background: var(--blue-pale, #e9edfa);
}

.tracker-note p { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

@media (min-width: 1440px) {
  .case-hero { width: min(1560px, calc(100% - 48px)); }
  .case-image-section { width: min(1620px, calc(100% - 72px)); }
}

@media (max-width: 920px) {
  .case-hero,
  .case-intro,
  .case-image-section,
  .case-revision,
  .case-scope { grid-template-columns: 1fr; }
  .case-hero { align-items: start; }
  .case-stat-grid { max-width: 680px; }
  .case-intro-copy { padding-top: 0; }
}

@media (max-width: 680px) {
  .case-header { padding: 18px 16px 62px; }
  .case-hero { padding-top: 54px; }
  .case-stat-grid { grid-template-columns: 1fr 1fr; }
  .case-stat-grid div { min-height: 132px; padding: 18px; }
  .case-stat-grid dt { font-size: 1.8rem; }
  .case-image-section { width: min(100% - 20px, 1320px); margin-bottom: 72px; padding: 24px 18px; }
  .case-feature-grid { grid-template-columns: 1fr; }
  .case-feature-grid article { min-height: 0; }
  .lifecycle { grid-template-columns: 1fr; gap: 10px; }
  .lifecycle b { transform: rotate(90deg); justify-self: start; }
  .article-sample { padding: 22px; }
  .article-sample-top { display: grid; gap: 4px; }
  .article-table p { grid-template-columns: 1fr; gap: 3px; }
  .featured-links { display: grid; }
  .featured-links .button { width: 100%; }
  .tracker-sample-top { display: grid; gap: 5px; }
  .tracker-columns { display: none; }
  .tracker-row { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .tracker-row span { display: grid; gap: 2px; }
  .tracker-row span:nth-child(3)::before { content: "Outcome"; color: var(--muted); font-size: 0.66rem; font-weight: 850; text-transform: uppercase; }
  .tracker-row span:nth-child(4)::before { content: "Units"; color: inherit; font-size: 0.66rem; font-weight: 850; text-transform: uppercase; }
}

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

/* Design-principle audit: emphasis, proximity, Fitts targets, palette, and rhythm */
nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.availability {
  border-color: #ccd8ff;
  color: var(--blue-dark);
}

.availability span {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 94, 234, 0.13);
}

.current-badge {
  color: var(--blue-dark);
  background: var(--blue-light);
}

.accent-project {
  border-color: rgba(49, 94, 234, 0.28);
  background: linear-gradient(145deg, rgba(49, 94, 234, 0.26), rgba(255, 255, 255, 0.05));
}

.contact-actions > div {
  gap: 8px;
}

.contact-actions > div a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-actions > div a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 769px) {
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .education-section {
    margin-bottom: 80px;
  }
}

/* Final audit refinements: separate row/column rhythm and complete the palette */
.site-header {
  background:
    radial-gradient(circle at 82% 12%, rgba(49, 94, 234, 0.13), transparent 26rem),
    radial-gradient(circle at 10% 72%, rgba(220, 239, 142, 0.20), transparent 28rem),
    var(--paper-bright);
}

.current-badge {
  background: #e3e9fb;
}

.education-section {
  column-gap: clamp(42px, 8vw, 100px);
  row-gap: 38px;
}

@media (max-width: 680px) {
  .brand {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}
