:root {
--bg: #ffffff;
--bg-soft: #f5f7fb;
--text: #0d172a;
--text-soft: #536079;
--line: #dfe7f3;
--blue: #2563eb;
--blue-dark: #1746b8;
--blue-soft: #e9f0ff;
--shadow: 0 20px 60px rgba(19, 35, 72, .12);
--radius: 8px;
--container: min(1120px, calc(100% - 40px));
--ease: cubic-bezier(.2, .8, .2, 1);
}

* {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
min-height: 100vh;
margin: 0;
color: var(--text);
background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, .12), transparent 28%),
    linear-gradient(180deg, rgba(245, 247, 251, .92), #fff 38%);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
line-height: 1.6;
overflow-x: hidden;
}

a {
color: inherit;
text-decoration: none;
}

h2,
h3,
p {
margin-top: 0;
}

.container {
width: var(--container);
margin: 0 auto;
}

.site-header {
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(223, 231, 243, 0);
background: rgba(255, 255, 255, .86);
backdrop-filter: blur(18px);
transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.site-header.is-scrolled {
border-color: rgba(223, 231, 243, .9);
box-shadow: 0 10px 30px rgba(13, 23, 42, .06);
}

.nav {
display: flex;
min-height: 84px;
align-items: center;
justify-content: space-between;
transition: min-height .25s var(--ease);
}

.site-header.is-scrolled .nav {
min-height: 66px;
}

.logo {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 1rem;
font-weight: 800;
white-space: nowrap;
}

.logo-mark {
display: grid;
width: 30px;
height: 30px;
place-items: center;
border-radius: var(--radius);
color: #fff;
background: #000;
}

.logo-mark svg,
.btn svg {
width: 20px;
height: 20px;
}

.btn {
display: inline-flex;
min-height: 46px;
align-items: center;
justify-content: center;
gap: 9px;
padding: 0 18px;
border: 1px solid transparent;
border-radius: var(--radius);
font-weight: 800;
line-height: 1;
transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.btn:hover {
transform: translateY(-2px);
}

.btn-secondary {
color: var(--text);
border-color: var(--line);
background: #fff;
box-shadow: 0 10px 24px rgba(13, 23, 42, .05);
}

.btn-secondary:hover {
border-color: rgba(37, 99, 235, .34);
background: var(--blue-soft);
}

.section {
padding: 96px 0;
}

.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 30px;
margin-bottom: 42px;
}

.section-heading h2 {
max-width: 700px;
margin-bottom: 0;
font-size: clamp(2rem, 4vw, 3.4rem);
line-height: 1.02;
}

.section-heading p {
max-width: 430px;
margin: 0;
color: var(--text-soft);
font-size: 1.04rem;
}

.portfolio-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
align-items: stretch;
}

.project-card {
display: flex;
min-height: 100%;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--radius);
background: #fff;
box-shadow: 0 10px 28px rgba(13, 23, 42, .05);
transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.project-card:nth-child(5):last-child {
width: 100%;
max-width: calc((100% - 24px) / 2);
grid-column: 1 / -1;
justify-self: center;
}

.project-card:hover {
border-color: rgba(37, 99, 235, .25);
box-shadow: 0 22px 48px rgba(13, 23, 42, .11);
transform: translateY(-6px);
}

.project-shot {
aspect-ratio: 3424 / 2168;
overflow: hidden;
background: #f7f9fd;
}

.project-shot picture {
display: block;
width: 100%;
height: 100%;
}

.project-shot img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
transition: transform .35s var(--ease), filter .35s var(--ease);
}

.project-card:hover .project-shot img {
filter: saturate(1.04);
transform: scale(1.035);
}

.project-info {
display: flex;
flex: 1;
flex-direction: column;
padding: 24px;
}

.project-info h3 {
margin-bottom: 8px;
font-size: 1.35rem;
}

.project-info p {
margin-bottom: 18px;
color: var(--text-soft);
}

.tech-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}

.project-info .btn {
align-self: flex-start;
margin-top: auto;
}

.tag {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--text-soft);
background: #fff;
font-size: .78rem;
font-weight: 800;
}

.demo-disclaimer {
margin-top: 18px;
padding: 13px 14px;
border: 1px solid rgba(37, 99, 235, .18);
border-radius: var(--radius);
background: linear-gradient(180deg, rgba(233, 240, 255, .72), rgba(248, 250, 252, .96));
color: var(--text-soft);
font-size: .86rem;
line-height: 1.5;
}

.demo-disclaimer p {
margin-bottom: 0;
}

.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
opacity: 1;
transform: translateY(0);
}

@media (max-width: 900px) {
.section-heading {
    display: block;
}

.section-heading p {
    margin-top: 14px;
}
}

@media (max-width: 820px) {
:root {
    --container: min(100% - 28px, 1120px);
}

.nav {
    min-height: 72px;
}

.section {
    padding: 72px 0;
}

.portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.project-card:nth-child(5):last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
}
}

@media (max-width: 640px) {
.project-shot {
    aspect-ratio: 9 / 16;
}

.project-info {
    padding: 20px;
}

.project-info .btn {
    width: 100%;
}
}

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

.reveal {
    opacity: 1;
    transform: none;
}
}
