:root {
  --black: #080808;
  --charcoal: #1b1b1b;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --text: #1b1b1b;
  --muted: #777777;
  --muted-dark: #9c9c9c;
  --line: #e5e5e5;
  --line-dark: #333333;
  --green: #3f8e00;
  --green-border: #62ba1b;
  --amber: #ff8c00;
  --blue: #165dff;
  --mono: "IBM Plex Mono", monospace;
  --display: "Raleway", sans-serif;
  --content: 1110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--green-border); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.cover { background: var(--black); color: var(--white); }
.site-header { min-height: 70px; padding: 0 95px; border-radius: 0 0 8px 8px; background: var(--charcoal); display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 54px; }
.site-header nav a { color: var(--muted-dark); font-size: 12px; transition: color 160ms ease; }
.site-header nav a:hover { color: var(--white); }
.social-nav { display: flex; align-items: center; gap: 16px; }
.social-nav a { color: var(--muted-dark); display: grid; place-items: center; }
.social-nav a:hover { color: var(--white); }
.social-nav svg { width: 17px; height: 17px; fill: currentColor; }

.hero { min-height: 425px; padding: 74px 0 58px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr); align-items: center; gap: 92px; }
.eyebrow { margin: 0 0 12px; color: var(--green-border); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(46px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.hero-summary { max-width: 570px; margin: 0; color: var(--muted-dark); font-size: 14px; line-height: 1.75; }
.hero-actions, .case-links, .resume-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.case-links-mobile { display: none; }
.button { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; font-weight: 600; transition: transform 160ms ease, filter 160ms ease; }
.button:hover { transform: translateY(-2px); filter: brightness(0.95); }
.button span { font-size: 20px; line-height: 1; }
.button-primary { background: var(--green); border-color: var(--green-border); box-shadow: 0 8px 15px rgba(63, 142, 0, 0.3); color: var(--white); }
.text-link { color: #d0d0d0; border-bottom: 1px solid #666; font-size: 12px; }
.text-link-dark { color: var(--text); border-color: #aaa; }

.portrait-frame { width: 260px; aspect-ratio: 1; justify-self: center; border-radius: 50%; background: #151515; border: 1px solid #292929; overflow: hidden; box-shadow: 0 0 0 22px rgba(255,255,255,0.012); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.credentials { min-height: 82px; border-top: 1px solid #242424; display: grid; grid-template-columns: 0.7fr 2.1fr 1.35fr 1fr 0.8fr; align-items: center; gap: 24px; color: #777; font-size: 11px; }
.credentials-label { color: var(--muted-dark); }

.case-studies { padding: 82px 0 96px; }
.section-heading { max-width: 610px; margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.case-study { max-width: 980px; margin: 64px auto 0; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr); align-items: center; gap: 66px; }
.case-study-reverse .case-copy { order: 2; }
.case-study-reverse .screenshot-link { order: 1; }
.case-tag { display: inline-flex; min-height: 23px; padding: 2px 10px; border-radius: 999px; align-items: center; font-size: 9px; font-weight: 600; }
.case-tag-amber { background: #fff2dc; color: #d26d00; }
.case-tag-blue { background: #e8efff; color: #164fdb; }
.case-copy h3 { margin: 10px 0 12px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.case-summary { margin: 0; color: #555; font-size: 12px; }
.evidence-list { margin: 18px 0 0; padding-left: 18px; color: #666; font-size: 11px; }
.evidence-list li + li { margin-top: 7px; }
.stack { margin: 18px 0 0; color: #777; font-size: 9px; line-height: 1.7; }
.button-amber { background: var(--amber); border-color: #ffb454; color: var(--white); box-shadow: 0 8px 15px rgba(255, 140, 0, 0.22); }
.button-blue { background: var(--blue); border-color: #5c86ff; color: var(--white); box-shadow: 0 8px 15px rgba(22, 93, 255, 0.2); }
.screenshot-link { overflow: hidden; background: #eee; box-shadow: 0 14px 30px rgba(0,0,0,0.12); transition: transform 180ms ease, box-shadow 180ms ease; }
.screenshot-link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,0.16); }
.screenshot-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.experience-section { padding: 82px 0 88px; background: var(--black); color: var(--white); }
.section-heading-light h2 { color: var(--white); }
.section-heading-light > p:last-child { color: var(--muted-dark); }
.timeline { max-width: 980px; margin: 52px auto 0; border-top: 1px solid var(--line-dark); }
.timeline-item { padding: 34px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.timeline-meta { display: flex; flex-direction: column; gap: 5px; color: #777; font-size: 10px; }
.timeline-body h3 { margin: 0 0 3px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.role { margin: 0; color: var(--green-border); font-size: 10px; }
.timeline-body ul { margin: 18px 0 0; padding-left: 18px; color: #c8c8c8; font-size: 11px; }
.timeline-body li + li { margin-top: 8px; }
.timeline-body strong { color: #9bd36f; }

.resume-section { padding: 82px 0 96px; }
.resume-card { max-width: 900px; margin: 48px auto 0; padding: 32px; background: var(--off-white); border: 1px solid var(--line); display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: center; gap: 52px; }
.resume-preview { background: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,0.13); transition: transform 180ms ease; }
.resume-preview:hover { transform: translateY(-3px); }
.resume-preview img { width: 100%; }
.resume-label { margin: 0 0 10px; color: var(--green); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.resume-details h3 { margin: 0 0 26px; font-family: var(--display); font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; }
.resume-details dl { margin: 0; border-top: 1px solid #ddd; }
.resume-details dl div { padding: 12px 0; border-bottom: 1px solid #ddd; display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.resume-details dt { color: var(--muted); font-size: 10px; }
.resume-details dd { margin: 0; font-size: 11px; font-weight: 500; }

.contact-section { padding: 76px 0; background: var(--black); color: var(--white); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.contact-inner .section-heading { margin: 0; text-align: left; }
.contact-links { min-width: 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.contact-links .button { margin-bottom: 3px; }
.contact-links > a:not(.button) { color: #bbb; border-bottom: 1px solid #555; font-size: 11px; }
.site-footer { padding: 18px 0; background: var(--charcoal); color: #777; font-size: 9px; }
.site-footer .container { display: flex; justify-content: space-between; }

@media (max-width: 900px) {
  .site-header { padding-inline: 36px; }
  .site-header nav { gap: 30px; }
  .hero { grid-template-columns: 1fr 300px; gap: 42px; }
  .portrait-frame { width: 220px; }
  .credentials { grid-template-columns: 1fr 2fr 1.3fr 0.9fr; }
  .credentials-label { display: none; }
  .case-study { grid-template-columns: 1fr; gap: 28px; }
  .case-study .case-copy, .case-study .screenshot-link { order: initial; }
  .case-copy { max-width: 680px; }
  .screenshot-link { width: 100%; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .site-header { min-height: 62px; padding-inline: 18px; border-radius: 0; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: 9px; }
  .social-nav { gap: 11px; }
  .social-nav svg { width: 15px; height: 15px; }
  .hero { min-height: auto; padding: 58px 0 50px; grid-template-columns: 1fr; }
  .portrait-frame { width: 170px; justify-self: start; }
  .credentials { padding: 22px 0; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 9px; }
  .case-studies, .resume-section { padding: 62px 0 72px; }
  .section-heading h2 { font-size: 30px; }
  .case-study { margin-top: 46px; }
  .case-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .case-copy .case-tag { order: 1; }
  .case-copy h3 { order: 2; }
  .case-copy .case-summary { order: 3; }
  .case-copy .evidence-list { order: 4; }
  .case-copy .stack { order: 5; }
  .case-study .screenshot-link { order: 2; }
  .case-study .case-copy { order: 1; }
  .case-links-desktop { display: none; }
  .case-links-mobile { display: flex; order: 3; margin-top: 0; }
  .experience-section { padding: 62px 0 66px; }
  .timeline-item { grid-template-columns: 1fr; gap: 15px; padding: 28px 0; }
  .timeline-meta { flex-direction: row; justify-content: space-between; }
  .resume-card { padding: 20px; grid-template-columns: 1fr; gap: 32px; }
  .resume-preview { max-width: 360px; }
  .contact-section { padding: 60px 0; }
  .contact-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
}
