/* code.mikirinstudio.com (mikirinkode) page layout. Components and values come from the design system (ds/, copied at build). */

.hero { padding: var(--s-12) 0 var(--s-10); }
@media (min-width: 768px) { .hero { padding: var(--s-16) 0 var(--s-12); } }

.me { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 860px) { .me { grid-template-columns: 300px 1fr; gap: var(--s-16); } }
.me__photo { width: 168px; height: 168px; border-radius: var(--r-xl); object-fit: cover; background: var(--c-fill); }
@media (min-width: 860px) { .me__photo { width: 300px; height: 300px; } }
.me__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.me .hero-title { max-width: 760px; }
@media (min-width: 860px) { .me .hero-title { font-size: 48px; } }
.me .lead { max-width: 600px; }
.hero__cta { margin-top: var(--s-2); gap: var(--s-3); }

/* Three facts in one grouped strip: the 2px white gap, no lines. */
.facts { display: grid; gap: 2px; margin-top: var(--s-12); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--c-fill); padding: var(--s-5); display: flex; flex-direction: column; gap: 2px; }
.facts b { font: var(--t-body-strong); }
.facts span { font: var(--t-small); color: var(--c-ink-muted); }

.band--tight { padding-top: var(--s-8); }

/* Project cards: the screenshots are near-square, shown whole on white. */
.projects { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.proj .tile__pic { aspect-ratio: 755 / 720; }
.proj .tile__pic img { object-fit: contain; }
div.proj:hover { background: var(--c-fill); }
div.proj:hover .tile__pic img { transform: none; }
.proj .tags { margin-top: var(--s-1); }
.proj--more { background: var(--c-blue-tint); }
.proj--more:hover { background: var(--c-blue-soft); }

/* The studio card: three site screenshots layered like a small stack of windows. */
.studio-stack { position: relative; background: var(--c-blue-soft); }
.studio-stack img { position: absolute; width: 74%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r-sm); box-shadow: var(--shadow-float); transition: transform var(--dur-sheet) var(--ease-out); }
.proj .studio-stack img { object-fit: cover; }
.studio-stack img:nth-child(1) { right: 6%; top: 8%; }
.studio-stack img:nth-child(2) { left: 13%; top: 30%; }
.studio-stack img:nth-child(3) { left: 6%; bottom: 8%; }
.proj--more:hover .studio-stack img { transform: none; }
.proj--more:hover .studio-stack img:nth-child(1) { transform: translate(4px, -4px); }
.proj--more:hover .studio-stack img:nth-child(3) { transform: translate(-4px, 4px); }

.split { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.2fr; gap: var(--s-16); align-items: start; } }
.split .section-head { margin-bottom: 0; }
.hire__cta { align-self: flex-start; margin-top: var(--s-3); }

.row__text .tags { margin-top: var(--s-1); }

.about-text { gap: var(--s-4); max-width: 620px; }

.contact { display: flex; flex-direction: column; gap: var(--s-6); }
.contact .section-head { margin-bottom: 0; }
.contact__links { gap: var(--s-3); }

.footer { box-shadow: 0 -2px 0 var(--c-fill); }
