:root {
  --ink: #0a1826;
  --ink-2: #11263a;
  --ink-3: #20394f;
  --paper: #f6f1e8;
  --paper-2: #ebe4d9;
  --paper-3: #ddd3c5;
  --brass: #d6a62d;
  --brass-deep: #77530b;
  --brass-soft: #f1d273;
  --slate: #53616d;
  --slate-2: #a8b7c3;
  --line: #d5ccbe;
  --line-dark: rgba(214, 225, 233, .16);
  --white: #fffdf8;
  --display: "Newsreader", Georgia, serif;
  --body: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(3.25rem, 7.4vw, 6.65rem);
  --fs-h2: clamp(2.25rem, 4.15vw, 4rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.7rem);
  --fs-lead: clamp(1.075rem, 1.4vw, 1.28rem);
  --fs-body: clamp(1rem, .97rem + .14vw, 1.065rem);
  --fs-sm: .875rem;
  --fs-label: .72rem;
  --content: 1200px;
  --hero-split: calc(50% + min(7vw, 92px));
  --header-mobile: 72px;
  --header-desktop: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-kerning: normal;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ink);
}

a { color: inherit; }
img, svg { max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { margin-bottom: 0; font-kerning: normal; letter-spacing: normal; }
h1, h2 { font-family: var(--display); text-wrap: balance; }

h2 {
  color: var(--ink);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: .99;
  letter-spacing: .008em;
}

h3 {
  color: var(--ink);
  font-size: var(--fs-h3);
  line-height: 1.28;
  overflow-wrap: break-word;
}

ul, ol, dl { margin-top: 0; margin-bottom: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-mobile);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 24, 38, .97);
  color: var(--white);
  transition: background-color .25s, border-color .25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-dark);
  background: rgba(10, 24, 38, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header.menu-active {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-shell {
  position: relative;
  z-index: 2;
  display: flex;
  height: var(--header-mobile);
  align-items: center;
  justify-content: space-between;
}

.wordmark, .desktop-nav a, .mobile-menu a { text-decoration: none; }

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: .018em;
  line-height: 1;
}

.wordmark::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--brass);
  background: var(--brass);
  box-shadow: 4px 4px 0 transparent, 4px 4px 0 1px var(--brass);
  content: "";
}

.desktop-nav { display: none; }
.desktop-nav a { font-size: .82rem; font-weight: 600; letter-spacing: .012em; }

.desktop-nav a:not(.nav-cta) { position: relative; color: var(--slate-2); }

.desktop-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 6px;
  bottom: 4px;
  left: 6px;
  height: 1px;
  background: var(--brass);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: left;
  transition: opacity .2s, transform .2s;
}

.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--white); }
.desktop-nav a.is-active::after, .desktop-nav a:hover::after { opacity: 1; transform: scaleX(1); }

.nav-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  gap: 5px;
  place-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: opacity .2s, transform .2s;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 1;
  inset: 0;
  visibility: hidden;
  overflow-y: auto;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transition: opacity .25s;
}

.mobile-menu::before {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  pointer-events: none;
}

.mobile-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; }

.mobile-menu-inner {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding-top: 96px;
  padding-bottom: 48px;
}

.mobile-menu a:not(.mobile-menu-cta) {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  letter-spacing: .01em;
}

.mobile-menu a.is-active { color: var(--brass-soft); }
.mobile-menu-cta { margin-top: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 108px 0 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 42px;
}

.hero-copy { min-width: 0; padding-bottom: 20px; }

.eyebrow {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--slate);
  font: 600 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .14em;
}

.eyebrow::before { width: 7px; height: 7px; flex: 0 0 auto; background: var(--brass); content: ""; }

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: .91;
}

.hero h1 span { display: block; }
.hero h1 span:last-child { position: relative; width: max-content; margin-left: clamp(22px, 8vw, 92px); }

.hero h1 span:last-child::after {
  position: absolute;
  right: -54px;
  bottom: .11em;
  width: 44px;
  height: 1px;
  background: var(--brass);
  content: "";
}

.hero-role {
  max-width: 32ch;
  margin: 30px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.1rem, 1.4vw, 1.36rem);
  font-weight: 700;
  line-height: 1.38;
}

.hero-lead {
  max-width: 61ch;
  margin: 0;
  color: var(--slate);
  font-size: clamp(1rem, 1.18vw, 1.17rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 30px;
}

.button, .text-link, .certification-item a, .award-item a, .credential, .contact-channels a, .site-footer a {
  min-width: 44px;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.button-primary { border-color: var(--brass); background: var(--brass); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { border-color: var(--brass-soft); background: var(--brass-soft); }
.button-secondary { border-color: var(--ink-3); }

.hero-actions .button:not(.button-primary) {
  padding-inline: 2px;
  border-width: 0 0 1px;
  border-color: var(--ink);
  border-radius: 0;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 8px 2px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.text-link::after { margin-left: 7px; content: "↗"; }

.hero-portrait {
  position: relative;
  width: min(100%, 420px);
  min-width: 0;
  margin-inline: auto;
  padding: 34px 18px 0;
  isolation: isolate;
}

.hero-portrait::before { position: absolute; z-index: -2; inset: 8% 0 0; background: var(--ink); content: ""; }

.hero-portrait::after {
  position: absolute;
  z-index: -1;
  inset: 14% 7% 5% 14%;
  border: 1px solid rgba(214, 166, 45, .7);
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

.hero-arc { display: none; }
.hero-portrait picture, .hero-portrait img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }

/* Impact ledger */
.metrics { position: relative; z-index: 2; background: var(--brass); color: var(--ink); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-inline: 0;
  border-right: 1px solid rgba(10, 24, 38, .28);
  border-left: 1px solid rgba(10, 24, 38, .28);
}

.metric {
  position: relative;
  min-width: 0;
  padding: 25px clamp(14px, 3vw, 28px) 24px;
  border-right: 1px solid rgba(10, 24, 38, .28);
  border-bottom: 1px solid rgba(10, 24, 38, .28);
  text-align: left;
}

.metric:nth-child(2n) { border-right: 0; }
.metric:nth-child(n+3) { border-bottom: 0; }

.metric::before {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(10, 24, 38, .54);
  font: 600 .62rem/1 var(--mono);
  letter-spacing: .08em;
}

.metric:nth-child(1)::before { content: "I"; }
.metric:nth-child(2)::before { content: "II"; }
.metric:nth-child(3)::before { content: "III"; }
.metric:nth-child(4)::before { content: "IV"; }

.metric-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: .95;
}

.metric-label {
  display: block;
  max-width: 19ch;
  margin-top: 10px;
  font: 700 clamp(.62rem, 1.2vw, .72rem)/1.45 var(--mono);
  letter-spacing: .1em;
}

/* Shared section system */
.section {
  position: relative;
  padding-block: clamp(88px, 10vw, 152px);
  overflow: clip;
  scroll-margin-top: var(--header-mobile);
}

.section::after {
  position: absolute;
  z-index: 0;
  top: clamp(42px, 6vw, 88px);
  right: max(20px, calc((100vw - var(--content)) / 2));
  color: currentColor;
  content: "";
  font-family: var(--display);
  font-size: clamp(7rem, 17vw, 14rem);
  font-weight: 500;
  line-height: .8;
  opacity: .035;
  pointer-events: none;
}

#about::after { content: "01"; }
#experience::after { content: "02"; }
#projects::after { content: "03"; }
#skills::after { content: "04"; }
#certifications::after { content: "05"; }
#awards::after { content: "06"; }
#education::after { content: "07"; }
#beyond::after { content: "08"; }

.section > .container { position: relative; z-index: 1; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-heading { max-width: 780px; }
.section-heading-wide { margin-bottom: clamp(48px, 6vw, 84px); }

.section-label {
  display: flex;
  width: min(100%, 390px);
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
  padding: 0;
  background: none;
  color: var(--brass-deep);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .15em;
}

.section-label::after {
  height: 1px;
  flex: 1;
  background: currentColor;
  content: "";
  opacity: .45;
}

.section-label-dark { color: var(--brass-soft); }

/* About */
.about {
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(10,24,38,.035) calc(50% - 1px), rgba(10,24,38,.035) 50%, transparent 50%);
}

.about-grid, .contact-grid, .education-grid { display: grid; gap: 52px; }
.about-content { min-width: 0; max-width: 760px; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 25px; color: var(--slate); }

.prose p:first-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.1vw, 1.78rem);
  font-weight: 500;
  letter-spacing: .006em;
  line-height: 1.42;
}

.prose p:last-child {
  margin: 43px 0 0;
  padding: 24px 0;
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 500;
  letter-spacing: .006em;
  line-height: 1.42;
}

.domain-block { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--ink); }

.domain-block h3 {
  margin-bottom: 18px;
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tag-list, .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  position: relative;
  padding: 8px 0 8px 14px;
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.tag-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brass);
  content: "";
}

.identity-details { display: grid; margin: 34px 0 0; border-top: 1px solid var(--line); }
.identity-details div { display: grid; gap: 5px; padding-block: 17px; border-bottom: 1px solid var(--line); }

.identity-details dt {
  color: var(--slate);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.identity-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.identity-details a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration-color: var(--brass-deep);
  text-underline-offset: 6px;
}

/* Experience */
.experience { background: var(--paper-2); }
.experience-list { border-top: 2px solid var(--ink); }

.experience-entry {
  position: relative;
  min-width: 0;
  padding-block: clamp(46px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.experience-entry::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--brass);
  content: "";
}

.experience-company-line, .degree-topline { display: flex; min-width: 0; flex-direction: column; gap: 8px; }

.experience-company-line h3, .degree-topline h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: .006em;
  line-height: 1.03;
  text-wrap: balance;
}

.experience-company-line span, .experience-entry time, .experience-entry .date-range,
.degree time, .degree .date-range, .award-year {
  color: var(--slate);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.company-note { max-width: 68ch; margin: 14px 0 30px; color: var(--slate); font-style: italic; }

.role-progression {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0 0 36px;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--brass-deep);
  list-style: none;
}

.role-progression li, .single-role { position: relative; display: grid; gap: 5px; }
.role-progression li { padding-block: 13px; }

.role-progression li::before {
  position: absolute;
  top: 21px;
  left: -35px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper-2);
  background: var(--brass-deep);
  box-shadow: 0 0 0 1px var(--brass-deep);
  content: "";
}

.role-progression li:not(:last-child) { border-bottom: 1px solid var(--line); }
.single-role { margin-bottom: 28px; padding: 14px 0 14px 28px; border-left: 2px solid var(--brass); }

.experience-bullets {
  display: grid;
  max-width: 1040px;
  gap: 13px;
  padding-left: 23px;
  color: var(--slate);
}

.experience-bullets li { padding-left: 4px; }
.experience-bullets li::marker { color: var(--brass-deep); }

.recognition {
  display: block;
  margin: 40px 0 0;
  padding: 19px 0;
  border-top: 2px solid var(--brass);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font: 700 var(--fs-label)/1.65 var(--mono);
  letter-spacing: .1em;
}

/* Project case files */
.projects {
  overflow: hidden;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 20px;
  margin-bottom: 42px;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
}

.project-filters button {
  position: relative;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--slate-2);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.project-filters button::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.project-filters button:hover, .project-filters button[aria-pressed="true"] { color: var(--white); }
.project-filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.project-grid { display: grid; border-top: 1px solid var(--line-dark); }

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  transition: background-color .25s;
}

.project-card::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.project-card.is-filtered { display: none; }
.project-card:hover::before, .project-card:focus-within::before { transform: scaleX(1); }
.project-card:hover h3, .project-card:focus-within h3 { color: var(--brass-soft); }

.project-featured {
  grid-column: 1 / -1;
  margin-bottom: 26px;
  padding: clamp(32px, 5vw, 58px);
  overflow: hidden;
  border: 0;
  border-top: 5px solid var(--brass);
  background: var(--paper);
  color: var(--ink);
}

.project-featured::before { display: none; }

.project-featured::after {
  position: absolute;
  right: -15px;
  bottom: -47px;
  color: rgba(10,24,38,.09);
  content: "01";
  font-family: var(--display);
  font-size: clamp(10rem, 24vw, 19rem);
  font-weight: 500;
  line-height: .8;
  pointer-events: none;
}

.project-featured:hover h3, .project-featured:focus-within h3 { color: var(--ink); }

.project-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.project-index, .project-kicker, .project-status {
  color: var(--brass-soft);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .12em;
}

.project-featured .project-index, .project-featured .project-kicker, .project-featured .project-status { color: var(--ink); }

.role-badge {
  max-width: 24ch;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--slate-2);
  font: 700 .68rem/1.45 var(--mono);
  letter-spacing: .04em;
  text-align: right;
}

.project-featured .role-badge { color: var(--ink); }

.project-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.9vw, 2.05rem);
  font-weight: 500;
  letter-spacing: .007em;
  line-height: 1.08;
  transition: color .2s;
  text-wrap: balance;
}

.project-featured h3 { color: var(--ink); font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1; }
.project-kicker { margin-bottom: 14px; }
.project-meta, .project-description { position: relative; z-index: 1; color: var(--slate-2); }
.project-featured .project-meta, .project-featured .project-description { color: rgba(10,24,38,.78); }
.project-meta { margin-bottom: 22px; font-size: var(--fs-sm); }
.project-meta span { padding-inline: 4px; color: var(--brass-soft); }
.project-featured .project-meta span { color: var(--ink); }
.project-description { margin-bottom: 24px; }
.tech-list { position: relative; z-index: 1; gap: 5px 0; margin-bottom: 24px; }

.tech-list li { color: var(--slate-2); font: 700 .67rem/1.45 var(--mono); letter-spacing: .035em; }
.tech-list li:not(:last-child)::after { padding-inline: 9px; color: var(--brass); content: "/"; }
.project-featured .tech-list li { color: var(--ink); }
.project-featured .tech-list li:not(:last-child)::after { color: rgba(10,24,38,.55); }

.project-status { margin: auto 0 0; padding-top: 12px; }

/* Capability matrix */
.skills-list { border-top: 2px solid var(--ink); counter-reset: capability; }

.skill-group {
  display: grid;
  gap: 22px;
  padding-block: 31px;
  border-bottom: 1px solid var(--line);
  counter-increment: capability;
}

.skill-group h3 {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink);
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.45;
  text-transform: uppercase;
}

.skill-group h3::before {
  color: var(--brass-deep);
  content: counter(capability, decimal-leading-zero);
  font: 700 .7rem/1.7 var(--mono);
}

.skill-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0 24px;
}

.skill-tags li { padding: 9px 0 9px 15px; border-bottom: 1px solid rgba(83,97,109,.18); background: transparent; }
.skill-tags em { color: var(--slate); }

/* Credentials */
.certifications { background: var(--paper-2); }
.certification-grid { display: grid; border-top: 2px solid var(--ink); }

.certification-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px 16px;
  min-width: 0;
  padding: 26px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.cert-number { color: var(--brass-deep); font: 700 var(--fs-label)/1.5 var(--mono); }

.certification-item h3 {
  padding-right: 12px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.42;
}

.certification-item p { margin: 7px 0 0; color: var(--slate); font-size: var(--fs-sm); }

.certification-item a {
  grid-column: 2;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration-color: var(--brass-deep);
  text-underline-offset: 6px;
}

/* Recognition */
.awards-list { display: grid; border-top: 1px solid var(--line-dark); }

.award-item {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 33px 0;
  border-bottom: 1px solid var(--line-dark);
}

.award-year { color: var(--brass-soft); }

.award-item h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: .006em;
  line-height: 1.02;
  text-wrap: balance;
}

.award-item p { margin: 9px 0 0; color: var(--slate-2); }

.award-item a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  color: var(--white);
  font-weight: 700;
  text-decoration-color: var(--brass);
  text-underline-offset: 6px;
}

/* Education */
.degree { padding-top: 32px; border-top: 2px solid var(--ink); }
.degree-topline p { margin: 10px 0 0; color: var(--slate); }

.cgpa {
  display: inline-block;
  margin: 28px 0 24px;
  padding: 8px 0 5px;
  border-bottom: 3px solid var(--brass);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1;
}

.degree > p:not(.cgpa) { max-width: 68ch; color: var(--slate); }
.education-credentials { margin-top: 48px; border-top: 1px solid var(--ink); }

.credential {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.credential strong, .credential small { display: block; }
.credential small { margin-top: 4px; color: var(--slate); }

/* Beyond work */
.beyond { background: var(--paper-2); }

.beyond-list {
  display: grid;
  padding: 0;
  border-top: 2px solid var(--ink);
  counter-reset: beyond;
  list-style: none;
}

.beyond-list li {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 22px 0 22px 42px;
  border-bottom: 1px solid var(--line);
  counter-increment: beyond;
  font-size: var(--fs-sm);
}

.beyond-list li::before {
  position: absolute;
  top: 25px;
  left: 0;
  color: var(--brass-deep);
  content: counter(beyond, decimal-leading-zero);
  font: 700 .68rem/1.5 var(--mono);
}

.beyond-list span { color: var(--slate); }

/* Contact and footer */
.contact {
  background-color: var(--ink);
  background-image: linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.035) 50%, transparent 50.1%);
}

.contact-grid { position: relative; }
.contact h2 { max-width: 10ch; font-size: clamp(2.75rem, 5.5vw, 5.5rem); letter-spacing: .012em; line-height: .96; }
.contact-lead { max-width: 52ch; margin: 27px 0 0; color: var(--slate-2); font-size: var(--fs-lead); }
.contact-channels { min-width: 0; align-self: end; }

.button.contact-primary {
  width: 100%;
  min-height: 108px;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 38px;
  padding: 12px 18px 18px;
  border: 0;
  border-bottom: 2px solid var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.button.contact-primary:hover, .button.contact-primary:focus-visible {
  border-color: var(--brass-soft);
  background: var(--brass-soft);
  color: var(--ink);
}

.contact-primary span {
  color: var(--ink);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-primary strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.05;
}

.contact-channels dl { margin-bottom: 0; border-top: 1px solid var(--line-dark); }
.contact-channels dl div { display: grid; gap: 7px; padding-block: 16px; border-bottom: 1px solid var(--line-dark); }

.contact-channels dt {
  color: var(--slate-2);
  font: 700 var(--fs-label)/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-channels dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.contact-channels dd a { display: inline-flex; min-height: 44px; align-items: center; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.site-footer { background: var(--ink); color: var(--slate-2); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-block: 25px 34px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner p { margin: 0; font-size: var(--fs-sm); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-inner a { display: inline-flex; min-height: 44px; align-items: center; color: var(--slate-2); font-size: var(--fs-sm); text-decoration-color: var(--brass); text-underline-offset: 6px; }

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--brass);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s;
  place-items: center;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }

/* Motion and deep-link stability */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms cubic-bezier(.22,.61,.36,1), transform 550ms cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Defer only the long, below-the-fold ledgers. Keeping the opening chapters live
   preserves a fast first paint while avoiding unnecessary initial layout work. */
#projects, #skills, #certifications, #awards, #education, #beyond, #contact, .site-footer {
  content-visibility: auto;
}
#projects { contain-intrinsic-size: auto 7000px; }
#skills { contain-intrinsic-size: auto 4300px; }
#certifications { contain-intrinsic-size: auto 2500px; }
#awards { contain-intrinsic-size: auto 1400px; }
#education { contain-intrinsic-size: auto 1600px; }
#beyond { contain-intrinsic-size: auto 1500px; }
#contact { contain-intrinsic-size: auto 1200px; }
.site-footer { contain-intrinsic-size: auto 150px; }
.has-deep-link #projects, .has-deep-link #skills, .has-deep-link #certifications,
.has-deep-link #awards, .has-deep-link #education, .has-deep-link #beyond,
.has-deep-link #contact, .has-deep-link .site-footer { content-visibility: visible; }

@media (hover: hover) {
  .button:hover, .text-link:hover, .certification-item a:hover,
  .award-item a:hover, .credential:hover, .site-footer a:hover { color: var(--brass-deep); }
  .section-dark .award-item a:hover, .site-footer a:hover { color: var(--brass-soft); }
  .credential:hover { color: var(--brass-deep); }
}

@media (min-width: 560px) {
  .hero-copy { padding-bottom: 34px; }
  .hero-portrait { width: min(100%, 480px); padding-inline: 25px; }
  .identity-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-details div { padding-right: 24px; }
  .identity-details div + div { padding-left: 24px; border-left: 1px solid var(--line); }
  .contact-channels dl div { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
}

@media (min-width: 768px) {
  .project-grid, .certification-grid, .beyond-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-featured { grid-column: 1 / -1; }
  .project-card:not(.project-featured) { padding: 38px 32px; }
  .project-card:not(.project-featured):nth-child(even) { border-right: 1px solid var(--line-dark); }
  .certification-item { padding: 30px 26px; }
  .certification-item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .beyond-list li { padding-right: 28px; }
  .beyond-list li:nth-child(even) { padding-left: 70px; border-left: 1px solid var(--line); }
  .beyond-list li:nth-child(even)::before { left: 28px; }

  .awards-list {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    border: 1px solid var(--line-dark);
  }

  .award-item { padding: 38px; }

  .award-item:first-child {
    grid-row: span 2;
    align-content: end;
    padding: clamp(42px, 6vw, 76px);
    border-top: 4px solid var(--brass);
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
    background: var(--ink-2);
    color: var(--white);
  }

  .award-item:first-child .award-year { color: var(--brass-soft); }
  .award-item:first-child h3,
  .award-item:first-child a { color: var(--white); }
  .award-item:first-child p { color: var(--slate-2); }

  .award-item:first-child h3 { max-width: 9ch; font-size: clamp(2.35rem, 4vw, 3.9rem); }
  .award-item:last-child { border-bottom: 0; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .site-header, .nav-shell { height: var(--header-desktop); }
  .nav-toggle, .mobile-menu { display: none; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1vw, 14px);
  }

  .desktop-nav a {
    display: inline-flex;
    min-width: 42px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding-inline: 5px;
  }

  .desktop-nav .nav-cta {
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--brass);
    background: var(--brass);
    color: var(--ink);
    font-weight: 800;
  }

  .section { scroll-margin-top: var(--header-desktop); }

  .hero {
    display: grid;
    min-height: clamp(760px, 88svh, 940px);
    align-items: stretch;
    padding: var(--header-desktop) 0 0;
    background: linear-gradient(90deg, var(--paper) 0 var(--hero-split), var(--ink) var(--hero-split) 100%);
  }

  .hero::after {
    position: absolute;
    top: var(--header-desktop);
    right: 0;
    bottom: 0;
    left: var(--hero-split);
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    content: "";
  }

  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(350px, 5fr); gap: 0; }
  .hero-copy { align-self: center; padding: 56px clamp(52px, 7vw, 102px) 72px 0; }
  .hero h1 { font-size: clamp(5rem, 7.4vw, 6.65rem); }
  .hero-lead { max-width: 55ch; }

  .hero-portrait {
    width: calc(100% + 42px);
    max-width: 540px;
    align-self: end;
    margin-right: -20px;
    padding: 70px 0 0 22px;
  }

  .hero-portrait::before { inset: 11% -80vw 0 -4%; }
  .hero-portrait::after { inset: 18% 3% 6% 13%; }
  .metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .metric {
    min-height: 146px;
    padding: 32px 28px 26px;
    border-right: 1px solid rgba(10,24,38,.28);
    border-bottom: 0;
  }

  .metric:nth-child(2n) { border-right: 1px solid rgba(10,24,38,.28); }
  .metric:last-child { border-right: 0; }
  .about-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(64px, 9vw, 124px); }
  .about-heading { position: sticky; top: 128px; align-self: start; }
  .about-heading h2 { max-width: 9.5ch; }

  .experience-company-line, .degree-topline, .role-progression li, .single-role {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .experience-company-line, .degree-topline { display: grid; gap: 36px; }

  .experience-company-line span, .role-progression time, .role-progression .date-range,
  .single-role time, .single-role .date-range, .degree time, .degree .date-range { text-align: right; }

  .role-progression { margin-left: 34px; }

  .experience-entry:first-child .experience-bullets {
    display: block;
    max-width: none;
    padding-left: 23px;
    column-count: 2;
    column-gap: clamp(40px, 6vw, 72px);
    column-rule: 1px solid var(--line);
  }

  .experience-entry:first-child .experience-bullets li { margin-bottom: 15px; break-inside: avoid; }

  .project-featured-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    gap: clamp(44px, 7vw, 92px);
  }

  .skill-group { grid-template-columns: minmax(240px, .4fr) minmax(0, 1fr); gap: 52px; padding-block: 38px; }
  .education-grid, .contact-grid { grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: clamp(62px, 9vw, 124px); }
  #about { contain-intrinsic-size: auto 1300px; }
  #experience { contain-intrinsic-size: auto 2700px; }
  #projects { contain-intrinsic-size: auto 5100px; }
  #skills { contain-intrinsic-size: auto 2700px; }
  #certifications { contain-intrinsic-size: auto 1500px; }
  #awards { contain-intrinsic-size: auto 1050px; }
  #education { contain-intrinsic-size: auto 1150px; }
  #beyond { contain-intrinsic-size: auto 1050px; }
  #contact { contain-intrinsic-size: auto 950px; }
}

@media (min-width: 1200px) {
  .project-card:not(.project-featured) { min-height: 460px; padding: 44px 48px 42px; }
  .project-card:not(.project-featured):nth-child(even) { padding-left: 0; }
  .project-card:not(.project-featured):nth-child(odd) { padding-right: 0; }
}

@media (min-width: 1400px) {
  .section { padding-block: 152px; }
}

@media (max-width: 899px) {
  .hero-copy { max-width: 700px; }
  .hero-portrait { margin-bottom: 0; }
}

@media (max-width: 559px) {
  .section-heading h2 { max-width: 12ch; line-height: 1.02; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-actions .text-link { flex-basis: 100%; }
  .project-filters { gap: 3px 16px; }
  .project-featured { margin-inline: -4px; }
}

@media (max-width: 359px) {
  .eyebrow, .section-label { letter-spacing: .1em; }
  .hero h1 { font-size: 3.25rem; }
  .project-topline { flex-direction: column; }
  .role-badge { max-width: none; text-align: left; }
}

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

  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .back-to-top, .back-to-top.is-visible, .mobile-menu, .nav-toggle span,
  .project-card, .button, .text-link { transition: none; }
}
