@font-face {
  font-family: Manrope;
  src: url(manrope.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url(ibm-plex-mono.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f5f7fc;
  --surface: #fff;
  --border: #dbe1ef;
  --text: #10182e;
  --muted: #455370;
  --subtle: #53627e;
  --accent: #264cda;
  --navy: #0e1835;
  --navy-panel: #172446;
  --navy-border: #34466c;
  --navy-text: #f6f8ff;
  --navy-muted: #c3cee9;
  --mono: "IBM Plex Mono", monospace;
  --sans: Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body { margin: 0; color: var(--text); background: var(--canvas); font: 500 1rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
::selection { color: #fff; background: #264cda; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(100% - 88px, 1220px); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 3; padding: 10px 14px; color: #fff; background: var(--accent); translate: 0 -180%; }
.skip-link:focus { translate: 0; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 73px; gap: 23px; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.wordmark-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--accent); }
.site-header nav, .footer-links { display: flex; align-items: center; gap: 27px; font-size: .875rem; color: var(--muted); }
.site-header nav a, .footer-links a { padding: 7px 0; font-weight: 750; }
.site-header nav a:hover, .site-header nav a[aria-current="page"], .footer-links a:hover { color: var(--accent); }
.header-contact { display: inline-flex; justify-self: end; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.header-contact:hover { color: var(--accent); border-color: #a4b5ee; background: #f0f4ff; }

.hero { border-bottom: 1px solid var(--border); background: var(--canvas); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(25px, 4vw, 56px); padding-block: 70px 75px; }
.eyebrow { color: var(--accent); font: .8125rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-name { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; }
.hero-name span { width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(3.45rem, 5.65vw, 5.35rem); font-weight: 800; line-height: 1; letter-spacing: -.077em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 32rem; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 800; line-height: 1.35; transition: background-color .18s, border-color .18s, color .18s; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #1b39af; border-color: #1b39af; }
.button-secondary { color: var(--text); background: var(--surface); border-color: #cbd4e8; }
.button-secondary:hover { color: var(--accent); background: #eaf0ff; border-color: #a4b5ee; }
.hero-location { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 19px; color: var(--subtle); font-size: .85rem; }
.hero-location svg { color: var(--accent); }
.hero-art { position: relative; aspect-ratio: 1.38; display: flex; align-items: end; overflow: hidden; isolation: isolate; min-width: 0; border: 1px solid #274ceb; border-radius: 26px; background: #12258f; box-shadow: 0 21px 48px -29px #2347bfaa; }
.hero-art img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; animation: picture-settle .95s cubic-bezier(.2,.65,.3,1) both; }
.hero-art::after { position: absolute; inset: 45% 0 0; z-index: -1; content: ""; background: linear-gradient(transparent, #091853aa); pointer-events: none; }
.hero-stack { display: grid; width: calc(100% - 34px); grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 17px; padding: 11px 13px; border: 1px solid #ffffff53; border-radius: 15px; background: #132868; color: #fff; box-shadow: 0 7px 22px #08174b55; transition: background-color .18s, border-color .18s; }
.hero-stack:hover { background: #1d387b; border-color: #a9bdff; }
.hero-stack:focus-visible { outline-color: #fff; outline-offset: -4px; }
.hero-stack-icon { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #6282da; border-radius: 10px; background: #2847a0; color: #eef2ff; }
.hero-stack small { display: block; color: #d5e0ff; font-size: .76rem; line-height: 1.3; }
.hero-stack strong { display: block; margin-top: 3px; font-size: clamp(.88rem, 1.45vw, 1.08rem); font-weight: 800; line-height: 1.3; }
.hero-stack-end { display: grid; place-items: center; color: #d5e0ff; }

.section { padding-block: 77px; }
.section-head { display: grid; gap: 16px; margin-bottom: 27px; }
.section-head h2, .contact-panel h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.07em; }
.work-section { background: var(--surface); }
.work-head { grid-template-columns: 1fr minmax(270px, 380px); align-items: end; }
.work-head > p { color: var(--muted); }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 14px; margin-bottom: 15px; border-block: 1px solid var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 37px; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 800; }
.filters button:hover { background: #eef2fa; }
.filters button[aria-pressed="true"] { color: #173db8; background: #e8efff; border-color: #b8c9f8; }
.project-count { flex: 0 0 auto; color: var(--subtle); font: .8125rem/1.4 var(--mono); }

.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.project-card, .stack-preview-card, .stack-detail, .case-study { --tint: #2048c9; --tint-soft: #e9efff; }
.tint-violet { --tint: #5936ad; --tint-soft: #efeaff; }
.tint-green { --tint: #086b49; --tint-soft: #e1f6ee; }
.tint-cyan { --tint: #08657b; --tint-soft: #dff5fa; }
.tint-amber { --tint: #825023; --tint-soft: #fff0da; }
.tint-rose { --tint: #a23c5b; --tint-soft: #fce9f0; }
.project-card { display: flex; grid-column: span 2; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--canvas); transition: border-color .2s, box-shadow .2s, transform .2s; }
.project-card:hover, .project-card:focus-within { border-color: #a8b9e1; box-shadow: 0 15px 30px -25px #18366f99; }
.project-featured { grid-column: span 3; }
.project-lead { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); background: #edf2ff; }
.project-lead .project-visual { order: 2; border-bottom: 0; border-left: 1px solid #bacefc; }
.project-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 22px; }
.project-lead .project-body { justify-content: center; padding: clamp(25px, 4vw, 49px); }
.project-top { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.project-icon { display: grid; width: 39px; height: 39px; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--tint); background: var(--tint-soft); }
.project-lead .project-icon { background: #dce7ff; }
.project-lane { color: var(--tint); font: .75rem/1.4 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.project-card h3 { font-size: clamp(1.26rem, 2.15vw, 1.6rem); font-weight: 800; letter-spacing: -.05em; }
.project-card h3 a:hover { color: var(--tint); }
.project-featured h3 { font-size: clamp(1.56rem, 2.8vw, 2.15rem); }
.project-lead h3 { font-size: clamp(2rem, 3.55vw, 3.32rem); }
.project-summary { margin-block: 9px 14px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.project-lead .project-summary { max-width: 33rem; font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tags li { padding: 3px 8px; border: 1px solid #d4deef; border-radius: 999px; background: #fff; color: #344463; font: .75rem/1.5 var(--mono); }
.project-link { display: inline-flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 15px; padding-bottom: 2px; color: var(--tint); font-size: .875rem; font-weight: 800; }
.project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-card :focus-visible { outline-offset: 2px; }

.project-visual { --visual-ink: #264cda; --visual-bg: #dce7ff; display: grid; min-height: 218px; place-items: center; padding: clamp(18px, 3.7vw, 42px); border-bottom: 1px solid var(--border); background: linear-gradient(#ffffff75 1px, transparent 1px), linear-gradient(90deg, #ffffff75 1px, transparent 1px), var(--visual-bg); background-size: 24px 24px; }
.project-lead .project-visual { min-height: 316px; }
.visual-trip { --visual-ink: #5b38ac; --visual-bg: #ede4ff; }
.visual-care { --visual-ink: #096981; --visual-bg: #d8f2f7; }
.visual-frame { width: min(100%, 420px); min-width: 0; border: 1px solid #b9c8ea; border-radius: 13px; background: #fff; box-shadow: 0 17px 31px -19px #2f4a8677; }
.visual-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 13px; border-bottom: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 800; }
.visual-heading > span:first-child, .visual-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.visual-heading svg, .visual-row svg { color: var(--visual-ink); }
.visual-lights { display: flex; gap: 4px; }
.visual-lights i { width: 5px; height: 5px; border-radius: 50%; background: #7989aa; }
.visual-body { display: grid; gap: 6px; padding: 11px 13px 13px; }
.visual-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 2px; }
.visual-stages span { display: grid; place-items: center; min-height: 28px; padding: 2px; text-align: center; color: var(--visual-ink); border-radius: 5px; background: var(--visual-bg); font: .69rem/1.2 var(--mono); }
.visual-row { display: flex; gap: 7px; justify-content: space-between; align-items: center; min-height: 29px; padding: 4px 7px; border: 1px solid #e0e6f3; border-radius: 6px; color: #384766; font-size: .76rem; line-height: 1.35; }
.visual-state { color: var(--visual-ink); text-align: right; font-weight: 800; }

.stack-section { color: var(--navy-text); background: var(--navy); }
.stack-section :focus-visible { outline-color: #c3d1ff; }
.stack-preview-head { grid-template-columns: 1fr auto; align-items: end; }
.stack-preview, .stack-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.stack-preview-card a { position: relative; display: grid; height: 100%; min-width: 0; gap: 9px; padding: 23px 26px; border: 1px solid var(--navy-border); border-radius: 19px; background: var(--navy-panel); transition: background-color .2s, border-color .2s, transform .2s; }
.stack-preview-card a:hover { border-color: #7c99ea; background: #213258; }
.stack-preview-card .project-icon { margin-bottom: 3px; }
.stack-level { color: var(--tint); font: .78rem/1.45 var(--mono); }
.stack-preview-card .stack-level { color: var(--navy-muted); }
.stack-preview-card h3, .stack-detail h2 { font-size: clamp(1.5rem, 2.55vw, 2rem); font-weight: 800; letter-spacing: -.05em; }
.stack-preview-card p { max-width: 34ch; color: var(--navy-muted); font-size: .94rem; }
.stack-chevron { position: absolute; inset: 22px 20px auto auto; color: var(--navy-muted); }

.experience-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 34px; }
.experience-list { padding: 0; list-style: none; }
.experience-row { display: grid; grid-template-columns: 151px minmax(0, 1fr); gap: 17px; padding-block: 22px; border-top: 1px solid var(--border); }
.experience-row:last-child { border-bottom: 1px solid var(--border); }
.experience-row h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; }
.time-label { color: var(--accent); font: .8rem/1.45 var(--mono); }
.experience-row .experience-role { margin-top: 6px; font-weight: 800; }
.experience-row div > p:last-child { margin-top: 5px; color: var(--muted); }

.contact-section { padding-top: 0; }
.contact-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; padding: clamp(24px, 5vw, 57px); border-radius: 24px; color: var(--navy-text); background: #203eb4; }
.contact-panel a:focus-visible, .contact-panel button:focus-visible { outline-color: #fff; }
.contact-panel p { margin-top: 15px; color: #e2e9ff; }
.contact-actions { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.contact-actions .button-primary { color: #1938ab; background: #fff; border-color: #fff; }
.contact-actions .button-primary:hover { background: #e7eeff; }
.contact-actions .button-secondary { color: #fff; background: #203eb4; border-color: #cad6fb; }
.contact-actions .button-secondary:hover { background: #182f92; }
.contact-actions .copy-status { position: absolute; top: 100%; margin-top: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; min-height: 85px; align-items: center; justify-content: space-between; gap: 15px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; }

.case-layout, .stack-layout { padding-block: 41px 82px; }
.case-layout { max-width: 900px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .9375rem; font-weight: 800; }
.back-link svg { rotate: 180deg; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-heading, .stack-heading { padding: 33px 0 26px; }
.case-heading h1, .stack-heading h1 { font-size: clamp(2.9rem, 7vw, 5.15rem); font-weight: 800; line-height: 1; letter-spacing: -.075em; }
.case-heading h1 { margin-top: 11px; }
.case-intro, .stack-heading p { max-width: 44rem; margin-top: 18px; color: var(--muted); font-size: clamp(1.075rem, 2.2vw, 1.26rem); }
.case-meta { display: flex; flex-wrap: wrap; gap: 15px 34px; margin-top: 23px; }
.case-meta div { min-width: 0; }
.case-meta dt { margin-bottom: 5px; color: var(--subtle); font: .82rem/1.45 var(--mono); }
.case-meta dd { font-weight: 800; }
.case-study .project-visual { min-height: 245px; border: 1px solid var(--border); border-radius: 20px; }
.case-copy { display: grid; gap: 25px; margin-top: 25px; }
.case-copy section { padding-top: 20px; border-top: 1px solid var(--border); }
.case-copy h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 3vw, 1.72rem); letter-spacing: -.045em; }
.case-copy section p, .case-copy section li { max-width: 73ch; color: var(--muted); }
.contribution-list { display: grid; gap: 9px; padding-left: 22px; }
.contribution-list li::marker { color: var(--accent); }
.case-proof { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #b6c7f6; border-radius: 11px; background: #e8efff; color: #1f409e; font-weight: 800; }
.case-links { display: flex; flex-wrap: wrap; gap: 10px; }
.case-links a, .stack-projects a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .875rem; font-weight: 800; }
.case-links a { padding: 8px 12px; border: 1px solid #b3c3ec; border-radius: 999px; background: #fff; }
.case-links a:hover, .stack-projects a:hover { text-decoration: underline; text-underline-offset: 4px; }

.stack-heading { max-width: 750px; }
.stack-navigation { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; margin-bottom: 23px; border-block: 1px solid var(--border); }
.stack-navigation a { padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--accent); font-size: .875rem; font-weight: 800; }
.stack-navigation a:hover { background: #e8efff; border-color: #b6c7f6; }
.stack-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 26px; }
.stack-detail { min-width: 0; padding: clamp(17px, 3.3vw, 31px); border: 1px solid var(--border); border-radius: 19px; background: #fff; }
.stack-detail:target { border-color: #6d8be5; box-shadow: 0 0 0 3px #dce6ff; }
.stack-detail-top { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; }
.stack-detail-copy { margin-top: 10px; color: var(--muted); }
.stack-detail h3 { margin: 18px 0 8px; font-size: .95rem; font-weight: 800; }
.stack-projects { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 0; list-style: none; }
.stack-projects a { min-height: 25px; }

.hero-copy { animation: rise-in .6s cubic-bezier(.2,.65,.3,1) both; }
.is-entering { animation: rise-in .42s cubic-bezier(.2,.65,.3,1); }
@keyframes rise-in { from { opacity: .45; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes picture-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-card:hover, .stack-preview-card a:hover { transform: translateY(-3px); }
}

@media (max-width: 1010px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { padding-block: 52px 57px; }
  .section { padding-block: 60px; }
  .contact-section { padding-top: 0; }
  .project-body { padding-inline: 17px; }
}

@media (max-width: 800px) {
  .header-inner { gap: 15px; }
  .site-header nav { gap: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); gap: 22px; }
  .hero h1 { font-size: clamp(2.6rem, 6.75vw, 3.65rem); }
  .hero-art { aspect-ratio: 1.08; }
  .hero-stack { width: calc(100% - 22px); margin: 11px; }
  .work-head { grid-template-columns: 1fr; }
  .work-head > p { max-width: 34rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { grid-column: auto; }
  .project-lead { grid-column: 1 / -1; }
  .stack-preview-head, .experience-grid { grid-template-columns: 1fr; }
  .stack-preview-head .button { justify-self: start; }
  .stack-preview-card a { padding: 18px 14px; }
  .stack-chevron { inset: 18px 13px auto auto; }
  .experience-grid { gap: 0; }
  .contact-panel { grid-template-columns: 1fr; padding-bottom: 46px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 3px 12px; padding-top: 10px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; gap: clamp(13px, 4vw, 24px); min-height: 38px; }
  .header-contact { grid-column: 2; grid-row: 1; padding: 6px 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 37px 32px; }
  .hero h1 { font-size: clamp(2.57rem, 10vw, 4.2rem); }
  .hero-name { margin-bottom: 12px; }
  .hero-intro { margin-top: 15px; }
  .hero-actions { margin-top: 17px; }
  .hero-location { margin-top: 13px; }
  .hero-art { aspect-ratio: 1.38; border-radius: 18px; }
  .hero-stack { gap: 8px; padding: 8px; border-radius: 12px; }
  .hero-stack-icon { width: 34px; height: 34px; }
  .hero-stack-icon svg { width: 19px; }
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 21px; }
  .work-toolbar { align-items: start; flex-direction: column; gap: 8px; }
  .filters { gap: 5px; }
  .filters button { padding-inline: 9px; }
  .project-grid, .project-lead, .stack-preview, .stack-detail-grid { grid-template-columns: 1fr; }
  .project-lead .project-visual { order: 0; min-height: 192px; border-left: 0; border-bottom: 1px solid var(--border); }
  .project-visual { min-height: 184px; }
  .project-lead .project-body { padding: 21px 17px; }
  .experience-row { grid-template-columns: 1fr; gap: 7px; padding-block: 16px; }
  .contact-section { padding-top: 0; }
  .contact-panel h2 { font-size: clamp(2.15rem, 8.85vw, 3rem); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 14px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .case-layout, .stack-layout { padding-block: 25px 45px; }
  .case-heading, .stack-heading { padding-block: 22px 18px; }
}

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