:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --white: #fff;
  --ink: #111a29;
  --muted: #536073;
  --line: #dce1e7;
  --accent: #2348e9;
  --accent-hover: #1534b7;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--body);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button):focus-visible { outline: 3px solid #2e67ff; outline-offset: 4px; }
p, h1, h2, h3, ul { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - 5rem, 1180px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--accent);
  border-radius: .3rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 1.5rem;
}
.wordmark { display: inline-flex; align-items: center; gap: .7rem; width: max-content; font-family: var(--heading); }
.wordmark strong { font-weight: 700; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--white);
  background: var(--accent);
  font: 700 .95rem/1 var(--heading);
  letter-spacing: -.07em;
}
nav { display: flex; align-items: center; gap: 2.15rem; color: var(--muted); font-size: .9375rem; font-weight: 600; }
nav a { padding-block: .35rem; }
nav a:hover, .site-footer a:hover { color: var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .65rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  font-size: .9375rem;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-outline { border-color: #c8d0dc; }
.button-outline:hover { border-color: var(--accent); color: var(--accent); background: #edf0ff; }
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.header-contact { justify-self: end; min-height: 40px; padding-inline: 1rem; }

.hero {
  min-height: 556px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.3vw, 5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 5.8vw, 5rem);
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: max-content;
  max-width: 100%;
  padding: .4rem .7rem;
  border: 1px solid #cce5d8;
  border-radius: 999px;
  background: #e8f5ed;
  color: #19583d;
  font-size: .875rem;
  font-weight: 700;
}
.availability span { flex: 0 0 .45rem; height: .45rem; border-radius: 50%; background: #1d8157; }
h1, h2, h3 { font-family: var(--heading); }
h1 {
  font-size: clamp(3rem, 5.45vw, 5.55rem);
  line-height: 1.01;
  letter-spacing: -.076em;
  font-weight: 700;
  margin: 1.32rem 0 1.45rem;
}
.title-point { color: var(--accent); }
.hero-intro { max-width: 46ch; color: var(--muted); font-size: clamp(1.0625rem, 1.48vw, 1.25rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.18;
  border-radius: 15px;
  color: #e1eaff;
  background: radial-gradient(ellipse at 50% 10%, #263d7d, #0b1435 73%);
  box-shadow: 0 16px 28px -18px #172b6880;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#9ec0ff4d 1px, transparent 1px) 0 0 / 13px 13px;
  mask-image: linear-gradient(90deg, black, #0005 25% 75%, black);
}
.portrait {
  position: absolute;
  inset: 7% 13% auto;
  width: 74%;
  height: 80%;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid #a4beff7d;
  border-radius: 10px;
}
.hero-art figcaption {
  position: absolute;
  right: 13%;
  bottom: 4.1%;
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.section { padding-block: clamp(3.6rem, 6.2vw, 6rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2.5rem;
  margin-bottom: 2rem;
}
.section-heading > p { max-width: 39ch; color: var(--muted); }
h2 {
  font-size: clamp(2.1rem, 4.1vw, 3.62rem);
  line-height: 1.03;
  letter-spacing: -.061em;
}
.projects { border-block: 1px solid var(--line); background: #eef2f9; }
.projects .section-heading > div p { margin-top: .55rem; color: var(--muted); }
.github-profile { flex-shrink: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d7dfec;
  border-radius: 13px;
  background: var(--white);
}
.project-art {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.73;
}
.project-content { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.25rem 1.3rem; }
.eyebrow {
  color: #425593;
  font: 500 .8125rem/1.5 var(--mono);
  letter-spacing: .035em;
}
.project-content h3, .degree h3 { margin-top: .42rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.12; letter-spacing: -.055em; }
.project-content > p:not(.eyebrow) { margin-top: .55rem; margin-bottom: 1rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: auto; padding: 0; list-style: none; }
.tags li { padding: .15rem .48rem; border: 1px solid #dce3ee; border-radius: 5px; color: #364664; background: #f4f6fa; font: 500 .75rem/1.45 var(--mono); }
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  margin-top: 1rem;
}
.repo-link, .demo-link {
  padding: .52rem .74rem;
  color: #2342bf;
  font-size: .9rem;
  font-weight: 700;
}
.repo-link {
  border: 1px solid #d3dcf7;
  border-radius: 6px;
}
.repo-link:hover { background: #eaf0ff; border-color: #a6b8fb; }
.demo-link { padding-inline: 0; text-decoration: underline; text-underline-offset: .18em; }
.demo-link:hover { color: var(--accent-hover); }

.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff55 .8px, transparent .8px);
  background-size: 13px 13px;
  opacity: .57;
}
.football {
  background: repeating-linear-gradient(90deg, #ffffff00 0 13%, #ffffff09 13% 25%), linear-gradient(135deg, #124c3c, #0c7660);
}
.pitch {
  position: absolute;
  inset: 13% 12%;
  border: 1px solid #c7fbe165;
  transform: rotate(-11deg) scale(1.32);
}
.pitch::before, .pitch::after, .pitch i { content: ""; position: absolute; }
.pitch::before { top: 0; bottom: 0; left: 50%; border-left: 1px solid #c7fbe165; }
.pitch::after { top: 50%; left: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid #c7fbe165; border-radius: 50%; }
.pitch i { top: 29%; left: 0; width: 18%; height: 42%; border: 1px solid #c7fbe165; border-left: 0; }
.shirt {
  position: absolute;
  top: 19%;
  width: 37%;
  height: 65%;
  clip-path: polygon(25% 12%, 40% 3%, 48% 12%, 57% 12%, 64% 3%, 78% 12%, 99% 39%, 82% 55%, 73% 44%, 73% 98%, 28% 98%, 28% 44%, 19% 55%, 0 39%);
}
.shirt-back { left: 24%; background: repeating-linear-gradient(90deg,#0d1420 0 12%,#f3c06a 12% 23%); transform: rotate(-16deg) translateX(-15%); }
.shirt-front { left: 44%; background: repeating-linear-gradient(90deg,#f0fff4 0 12%,#6defba 12% 23%); transform: rotate(13deg); }

.commerce { background: radial-gradient(ellipse at 40% 20%, #fff1bd, #eebb60); }
.commerce::before { background-image: radial-gradient(#8d5b2b88 .8px, transparent .8px); }
.shop-panel {
  position: absolute;
  inset: 17% 16%;
  overflow: hidden;
  border: 1px solid #79502c5e;
  border-radius: 9px;
  background: #fff6e0;
  box-shadow: 8px 11px 0 #b67428a8, 13px 21px 26px #7d562c6e;
  transform: rotate(-9deg);
}
.panel-top { display: flex; align-items: center; height: 18%; gap: 4px; padding-inline: 5%; background: #3e2c2d; }
.panel-top b { display: block; width: 5px; height: 5px; background: #ffe0a1; border-radius: 50%; }
.shop-items { display: flex; gap: 5%; height: 82%; padding: 9%; }
.shop-items i { position: relative; flex: 1; border-radius: 5px; background: #eed194; }
.shop-items i:nth-child(2) { background: #d7ab83; }
.shop-items i:nth-child(3) { background: #e7c1a3; }
.shop-items i::after { content: ""; position: absolute; inset: auto 20% 15%; height: 3px; border-radius: 2px; background: #805330; opacity: .56; }
.loan { display: grid; place-items: center; background: radial-gradient(ellipse at 52% 25%, #4169c4, #16346f 76%); }
.loan-panel {
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  width: 63%;
  height: 61%;
  padding: 7%;
  gap: 11%;
  border: 1px solid #b8d4ff;
  border-radius: 13px;
  background: #e7efff;
  box-shadow: 8px 11px 0 #122759, 15px 18px 30px #0b214d8a;
  transform: rotate(-8deg);
}
.loan-panel > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  color: #fff;
  background: #2348b2;
  font: 600 clamp(1.1rem, 2.6vw, 1.85rem)/1 var(--mono);
}
.loan-fields { display: grid; height: 100%; gap: 12%; }
.loan-fields i { border-radius: 4px; background: #b2c8f5; }
.loan-fields i:last-child { width: 65%; background: #3e66cb; }

.education { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(1.7rem, 5vw, 5rem); }
.education-intro p { margin-top: .9rem; max-width: 47ch; color: var(--muted); }
.degree {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  padding: 1.55rem 1.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.degree-emblem {
  display: grid;
  flex: 0 0 66px;
  height: 66px;
  place-items: center;
  border-radius: 8px;
  background: #e5ebff;
  color: #2342bf;
  font: 700 1.45rem/1 var(--heading);
  letter-spacing: -.06em;
}
.degree p:last-child { margin-top: .4rem; color: var(--muted); }

.certificates { border-top: 1px solid var(--line); background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.filters button {
  min-width: 70px;
  min-height: 40px;
  padding: .36rem .9rem;
  border: 1px solid #cdd6e5;
  border-radius: 7px;
  color: #3b4b66;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.filters button:hover { background: #eef2ff; }
.filters button[aria-pressed="true"] { color: white; border-color: var(--accent); background: var(--accent); }
.certificate-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.certificate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.certificate-icon { position: relative; width: 40px; height: 40px; border-radius: 8px; background: #e9eeff; color: #2a4ac4; }
.certificate-icon::before, .certificate-icon::after { content: ""; position: absolute; border: 1.6px solid currentColor; }
.course-icon::before { inset: 11px 12px; border-radius: 2px; }
.course-icon::after { width: 8px; height: 5px; top: 17px; left: 16px; border-inline: 0; }
.event-icon { background: #e5f3ed; color: #1a684f; }
.event-icon::before { inset: 12px 11px; border-radius: 2px; }
.event-icon::after { width: 18px; left: 11px; top: 17px; border-width: 1.6px 0 0; }
.certificate-info h3 { font-size: 1.12rem; line-height: 1.2; letter-spacing: -.025em; }
.certificate-info p { margin-top: .26rem; color: var(--muted); font-size: .9rem; }
.certificate-link { padding: .55rem .72rem; border: 1px solid #d3dcf7; border-radius: 6px; color: #2342bf; font-size: .875rem; font-weight: 700; }
.certificate-link:hover { background: #eaf0ff; border-color: #a6b8fb; }

.contact { color: #fff; background: #142246; }
.contact-layout { display: flex; justify-content: space-between; gap: 1.3rem 2rem; align-items: center; }
.contact p { max-width: 51ch; margin-top: .75rem; color: #d7e0fe; }
.contact-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .65rem; max-width: 100%; }
.contact-button { color: #15244c; background: #b0f6d2; padding-inline: 1.5rem; }
.contact-button:hover { background: #d3ffe8; }
.contact-button-secondary { border-color: #8799c5; color: #f3f6ff; }
.contact-button-secondary:hover { background: #273964; }
.contact-actions :focus-visible { outline-color: #b0f6d2; }
.site-footer { font-size: .9rem; color: var(--muted); }
.footer-layout { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.05rem; }

@media (max-width: 1100px) {
  .hero { min-height: 0; gap: clamp(1.6rem, 3.5vw, 3rem); }
}
@media (max-width: 800px) {
  .shell { width: min(100% - 3rem, 650px); }
  .header-layout { gap: .8rem; }
  nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.5rem, 10vw, 5.1rem); }
  .hero-art { width: min(100%, 510px); aspect-ratio: 1.18; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education { grid-template-columns: 1fr; }
  .contact-layout { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 2rem); }
  .header-layout { grid-template-columns: 1fr auto; padding-block: .65rem .35rem; min-height: 0; gap: .45rem 1rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .75rem; }
  nav a { padding: .5rem .2rem; }
  .header-contact { grid-column: 2; grid-row: 1; }
  .hero { padding-block: 2.6rem 2.8rem; }
  h1 { font-size: clamp(2.6rem, 10.1vw, 3.6rem); }
  .project-grid { grid-template-columns: 1fr; }
  .degree { padding: 1rem; gap: .85rem; }
  .degree-emblem { flex-basis: 52px; height: 52px; }
  .certificate { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .45rem .72rem; }
  .certificate-icon { width: 40px; height: 40px; grid-row: span 2; }
  .certificate-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 345px) {
  .hero-actions { align-items: start; flex-direction: column; }
  .wordmark { gap: .45rem; font-size: .9rem; }
  nav { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
