:root {
  --paper: #f3f0e8;
  --white: #fffefa;
  --ink: #101010;
  --muted: #66655f;
  --line: #c9c5bb;
  --blue: #1f3a5f;
  --coral: #ff7154;
  --acid: #c9ff55;
  --sage: #dce9e2;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; letter-spacing: -.055em; }
p { color: var(--muted); }
.skip-link { position: fixed; z-index: 200; top: -80px; left: 16px; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.page-progress { position: fixed; z-index: 150; inset: 0 0 auto; height: 3px; }
.page-progress span { display: block; width: 0; height: 100%; background: var(--coral); }

.site-header { position: relative; z-index: 100; width: 100%; min-height: 82px; margin: 0; padding: 0 max(28px, calc((100vw - var(--max))/2 + 28px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); background: rgba(243,240,232,.94); backdrop-filter: blur(16px); }
.brand { width: fit-content; font-size: 24px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.site-header nav { display: flex; gap: 38px; font-family: "Courier New", monospace; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.site-header nav a, .header-cta { text-decoration: none; }
.site-header nav a:hover, .header-cta:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.header-cta { justify-self: end; padding: 10px 14px; border: 1px solid #b8b4aa; background: transparent; color: var(--ink); font-family: "Courier New", monospace; font-size: 14px; font-weight: 700; text-transform: uppercase; transition: background .18s ease, border-color .18s ease; }
.header-cta:hover { border-color: var(--ink); background: rgba(16,16,16,.04); }

.hero { width: min(calc(100% - 48px), var(--max)); min-height: 690px; margin: 0 auto; padding: 64px 0 58px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 30px; align-items: center; }
.hero-meta { grid-column: 1 / -1; align-self: start; display: flex; justify-content: space-between; gap: 24px; font-family: "Courier New", monospace; font-size: 15px; font-weight: 800; letter-spacing: .025em; }
.hero-meta span:last-child { margin-left: auto; text-align: right; white-space: nowrap; }
.hero-copy { align-self: center; }
.hero h1 { max-width: 780px; margin-bottom: 28px; font-size: clamp(52px, 5.2vw, 78px); font-weight: 900; }
.hero h1 em { position: relative; display: inline; font-family: Georgia, serif; font-weight: 400; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: .05em; left: 0; height: .16em; background: var(--coral); transform: rotate(-1deg); }
.hero-lede { max-width: 720px; margin-bottom: 32px; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--blue); }
.button-dark { background: var(--ink); color: white; }
.button-line { background: transparent; }
.portrait-panel { position: relative; margin: 0; border: 1px solid var(--ink); background: var(--blue); box-shadow: 12px 12px 0 var(--ink); }
.portrait-panel::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 8px rgba(255,255,255,.18); }
.portrait-panel img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 50%; filter: saturate(.92) contrast(1.02); }
.portrait-panel figcaption { position: absolute; z-index: 2; right: -1px; bottom: -1px; padding: 13px 16px; display: grid; background: var(--acid); border: 1px solid var(--ink); text-align: right; }
.portrait-panel figcaption span { font-family: "Courier New", monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.portrait-panel figcaption strong { font-size: 14px; }
.expertise-strip { width: 100%; overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.expertise-strip > div { width: max-content; padding: 21px 0; display: flex; align-items: center; animation: marquee 26s linear infinite; }
.expertise-strip span { padding: 0 30px; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.expertise-strip b { color: var(--coral); font-size: 15px; }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 118px 0; }
.section-intro { margin-bottom: 68px; display: grid; grid-template-columns: 70px 170px minmax(0, 1fr); gap: 22px; align-items: start; }
.section-number { font-size: 42px; font-weight: 900; line-height: .9; }
.section-label { margin: 0; font-family: "Courier New", monospace; font-size: 12px; font-weight: 800; letter-spacing: .075em; }
.project-meta, .experience-date { margin: 0; font-family: "Courier New", monospace; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.section-intro h2 { max-width: 820px; margin: -8px 0 0; font-size: clamp(46px, 5.2vw, 72px); font-weight: 900; }
.simple-heading { margin-bottom: 64px; padding-bottom: 34px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; }
.section#work .simple-heading { grid-template-columns: 1fr; gap: 18px; border-bottom: 1px solid var(--ink); }
.section#work .simple-heading > div { width: min(100%, 840px); justify-self: start; text-align: left; }
.section#work .simple-heading > div > p { margin-left: 0; }
.simple-heading h2 { margin: 0 0 12px; font-size: clamp(42px, 4.8vw, 68px); font-weight: 900; }
.simple-heading > div > p { max-width: 650px; margin: 0; font-size: 17px; }

.project { border-top: 1px solid var(--ink); }
.project-featured { border-top: 0; }
.project h3 { margin: 0 0 20px; font-size: clamp(48px, 6vw, 86px); font-weight: 900; }
.project-summary { max-width: 600px; color: var(--ink); font-size: 23px; line-height: 1.35; }
.project-detail > p { margin-bottom: 24px; font-size: 17px; line-height: 1.65; }
.tag-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.tag-list li { padding: 6px 9px; border: 1px solid currentColor; font-family: "Courier New", monospace; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.project-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 23px; }
.project-links a { font-size: 12px; font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-transform: uppercase; }
.project-row { padding: 52px 0 60px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 92px); align-items: start; }
.project-row > div:first-child { display: grid; align-content: start; }
.project-row h3 { max-width: 520px; margin: 14px 0 20px; font-size: clamp(36px, 4vw, 56px); line-height: .98; }
.project-row .project-summary { max-width: 520px; margin: 0; font-size: clamp(18px, 1.75vw, 23px); line-height: 1.42; }
.project-row .project-detail { padding-top: 28px; }
.project-row .project-detail > p { max-width: 640px; margin: 0 0 28px; }

.section-dark { width: 100%; max-width: none; padding-right: max(24px, calc((100vw - var(--max))/2)); padding-left: max(24px, calc((100vw - var(--max))/2)); background: var(--ink); color: white; }
.section-dark p { color: #aaa9a4; }
.section-dark .section-number { color: var(--coral); }
.dark-heading { border-color: #454545; }
.dark-heading .section-label { color: var(--coral); }
#experience .simple-heading { border-bottom: 1px solid #454545; }
.experience-list { border-top: 0; }
.experience-item { padding: 48px 0 54px; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); grid-template-rows: auto auto; column-gap: clamp(58px, 7vw, 96px); row-gap: 20px; align-items: start; border-bottom: 1px solid #454545; }
.experience-item h3 { margin: 0 0 10px; font-size: clamp(32px, 3vw, 46px); }
.experience-item > div:last-child { grid-column: 2; grid-row: 1 / 3; }
.experience-item > div:last-child > p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
.company { margin: 0; font-family: "Courier New", monospace; font-size: 11px; }
.experience-meta { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
.experience-role { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; }
.org-logo { width: 132px; height: 56px; margin: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: flex-start; background: white; border: 1px solid #d8d8d8; }
.experience-meta .org-logo { margin-top: 20px; }
.org-logo img { display: block; width: 100%; max-height: 38px; object-fit: contain; object-position: left center; }
.capgemini-logo { width: 62px; }
.capgemini-logo img { width: 40px; }
.vida-logo { width: 176px; }
.nyu-logo { width: 142px; }

.about-heading { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.about-story { padding: 48px 0 68px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.about-story h2 { max-width: 540px; margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 900; line-height: 1.04; }
.about-copy p { color: var(--ink); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; letter-spacing: -.015em; }
.about-copy p:last-child { margin-bottom: 0; }
.education-block { padding-top: 0; border-top: 1px solid var(--ink); }
.education-block > .section-label { min-height: 70px; margin: 0; display: flex; align-items: center; font-size: 15px; font-weight: 900; text-align: left; }
.education-list { border-top: 1px solid var(--ink); }
.education-list article { min-height: 128px; padding: 24px 0; display: grid; grid-template-columns: 74px 170px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--ink); }
.education-list article > span { font-family: "Courier New", monospace; font-size: 11px; font-weight: 800; }
.education-logo { width: 150px; height: 64px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); }
.education-logo img { display: block; width: 100%; max-height: 48px; object-fit: contain; }
.nyu-education-logo img { max-height: 36px; }
.manipal-education-logo img { max-height: 46px; }
.education-list strong { font-size: 21px; }
.education-list p { margin: 7px 0 0; }
.toolkit { margin-top: 74px; }
.toolkit-heading { margin-bottom: 28px; display: grid; gap: 12px; justify-items: start; }
.toolkit-heading h3 { margin: 0; font-size: clamp(32px, 3.5vw, 48px); }
.skill-groups { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.skill-groups article { min-height: 250px; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.32); }
.skill-groups article::before { content: ""; display: block; width: 36px; height: 5px; margin-bottom: 36px; background: var(--coral); }
.skill-groups h4 { margin: 0 0 20px; font-size: 20px; }
.skill-groups ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.skill-groups li { padding: 5px 8px; border: 1px solid #a9a59b; background: var(--white); font-family: "Courier New", monospace; font-size: 9px; font-weight: 700; }

.contact-section { width: 100%; padding: 112px max(24px, calc((100vw - var(--max))/2)) 36px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); grid-template-rows: auto auto auto auto auto; column-gap: clamp(48px, 7vw, 96px); border-top: 1px solid var(--ink); background: var(--blue); color: white; }
.contact-kicker { grid-column: 1 / -1; color: var(--acid); font-family: "Courier New", monospace; font-size: 12px; font-weight: 800; }
.contact-section h2 { grid-column: 1; grid-row: 2 / 5; max-width: 760px; margin: 28px 0 92px; font-size: clamp(56px, 7.6vw, 108px); font-weight: 900; }
.contact-section > p:not(.contact-kicker) { grid-column: 2; grid-row: 2; align-self: end; margin: 28px 0 0; color: #e3eee8; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.5; }
.contact-email { grid-column: 2; grid-row: 3; align-self: start; display: inline-block; width: fit-content; margin: 24px 0 28px; color: white; font-size: clamp(22px, 2.5vw, 34px); font-weight: 900; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.back-to-top-button { grid-column: 2; grid-row: 4; width: fit-content; min-width: 270px; min-height: 68px; margin: 0 0 92px; padding: 0 10px 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; border: 1px solid var(--ink); background: var(--acid); box-shadow: 6px 6px 0 white; color: var(--ink); font-size: 15px; font-weight: 900; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; transition: box-shadow .2s ease, transform .2s ease; }
.back-to-top-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 25px; line-height: 1; transition: transform .2s ease; }
.back-to-top-button:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 white; }
.back-to-top-button:hover .back-to-top-icon { transform: translateY(-3px); }
.contact-footer { grid-column: 1 / -1; padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.68); font-family: "Courier New", monospace; font-size: 10px; font-weight: 800; }
.contact-footer div { display: flex; gap: 26px; }

/* Project case studies */
.case-page { --case-accent: var(--blue); }
.case-page .site-header { background: rgba(255,254,250,.94); }
.network-case, .bioset-case { --case-accent: var(--blue); }
.case-hero { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 100px 0 80px; }
.case-kicker { margin-bottom: 24px; color: var(--case-accent); font-family: "Courier New", monospace; font-size: 11px; font-weight: 800; }
.case-hero h1 { margin-bottom: 30px; font-size: clamp(76px, 12vw, 170px); font-weight: 900; }
.network-case .case-hero h1 { max-width: 1100px; font-size: clamp(58px, 8.4vw, 116px); }
.case-lede { max-width: 870px; color: var(--ink); font-size: clamp(22px, 3vw, 36px); line-height: 1.35; }
.case-actions { margin: 34px 0 68px; display: flex; gap: 12px; flex-wrap: wrap; }
.case-meta { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.case-meta div { padding: 22px 20px; border-right: 1px solid var(--ink); }
.case-meta div:last-child { border-right: 0; }
.case-meta dt { margin-bottom: 8px; font-family: "Courier New", monospace; font-size: 9px; font-weight: 800; }
.case-meta dd { margin: 0; font-weight: 800; }
.case-block { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 84px 0; border-top: 1px solid var(--ink); }
.case-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; }
.case-heading > span { padding-top: 6px; font-family: "Courier New", monospace; font-size: 12px; font-weight: 800; line-height: 1.35; }
.case-heading h2 { max-width: 780px; margin: 0 0 24px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 900; line-height: 1.06; letter-spacing: -.035em; }
.case-copy { max-width: 780px; margin-left: 0; }
.case-copy p { font-size: 17px; line-height: 1.65; }
.case-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.case-grid article { min-height: 250px; padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.case-grid span { color: var(--case-accent); font-family: "Courier New", monospace; font-size: 10px; font-weight: 800; }
.case-grid h3 { margin: 54px 0 12px; font-size: 28px; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); background: var(--ink); color: white; }
.metrics article { padding: 32px 24px; border-right: 1px solid #4a4a4a; }
.metrics strong { display: block; margin: 16px 0 8px; color: var(--acid); font-size: 44px; letter-spacing: -.06em; }
.metrics span, .metrics small { display: block; font-family: "Courier New", monospace; font-size: 9px; }
.case-note { margin-top: 18px; padding: 24px; border: 1px solid #d7ae69; background: #fff1d3; color: #654c22; }
.case-closing { padding: 100px max(24px, calc((100vw - var(--max))/2)); background: var(--case-accent); color: white; }
.case-closing h2 { max-width: 990px; margin-bottom: 30px; font-size: clamp(48px, 7vw, 90px); }
.case-closing p { max-width: 760px; color: #dfe5ff; font-size: 18px; }

@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-meta { grid-column: 1; }
  .hero-copy { padding-top: 12px; }
  .portrait-panel { width: min(540px, 100%); }
  .section-intro { grid-template-columns: 60px 140px 1fr; }
  .simple-heading { grid-template-columns: 160px 1fr; }
  .section#work .simple-heading { grid-template-columns: 1fr; gap: 18px; }
  .about-story { gap: 48px; }
  .project-row { grid-template-columns: 1fr; gap: 28px; }
  .project-row .project-detail { padding-top: 0; }
  .experience-item { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); column-gap: 48px; }
  .experience-item > div:last-child { grid-column: 2; grid-row: 1 / 3; }
  .skill-groups { grid-template-columns: 1fr 1fr; }
  .case-meta, .metrics { grid-template-columns: 1fr 1fr; }
  .case-meta div:nth-child(2), .metrics article:nth-child(2) { border-right: 0; }
  .case-meta div:nth-child(-n+2), .metrics article:nth-child(-n+2) { border-bottom: 1px solid currentColor; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 0 14px; }
  .brand { font-size: 19px; }
  .header-cta { padding: 8px 10px; font-size: 11px; }
  .hero, .section, .case-hero, .case-block { width: calc(100% - 28px); }
  .hero { padding-top: 52px; gap: 38px; }
  .hero-meta { display: flex; align-items: flex-end; gap: 14px; font-size: 13px; line-height: 1.35; }
  .hero-meta span:first-child { max-width: 64%; }
  .hero h1 { font-size: 48px; }
  .hero-actions { display: grid; }
  .portrait-panel { box-shadow: 7px 7px 0 var(--ink); }
  .section { padding: 82px 0; }
  .section-intro { grid-template-columns: 48px 1fr; gap: 15px; }
  .section-intro h2 { grid-column: 1 / -1; margin-top: 16px; font-size: 49px; }
  .simple-heading { grid-template-columns: 1fr; gap: 18px; }
  .section#work .simple-heading { grid-template-columns: 1fr; gap: 18px; }
  .section#work .simple-heading > div { width: 100%; justify-self: stretch; text-align: left; }
  .section#work .simple-heading > div > p { margin-left: 0; }
  .simple-heading h2 { font-size: 44px; }
  .about-story { padding: 34px 0 50px; grid-template-columns: 1fr; gap: 28px; }
  .about-story h2 { font-size: 34px; }
  .education-list article { grid-template-columns: 52px 88px 1fr; gap: 14px; }
  .education-logo { width: 88px; height: 52px; padding: 8px; }
  .education-list strong { font-size: 18px; line-height: 1.18; }
  .project-row { grid-template-columns: 1fr; }
  .experience-item { grid-template-columns: 1fr; gap: 18px; }
  .experience-meta { grid-column: 1; grid-row: 1; }
  .experience-role { grid-column: 1; grid-row: 2; }
  .experience-item > div:last-child { grid-column: 1; grid-row: 3; padding-top: 10px; }
  .experience-meta .org-logo { margin-top: 18px; }
  .skill-groups { grid-template-columns: 1fr; }
  .skill-groups article { min-height: auto; }
  .contact-section { grid-template-columns: 1fr; grid-template-rows: auto; }
  .contact-kicker, .contact-section h2, .contact-section > p:not(.contact-kicker), .contact-email, .back-to-top-button, .contact-footer { grid-column: 1; grid-row: auto; }
  .contact-section h2 { margin-bottom: 36px; font-size: 56px; }
  .contact-section > p:not(.contact-kicker) { margin-top: 0; }
  .contact-email { margin: 20px 0 24px; }
  .back-to-top-button { margin-bottom: 72px; }
  .contact-footer { display: grid; }
  .contact-footer div { display: grid; gap: 12px; }
  .case-heading { grid-template-columns: 1fr; gap: 18px; }
  .case-heading > span { padding-top: 0; }
  .case-meta, .metrics, .case-grid { grid-template-columns: 1fr; }
  .case-meta div, .metrics article { border-right: 0; border-bottom: 1px solid currentColor; }
  .case-grid article { min-height: auto; }
}

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