:root {
  --bg: #f5f4ee;
  --surface: #ebeae2;
  --paper: #fffef9;
  --ink: #171916;
  --muted: #656860;
  --line: #d4d4cb;
  --green: #d9ff70;
  --blue: #5268f4;
  --orange: #ff7658;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.page-shell, .header-inner { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(212, 212, 203, .82); background: rgba(245, 244, 238, .9); backdrop-filter: blur(12px); }
.header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.site-name { width: max-content; font-size: 1.05rem; font-weight: 700; letter-spacing: -.045em; }
.site-name span { color: var(--blue); }
.desktop-nav { display: flex; gap: 2rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.desktop-nav a, .header-cta { transition: color 160ms ease, background-color 160ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--ink); }
.header-cta { justify-self: end; padding: .65rem .9rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 600; }
.header-cta:hover, .header-cta:focus-visible { background: var(--ink); color: white; }
.menu-button, .mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .75fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; min-height: min(760px, calc(100svh - 72px)); padding-block: clamp(5rem, 9vw, 8rem); }
.eyebrow { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .67rem; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.availability-dot { display: inline-block; width: 6px; height: 6px; margin: 0 .55rem .08rem 0; border-radius: 50%; background: #68a82f; box-shadow: 0 0 0 4px rgba(104,168,47,.12); }
.hero h1 { max-width: 11ch; margin: 1.5rem 0; font-size: clamp(3.4rem, 7.1vw, 6.5rem); font-weight: 600; line-height: .94; letter-spacing: -.07em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-summary { max-width: 42rem; margin: 0; color: #4f524c; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 0 1.15rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .74rem; font-weight: 600; transition: transform 160ms ease, background-color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-light:hover, .button-light:focus-visible { background: white; }

.hero-card { min-height: 24rem; padding: 1.4rem; border-radius: 1.5rem; background: var(--ink); color: white; box-shadow: .8rem .8rem 0 var(--green); }
.hero-card .eyebrow { color: rgba(255,255,255,.56); }
.hero-card ol { margin: 3.5rem 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.hero-card li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; min-height: 4.2rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-card li span { color: var(--green); font-family: var(--mono); font-size: .56rem; }
.hero-card li strong { font-size: .86rem; font-weight: 500; }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.58); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.hero-card-foot i { color: var(--green); font-size: 1.5rem; font-style: normal; }

.section { padding-block: clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.experience-section, .credentials-section { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .7fr); gap: clamp(2rem, 8vw, 8rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading h2 { max-width: 15ch; margin: .9rem 0 0; font-size: clamp(2.3rem, 4.2vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.section-heading > p { max-width: 29rem; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; }

.experience-list { display: grid; gap: .85rem; }
.experience-item { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); }
.experience-item header { display: flex; justify-content: space-between; gap: 2rem; }
.experience-date { margin: 0 0 .6rem; color: var(--blue); font-family: var(--mono); font-size: .62rem; letter-spacing: .03em; text-transform: uppercase; }
.experience-item h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.65rem); letter-spacing: -.04em; }
.experience-role { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.experience-number { color: #b5b6ae; font-family: var(--mono); font-size: .62rem; }
.current-role { border-color: var(--ink); background: var(--ink); color: white; }
.current-role .experience-date { color: var(--green); }
.current-role .experience-role { color: rgba(255,255,255,.62); }
.current-note { margin: 1rem 0 0; color: rgba(255,255,255,.48); font-size: .68rem; }
.current-badge { align-self: flex-start; padding: .35rem .6rem; border-radius: 999px; background: var(--green); color: var(--ink); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.experience-item ul { display: grid; gap: .65rem; max-width: 53rem; margin: 1.5rem 0 0; padding: 1.35rem 0 0 1.25rem; border-top: 1px solid var(--line); color: #454841; font-size: .87rem; line-height: 1.65; }
.experience-item li::marker { color: var(--blue); }
.tag-row, .product-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.35rem; }
.tag-row span, .product-tags span { padding: .35rem .58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: .54rem; text-transform: uppercase; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; min-height: 25rem; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); transition: border-color 180ms ease, transform 180ms ease; }
.product-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.product-featured { background: var(--ink); color: white; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .8rem; background: var(--green); color: var(--ink); font-family: var(--mono); font-size: .62rem; font-weight: 500; }
.product-card:nth-child(2) .product-mark, .product-card:nth-child(5) .product-mark { background: var(--orange); }
.product-card:nth-child(3) .product-mark, .product-card:nth-child(6) .product-mark { background: var(--blue); color: white; }
.product-count { color: var(--muted); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.product-featured .product-count { color: rgba(255,255,255,.58); }
.product-copy { margin-top: auto; padding-top: 3.5rem; }
.product-copy > p:first-child { margin: 0 0 .65rem; color: var(--blue); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.product-featured .product-copy > p:first-child { color: var(--green); }
.product-copy h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.055em; }
.product-copy > p:last-child { margin: .9rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.product-featured .product-copy > p:last-child { color: rgba(255,255,255,.64); }
.product-featured .product-tags span { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.68); }
.product-card > a { margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 700; }
.product-featured > a { border-color: rgba(255,255,255,.22); color: var(--green); }

.compact-heading { grid-template-columns: 1fr; }
.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.credential-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; min-height: 9rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--paper); }
.credential-card-link { grid-template-columns: auto minmax(0, 1fr) auto; transition: border-color 180ms ease, transform 180ms ease; }
.credential-card-link:hover, .credential-card-link:focus-visible { border-color: var(--ink); transform: translateY(-3px); }
.credential-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: .8rem; background: var(--green); font-family: var(--mono); font-size: .72rem; font-weight: 500; }
.credential-python { background: var(--blue); color: white; }
.credential-datacamp { background: var(--orange); color: var(--ink); }
.credential-card p { margin: 0 0 .35rem; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.credential-card h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.03em; }
.credential-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .75rem; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.credential-meta span { padding-left: .8rem; border-left: 1px solid var(--line); }
.credential-arrow { align-self: flex-start; color: var(--muted); font-size: 1rem; transition: color 180ms ease, transform 180ms ease; }
.credential-card-link:hover .credential-arrow, .credential-card-link:focus-visible .credential-arrow { color: var(--blue); transform: translate(2px, -2px); }

.github-heading { align-items: center; }
.github-profile { display: grid; grid-template-columns: auto 1fr; gap: .8rem 1rem; align-items: center; }
.github-avatar { display: grid; grid-row: span 2; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: 50%; background: var(--ink); color: var(--green); font-family: var(--mono); font-size: .7rem; }
.github-profile div { display: grid; gap: .2rem; }
.github-profile strong { font-size: .78rem; }
.github-profile span { color: var(--muted); font-size: .68rem; }
.github-profile a { grid-column: 2; width: max-content; font-size: .7rem; font-weight: 700; }
.github-callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 8rem; padding: 1.5rem 2rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--paper); transition: border-color 180ms ease, transform 180ms ease; }
.github-callout:hover { border-color: var(--ink); transform: translateY(-3px); }
.github-callout span { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.github-callout strong { font-size: .78rem; }

.site-footer { padding-block: 3rem; border-top: 1px solid #30322e; background: var(--ink); color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; }
.footer-inner > div:first-child p { margin: .7rem 0 0; color: rgba(255,255,255,.52); font-size: .7rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: .7rem; }
.footer-inner > p { grid-column: 1 / -1; margin: 1rem 0 0; color: rgba(255,255,255,.4); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }

@media (max-width: 800px) {
  .page-shell, .header-inner { width: min(100% - 2rem, 40rem); }
  .header-inner { grid-template-columns: 1fr auto; height: 64px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .68rem; }
  .menu-button i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
  .mobile-nav { position: absolute; top: calc(100% + .6rem); right: 0; left: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 1.2rem 3rem rgba(23,25,22,.13); }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { padding: .8rem; border-radius: .6rem; font-size: .78rem; }
  .mobile-nav a:hover { background: var(--surface); }
  .hero { grid-template-columns: 1fr; gap: 3.5rem; min-height: auto; padding-block: 5rem; }
  .hero h1 { font-size: clamp(3rem, 14.2vw, 4.5rem); }
  .hero-card { min-height: 22rem; margin-right: .65rem; }
  .section { scroll-margin-top: 64px; }
  .section-heading { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-grid, .credential-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 23rem; }
  .credential-card { grid-template-columns: auto 1fr; }
  .credential-card-link { grid-template-columns: auto minmax(0, 1fr) auto; }
  .github-callout { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .footer-inner > p { grid-column: auto; }
}

@media (max-width: 460px) {
  .hero-actions .button { flex: 1; }
  .experience-item header { gap: 1rem; }
  .experience-number { display: none; }
  .experience-item ul { padding-left: 1.05rem; }
  .github-profile { grid-template-columns: auto 1fr; }
}

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