@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111a2c;
  --muted: #4b5970;
  --blue: #1747db;
  --blue-dark: #1236b0;
  --line: #dce3ed;
  --pale: #f4f7fc;
  --paper: #fff;
  --wrap: 1280px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 280px; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #2d67ff; outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { line-height: 1.58; }
h2 { font-size: clamp(2.25rem, 3.7vw, 3.35rem); line-height: .99; letter-spacing: -.066em; font-weight: 770; }
h3 { font-size: 1.16rem; line-height: 1.26; letter-spacing: -.035em; }
.wrap { width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 12px; left: 12px; background: #fff; padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.eyebrow, .meta { font-weight: 730; }
.eyebrow { color: var(--blue-dark); font-size: .75rem; letter-spacing: .17em; margin-bottom: 15px; }
.meta { color: var(--blue-dark); font-size: .72rem; letter-spacing: .075em; text-transform: uppercase; }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffffee;
  backdrop-filter: blur(18px);
}
.topbar::after { content: ""; display: block; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; pointer-events: none; background: linear-gradient(90deg, #1747db, #7ca2ff); transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; }
.nav-shell { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 790; letter-spacing: -.045em; text-decoration: none; }
nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(16px, 2.5vw, 36px); }
nav a { display: inline-flex; align-items: center; position: relative; font-size: .88rem; font-weight: 610; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--blue); }
nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); }
.menu-button { display: none; }
nav .mobile-contact { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 690;
  transition: background-color .18s, border-color .18s, box-shadow .18s, color .18s;
}
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 3px 6px #173ad51c; }
.button.primary:hover { background: var(--blue-dark); box-shadow: 0 5px 12px #173ad540; }
.button.secondary { background: #fff; color: var(--ink); border-color: #b7c2d3; }
.button.secondary:hover { background: #edf2ff; border-color: #7894db; color: var(--blue-dark); }
.button.small { min-height: 40px; padding: 8px 13px; font-size: .83rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }

.hero { overflow: hidden; background: linear-gradient(108deg, #fff 30%, #f0f4fd 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; position: relative; grid-template-columns: 1.03fr 1fr; min-height: 525px; align-items: stretch; }
.hero-copy { align-self: center; z-index: 2; padding-block: 55px 52px; }
.hero-copy > * { animation: enter .66s var(--entry-delay, 0s) cubic-bezier(.18,.7,.25,1) both; }
.hero-copy h1 { --entry-delay: .07s; }
.hero-copy .hero-summary { --entry-delay: .14s; }
.hero-copy .actions { --entry-delay: .20s; }
.hero-copy .hero-stats { --entry-delay: .27s; }
.hero h1 { font-size: clamp(3.2rem, 5.4vw, 5.4rem); line-height: .99; letter-spacing: -.078em; font-weight: 800; }
.hero h1 strong { color: var(--blue); font: inherit; }
.hero-dot { color: var(--blue); }
.hero-summary { margin: 22px 0 24px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.15rem); max-width: 49ch; }
.hero-stats { display: flex; max-width: 490px; margin-top: 32px; }
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 0 23px; border-left: 1px solid #cbd6e8; }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats dt { font-size: .79rem; color: var(--muted); white-space: nowrap; font-weight: 540; }
.hero-stats dd { font-weight: 800; font-size: 1.76rem; letter-spacing: -.055em; line-height: 1.13; }
.hero-stats small { font-size: .83rem; color: var(--muted); font-weight: 620; letter-spacing: -.02em; }
.hero-visual { position: relative; min-width: 0; isolation: isolate; animation: enter .85s .07s cubic-bezier(.18,.7,.25,1) both; }
.portrait-grid {
  position: absolute; z-index: -2; inset: 0 -26% 0 5%;
  background: repeating-linear-gradient(0deg, #1c4cbe14 0 1px, transparent 1px 29px), repeating-linear-gradient(90deg, #1c4cbe14 0 1px, transparent 1px 29px);
  mask-image: linear-gradient(122deg, transparent 14%, #000 58%, transparent);
}
.portrait-outline { position: absolute; z-index: -1; inset: 12% 10% 12% 15%; transform: skew(-25deg); border: 1px solid #7690c5; opacity: .75; translate: calc(var(--portrait-x, 0px) * -.55) calc(var(--portrait-y, 0px) * -.55); transition: translate .34s ease-out; }
.portrait-plane { position: absolute; z-index: -1; inset: 14% -1% 7% 0; clip-path: polygon(20% 30%, 100% 0, 100% 57%, 81% 100%, 0 100%); background: linear-gradient(148deg, #3d6aff 0, #1648eb 53%, #0b2ea6 100%); }
.portrait-plane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(117deg, transparent 25%, #bcd4ff40 45%, transparent 63%); transform: translateX(-108%); animation: sweep 1.55s .33s ease-out both; }
.portrait-frame { position: absolute; inset: 2% -1% 7% -2%; clip-path: polygon(0 100%, 2% 78%, 19% 0, 100% 0, 100% 57%, 81% 100%); }
.portrait-frame img { position: absolute; width: min(108%, 650px); max-width: none; height: auto; bottom: -5.5%; left: 50%; transform: translateX(-50%); filter: saturate(.85) contrast(1.025); translate: var(--portrait-x, 0px) var(--portrait-y, 0px); transition: translate .34s ease-out; }
.portrait-caption { position: absolute; bottom: 1.9%; right: 0; color: #334e81; font-size: .69rem; font-weight: 760; letter-spacing: .16em; }

.section { padding-block: clamp(56px, 6.6vw, 96px); border-bottom: 1px solid var(--line); }
.section.work { padding-top: clamp(48px, 5vw, 70px); }
.split { display: grid; grid-template-columns: minmax(188px, 1fr) minmax(0, 4fr); gap: clamp(22px, 3.1vw, 48px); }
.section-intro { padding-top: 3px; }
.section-intro > p:last-child:not(.eyebrow) { margin-top: 17px; color: var(--muted); }
#certifications-title { font-size: clamp(1.6rem, 2.65vw, 2.5rem); }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px; }
.project-card { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px #182f5410; transition: translate .25s, box-shadow .25s, border-color .25s; }
.project-card:nth-child(n+4) { grid-column: span 3; display: grid; grid-template-columns: .85fr 1fr; }
.project-card:hover, .project-card:focus-visible { translate: 0 -4px; border-color: #a6baf1; box-shadow: 0 14px 25px #183e8b1a; }
.project-card:active { translate: 0 -1px; }
.project-art { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 148px; aspect-ratio: 1.68; color: #d7e7ff; isolation: isolate; }
.project-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .65s cubic-bezier(.18,.7,.25,1); }
.project-card .project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(122deg, transparent 28%, #b9d7ff3d 50%, transparent 72%); transform: translateX(-105%); transition: transform .8s cubic-bezier(.18,.7,.25,1); pointer-events: none; }
.project-card:hover .project-art::after { transform: translateX(105%); }
.project-card:hover img { scale: 1.08; }
.art-jarvis { background: radial-gradient(ellipse at center, #244dab 1%, #07142c 64%); }
.art-polaris { background: linear-gradient(136deg, #112d50, #3f6d8d 37%, #c2dff4 38%, #6295bc 54%, #18344d 55%); }
.art-campus { background: radial-gradient(ellipse at center, #7748bb 1%, #21163c 72%); }
.art-resume { background: linear-gradient(150deg, #0b1a39, #155198); }
.art-assure { background: linear-gradient(150deg, #123338, #166962); }
.art-campus img, .art-resume img { object-position: top center; }
.project-card:nth-child(n+4) .project-art { height: 100%; aspect-ratio: auto; }
.card-body { padding: 17px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-body h3 { margin: 6px 0 6px; font-size: 1.25rem; }
.card-body > p:not(.meta) { color: var(--muted); font-size: .93rem; }
.card-action { margin-top: auto; padding-top: 13px; display: inline-flex; align-items: center; gap: 9px; color: var(--blue-dark); font-weight: 720; font-size: .83rem; }
.card-action span { display: grid; place-items: center; height: 22px; width: 22px; border-radius: 5px; color: var(--blue); background: #edf2ff; font-size: .98rem; transition: rotate .28s, background-color .2s, color .2s; }
.project-card:hover .card-action span, .project-card:focus-visible .card-action span { rotate: 90deg; background: var(--blue); color: #fff; }

#skills, #experience { background: var(--pale); }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.skill-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 1.04rem; }
.icon-box { display: grid; place-items: center; flex-shrink: 0; width: 35px; aspect-ratio: 1; border-radius: 8px; background: #edf2ff; color: var(--blue-dark); font-weight: 740; font-size: 1.1rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tags li { padding: 4px 8px; border-radius: 6px; color: #273957; background: #f0f4fb; font-size: .82rem; line-height: 1.35; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cert-card, .cert-row { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cert-card { display: flex; flex-direction: column; }
.cert-card .actions { margin-top: auto; padding-top: 13px; }
.cert-preview { display: block; padding: 13px; background: #eff3fb; outline-offset: -4px; }
.cert-preview img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 2px 7px #1928391b; transition: box-shadow .2s; }
.cert-preview:hover img { box-shadow: 0 3px 13px #19283940; }
.cert-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding: 12px 14px; }
.cert-row h3 { font-size: 1rem; margin-top: 3px; }
.cert-row .button { margin-left: auto; }
.cert-date { margin-bottom: 3px; }
.journey { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3.5vw, 42px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 25px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 15px; left: 5px; width: 1px; background: #b5c7eb; }
.timeline li { position: relative; margin-bottom: 25px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: -25px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); outline: 4px solid var(--pale); }
.timeline h3 { margin: 4px 0; }
.timeline p:not(.meta), .awards li span { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.awards { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.awards ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 13px 0 0; }
.awards li strong { display: block; font-size: .91rem; margin-bottom: 3px; }
.awards li span { display: block; }
.contact { position: relative; isolation: isolate; overflow: hidden; background: #153ed0; color: #fff; }
.contact::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 42%; background: linear-gradient(115deg, #557aff52, #061e9166); clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; padding-block: clamp(52px, 7vw, 92px); }
.contact .eyebrow { color: #e5ecff; }
.contact h2 { font-size: clamp(3.1rem, 6vw, 5.25rem); }
.contact p:last-child { margin-top: 13px; color: #f2f5ff; }
.contact address { display: grid; justify-items: start; gap: 9px; font-style: normal; min-width: 0; }
.contact address a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-email { font-size: clamp(1.08rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -.03em; }
.contact-links { display: flex; gap: 21px; margin-top: 8px; }
.contact :focus-visible, .footer :focus-visible { outline-color: #fff; }
.footer { background: #0e182b; color: #eaf0ff; padding-block: 19px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; align-items: center; font-size: .86rem; }
.footer .brand { color: #fff; font-size: .96rem; }
.footer a:last-child { text-underline-offset: 3px; }

dialog { position: fixed; width: min(725px, calc(100% - 30px)); max-height: calc(100dvh - 36px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 22px 100px #02091a60; }
dialog[open] { animation: enter .23s ease-out both; }
dialog::backdrop { background: #061027ba; backdrop-filter: blur(5px); }
dialog[open]::backdrop { animation: backdrop-in .23s ease-out both; }
.close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px 3px; border: 1px solid #d5deef; border-radius: 9px; color: var(--ink); background: #fff; cursor: pointer; font-size: 1.55rem; }
.close:hover { background: #edf2ff; }
#project-detail { max-height: calc(100dvh - 38px); overflow-y: auto; overscroll-behavior: contain; }
.case-gallery { margin: 0; background: #0d172b; }
.gallery-image { width: 100%; height: clamp(136px, 29dvh, 290px); object-fit: contain; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; background: #edf2fa; border-bottom: 1px solid var(--line); padding: 8px clamp(12px, 3vw, 24px); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-thumb { display: grid; padding: 2px; width: 58px; height: 42px; border: 1px solid #a6b6d1; border-radius: 5px; background: #fff; cursor: pointer; transition: border-color .18s, background-color .18s; }
.gallery-thumb img { width: 100%; height: 100%; min-height: 0; overflow: hidden; object-fit: cover; border-radius: 3px; }
.gallery-thumb:hover, .gallery-thumb[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); }
.gallery-label { display: grid; gap: 2px; color: #344664; font-size: .8rem; }
.gallery-caption { font-weight: 720; }
.gallery-full { color: var(--blue-dark); text-underline-offset: 2px; }
.case-body { padding: clamp(19px, 4vw, 34px); }
.case-body h2 { margin: 7px 0 12px; }
.case-overview { color: var(--muted); margin-bottom: 20px; }
.case-features { display: grid; gap: 9px; margin: 8px 0 21px; padding: 0; list-style: none; }
.case-features li { padding-left: 13px; border-left: 2px solid #b6c7ff; }
.case-features p { margin-top: 3px; color: var(--muted); font-size: .94rem; }
.case-body .tags { margin-top: 8px; }
.case-links { margin-top: 19px; }
.arrived { animation: enter .58s var(--reveal-delay, 0ms) cubic-bezier(.18,.7,.25,1) both; }
.project-card:nth-child(3n+2), .skill-card:nth-child(even), .cert-card:nth-child(even) { --reveal-delay: 65ms; }
.project-card:nth-child(3n) { --reveal-delay: 125ms; }
@keyframes enter { from { opacity: .38; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: translateX(-105%); } to { transform: translateX(115%); } }

@media (max-width: 1140px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { min-height: 480px; }
  .hero h1 { font-size: clamp(2.85rem, 5.65vw, 4.65rem); }
  .portrait-frame img { width: max(111%, 490px); left: 53%; }
  .split { grid-template-columns: minmax(170px, .95fr) minmax(0, 4fr); gap: 24px; }
  .section-intro h2 { font-size: clamp(2rem, 3.65vw, 2.65rem); }
  .card-body { padding: 13px; }
}
@media (max-width: 890px) {
  .wrap { width: calc(100% - 44px); }
  nav { gap: 15px; }
  .nav-shell { gap: 14px; }
  .hero-inner { min-height: 450px; }
  .hero h1 { font-size: clamp(2.65rem, 6.1vw, 3.65rem); }
  .portrait-frame img { width: max(120%, 440px); bottom: -3%; }
  .split { display: block; }
  .section-intro { margin-bottom: 24px; }
  .section-intro > p:last-child:not(.eyebrow) { margin-top: 10px; }
  #certifications-title { font-size: clamp(2rem, 3.65vw, 2.65rem); }
  .desktop-break { display: none; }
  .eyebrow { margin-bottom: 11px; }
}
@media (max-width: 690px) {
  html { scroll-padding-top: 73px; }
  .wrap { width: calc(100% - 32px); }
  .nav-shell { min-height: 62px; }
  .nav-contact { display: none; }
  .menu-button { display: inline-flex; align-items: center; padding: 6px 13px; min-height: 42px; background: #fff; color: var(--blue-dark); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .86rem; font-weight: 700; }
  nav { position: absolute; display: none; top: calc(100% + 7px); right: 0; min-width: 176px; z-index: 1; flex-direction: column; gap: 0; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px #19283930; }
  .menu-button[aria-expanded="true"] + nav { display: flex; }
  nav a { min-height: 42px; padding: 8px 12px; border-radius: 6px; }
  nav .mobile-contact { display: inline-flex; }
  nav a[aria-current] { background: #edf2ff; }
  nav a[aria-current]::after { display: none; }
  .hero-inner { display: block; }
  .hero-copy { padding: 40px 0 15px; }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 4.4rem); }
  .hero-summary { margin: 17px 0 19px; }
  .hero-stats { margin-top: 23px; }
  .hero-stats div { padding-inline: clamp(12px, 4vw, 23px); }
  .hero-visual { height: clamp(240px, 77vw, 395px); margin-top: 6px; }
  .portrait-frame img { width: min(99%, 488px); left: 52%; bottom: -11%; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .project-card, .project-card:nth-child(n+4) { grid-column: span 1; display: flex; }
  .project-card:nth-child(n+4) .project-art { aspect-ratio: 1.68; height: auto; }
  .project-art { min-height: 100px; }
  .card-body h3 { font-size: 1.12rem; }
  .card-body > p:not(.meta) { font-size: .88rem; }
  .meta { font-size: .67rem; }
  .contact-inner, .journey { grid-template-columns: 1fr; }
  .contact-inner { gap: 21px; }
  .footer .wrap { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .project-grid, .cert-grid, .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card:nth-child(n+4) { display: grid; grid-template-columns: 100px 1fr; }
  .project-card:nth-child(n+4) .project-art { aspect-ratio: auto; height: 100%; }
  .cert-row { gap: 8px; padding: 9px; }
  .cert-row .icon-box { width: 28px; }
  .cert-row .button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
