:root {
  --ink: #171717;
  --muted: #5c5c56;
  --paper: #f7f7f3;
  --panel: #ffffff;
  --line: #d2d2ca;
  --line-dark: #353532;
  --accent: #b8322a;
  --accent-dark: #90271f;
  --soft-accent: #fff0ed;
  --header: #151515;
  --max: 1120px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.62; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }

.skip-link { position: fixed; z-index: 50; top: -5rem; left: 1rem; padding: .6rem .85rem; background: var(--accent); color: #fff; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: auto; }
.site-header { background: var(--header); border-bottom: 3px solid var(--accent); color: #fff; }
.header-inner { width: min(var(--max), calc(100% - 2rem)); min-height: 4.35rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: .04em; }
.brand::before { content: "//"; color: var(--accent); font-family: var(--mono); }
.brand small { color: #bdbdb8; font-size: .65rem; letter-spacing: .1em; }
.header-spacer { min-width: 1px; }
.menu-button { display: none; border: 1px solid #777; padding: .5rem .65rem; background: transparent; color: #fff; font: 800 .72rem var(--mono); }
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav a { padding: .55rem .65rem; color: #e3e3df; text-decoration: none; font-size: .82rem; font-weight: 750; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.main-nav .nav-cta { margin-left: .35rem; border: 1px solid var(--accent); color: #fff; }
.main-nav .nav-cta:hover { background: var(--accent); text-decoration: none; }

.hero { padding: clamp(3.4rem, 8vw, 7.2rem) 0 clamp(3rem, 6vw, 5rem); background: #fff; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.eyebrow, .section-kicker, .label { margin: 0 0 .7rem; color: var(--accent); font: 800 .72rem/1.2 var(--mono); letter-spacing: .1em; }
h1 { max-width: 860px; margin-bottom: 1.15rem; font-size: clamp(2.65rem, 6.4vw, 5.35rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 760px; margin-bottom: 1.55rem; color: #3d3d39; font-size: clamp(1.04rem, 2vw, 1.23rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-block; border: 1px solid var(--ink); padding: .8rem 1rem; background: var(--ink); color: #fff; text-decoration: none; font-size: .84rem; font-weight: 850; }
.button:hover { border-color: var(--accent); background: var(--accent); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { color: #fff; }
.hero-note { padding: 1.15rem; border-left: 3px solid var(--accent); background: #efefea; }
.hero-note h2 { margin: 0 0 .45rem; font-size: 1.05rem; line-height: 1.25; }
.hero-note p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.tech-line { margin: 2.35rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: #4a4a46; font: 700 .74rem/1.8 var(--mono); }
.tech-line strong { color: var(--accent); }

section { padding: clamp(3.2rem, 7vw, 5.9rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.9rem; padding-top: .75rem; border-top: 4px solid var(--ink); }
.section-heading h2 { max-width: 670px; margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.06; letter-spacing: -.045em; }
.section-heading > p { max-width: 385px; margin: 0; color: var(--muted); font-size: .92rem; }

.overview { background: #ecece6; border-bottom: 1px solid var(--line); }
.overview-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5.5rem); }
.lead { font-size: 1.17rem; line-height: 1.54; }
.lead strong { color: var(--accent-dark); }
.principles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.principles li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding: .95rem 0; border-bottom: 1px solid var(--line-dark); }
.principles b { padding-top: .2rem; color: var(--accent); font: .74rem var(--mono); }
.principles h3 { margin: 0 0 .18rem; font-size: 1rem; }
.principles p { margin: 0; color: var(--muted); font-size: .9rem; }

.lifecycle { background: #fff; }
.process { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.process li { display: grid; grid-template-columns: 65px minmax(0, 1fr) minmax(180px, .65fr); gap: 1.25rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); }
.step { color: var(--accent); font: 800 .82rem var(--mono); }
.process h3 { margin: 0 0 .22rem; font-size: 1.13rem; }
.process p { margin: 0; color: var(--muted); font-size: .91rem; }
.process .deliverable { color: var(--accent-dark); font: 700 .76rem/1.55 var(--mono); }

.team { background: #1b1b19; color: #fff; }
.team .section-heading { border-color: #fff; }
.team .section-heading > p { color: #c8c8c2; }
.team-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.25rem; color: #ecece7; font: 750 .72rem/1.5 var(--mono); }
.team-flow span { padding: .32rem .45rem; border: 1px solid #686862; background: #252522; }
.team-flow b { color: #ffaaa4; font-size: .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid #585853; background: #585853; }
.team-card { min-height: 185px; padding: 1.15rem; background: #242421; }
.team-card h3 { margin: 0 0 .4rem; color: #fff; font-size: 1rem; }
.team-card p { margin: 0; color: #d0d0ca; font-size: .89rem; }
.team-card code { color: #ffaaa4; font: 750 .72rem var(--mono); }

.standards { background: #f0f0eb; border-bottom: 1px solid var(--line); }
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.standard { padding: 1.2rem; border: 1px solid var(--line-dark); background: #fff; }
.standard h3 { margin: 0 0 .4rem; font-size: 1.08rem; }
.standard p { margin: 0; color: var(--muted); font-size: .9rem; }

.profile-callout { background: #fff; }
.profile-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; padding: clamp(1.35rem, 4vw, 2.4rem); border: 1px solid var(--line-dark); background: #fff8f6; }
.profile-card h2 { margin-bottom: .65rem; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.08; letter-spacing: -.04em; }
.profile-card p { max-width: 750px; margin-bottom: 0; color: #484440; }
.profile-card .actions { align-self: center; justify-content: flex-end; }

.profile-hero { padding-bottom: 3rem; }
.profile-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
.profile-eyebrow { font-size: clamp(1.02rem, 2vw, 1.55rem); letter-spacing: .075em; }
.profile-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); color: #4d4d47; font: 750 .8rem/1.55 var(--mono); }
.profile-meta .meta-item { display: inline-flex; align-items: center; gap: .42rem; }
.profile-meta .focus { flex: 1 1 430px; }
.profile-meta svg { width: 1rem; height: 1rem; flex: 0 0 auto; stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.profile-meta a { text-decoration: none; }
.profile-meta a:hover { color: var(--accent-dark); text-decoration: underline; }
.experience { background: #ecece6; border-bottom: 1px solid var(--line); }
.roles { border-top: 1px solid var(--line-dark); }
.role { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-dark); }
.role .label { margin: .15rem 0 0; }
.role h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.role p { margin: 0; color: var(--muted); }
.role .tools { margin-top: .55rem; color: var(--accent-dark); font: 700 .73rem/1.6 var(--mono); }
.experience-block { padding: clamp(1.35rem, 4vw, 2.35rem) 0; border-top: 1px solid var(--line-dark); }
.experience-block:last-child { border-bottom: 1px solid var(--line-dark); }
.experience-intro { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; margin-bottom: 1.35rem; }
.experience-intro .label { margin: .15rem 0 0; }
.experience-intro h3 { margin: 0 0 .45rem; font-size: clamp(1.25rem, 2.5vw, 1.55rem); line-height: 1.15; }
.experience-intro p { max-width: 820px; margin: 0; color: var(--muted); }
.experience-kicker { font-size: clamp(1rem, 1.8vw, 1.32rem); letter-spacing: .075em; }
.company-panel { display: grid; gap: .55rem; align-content: start; }
.company-logo { width: 150px; height: 52px; display: grid; place-items: center; background: transparent; padding: 0; overflow: hidden; }
.company-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.qualcomm-logo img { max-width: 145px; max-height: 50px; }
.jabil-logo img { max-width: 140px; max-height: 48px; }
.company-wordmark { justify-content: start; color: #20b7bd; font: 900 1.85rem/1 var(--sans); letter-spacing: -.06em; text-transform: lowercase; }
.worldline-logo { justify-content: start; color: #121212; font: 900 1.45rem/1 var(--sans); letter-spacing: -.04em; text-transform: lowercase; }
.nexi-logo { justify-content: start; color: #1f55ff; font: 950 1.9rem/1 var(--sans); letter-spacing: -.05em; text-transform: lowercase; }
.android-logo { justify-content: start; color: #2f8f46; font: 950 1.65rem/1 var(--sans); letter-spacing: -.04em; text-transform: lowercase; }
.role-summary { max-width: 880px; margin: 1rem 0 0; padding-left: 1.15rem; color: #3f3f3b; }
.role-summary li + li { margin-top: .42rem; }
.proof-link { display: inline-flex; width: fit-content; margin-top: .55rem; color: var(--accent-dark); font: 800 .72rem var(--mono); letter-spacing: .04em; text-decoration: none; }
.proof-link:hover { text-decoration: underline; }
.employer-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-left: 210px; }
.role-project { display: flex; flex-direction: column; min-height: 210px; border: 1px solid var(--line-dark); background: #fff; color: inherit; text-decoration: none; }
.role-project:hover { background: var(--soft-accent); }
.role-project .thumbnail { min-height: 57px; }
.role-project .project-body { padding: .95rem; }
.role-project h4 { margin: 0 0 .45rem; font-size: 1rem; line-height: 1.17; }
.role-project p { margin-bottom: .75rem; color: var(--muted); font-size: .84rem; }
.role-project .more { margin-top: auto; color: var(--accent-dark); font: 800 .7rem var(--mono); }
.fit { background: #1b1b19; color: #fff; }
.fit .section-heading { border-color: #fff; }
.fit .section-heading > p { color: #cbcbc5; }
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid #585853; background: #585853; }
.fit-card { min-height: 245px; padding: 1.15rem; background: #252522; }
.fit-card h3 { margin: 0 0 .45rem; font-size: 1.08rem; line-height: 1.18; }
.fit-card p { margin: 0; color: #d2d2cc; font-size: .88rem; }
.fit-card .label { color: #ffaaa4; }
.education { background: #fff; }
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.education-item { padding: 1.25rem; border: 1px solid var(--line-dark); background: var(--paper); }
.education-item h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.education-item .degree { margin-bottom: .65rem; color: var(--accent-dark); font: 800 .78rem var(--mono); }
.education-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.projects { background: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project { display: flex; flex-direction: column; min-height: 255px; border: 1px solid var(--line-dark); background: var(--panel); color: inherit; text-decoration: none; }
.project:hover { background: var(--soft-accent); }
.project-image { margin: 0; height: 178px; border-bottom: 1px solid var(--line-dark); background: #1d1d1b; overflow: hidden; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.project:hover .project-image img { transform: scale(1.035); }
.thumbnail { display: flex; align-items: center; min-height: 60px; padding: .65rem .8rem; background: #20201e; color: #ffaaa4; font: 700 .68rem var(--mono); letter-spacing: .07em; }
.thumbnail span { display: block; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem; }
.project h3 { margin-bottom: .5rem; font-size: 1.18rem; line-height: 1.15; }
.project p { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.project .more { margin-top: auto; color: var(--accent-dark); font: 800 .75rem var(--mono); }
.other-work { margin: 1.45rem 0 0; color: var(--muted); font-size: .88rem; }
.other-work a { color: var(--accent-dark); font-weight: 800; }
.proof-strip { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.proof-strip a { color: var(--accent-dark); font-weight: 800; }
.skills { background: #f0f0eb; border-bottom: 1px solid var(--line); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line-dark); background: var(--line-dark); }
.skill { padding: 1rem; background: var(--paper); }
.skill h3 { margin: 0 0 .4rem; font-size: 1rem; }
.skill p { margin: 0; color: var(--muted); font-size: .88rem; }
.skill code { color: var(--accent-dark); font: 700 .72rem var(--mono); }

.contact { background: #1a1a19; color: #fff; }
.contact .section-heading { border-color: #fff; }
.contact .section-heading > p { color: #c7c7c1; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact-copy { max-width: 660px; color: #d2d2cc; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact .button { border-color: #fff; }
.contact .button.ghost { color: #fff; }
.site-footer { background: #111; color: #b6b6b1; }
.footer-inner { width: min(var(--max), calc(100% - 2rem)); margin: auto; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-size: .77rem; }
.mono { font-family: var(--mono); }

@media (max-width: 800px) {
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 4.35rem; right: 0; left: 0; z-index: 20; flex-direction: column; align-items: stretch; padding: .55rem 1rem 1rem; border-top: 1px solid #4b4b47; border-bottom: 2px solid var(--accent); background: var(--header); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem .15rem; }
  .main-nav .nav-cta { margin: .25rem 0 0; padding-left: .6rem; }
  .hero-grid, .overview-grid, .profile-card { grid-template-columns: 1fr; }
  .hero-note { max-width: 430px; }
  .process li { grid-template-columns: 50px minmax(0, 1fr); }
  .process .deliverable { grid-column: 2; }
  .team-grid, .standard-grid, .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: .6rem; }
  .experience-intro { grid-template-columns: 1fr; gap: .6rem; }
  .employer-projects, .fit-grid, .education-grid { grid-template-columns: 1fr; margin-left: 0; }
  .profile-card .actions { justify-content: flex-start; }
}

@media (max-width: 1020px) and (min-width: 801px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .header-inner, .container, .footer-inner { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand small { display: none; }
  h1 { font-size: clamp(2.45rem, 13.5vw, 3.45rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .85rem; }
  .actions .button, .contact-actions .button { width: 100%; text-align: center; }
  .process li { grid-template-columns: 1fr; gap: .35rem; }
  .process .deliverable { grid-column: auto; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: .35rem; }
}
