:root {
  --max: 920px;
  --pad: 20px;
  --border: rgba(0,0,0,0.12);
  --muted: rgba(0,0,0,0.65);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.5;
  background: #ffffff;
  color: #000000;
}

a { color: inherit; }
a:hover { opacity: 0.85; }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
  color: #000000;
  backdrop-filter: blur(10px);
}
.brand { text-decoration: none; font-weight: 700; }
.links a { text-decoration: none; margin-left: 16px; color: var(--muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad);
}

.nav a {
  color: #000;
}

.card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.footer {
  padding: 24px var(--pad);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.intro1{
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.2em;
}

body{
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero{
  display: flex;
  align-items: center;
  gap: 48px;          /* space between image and text */
  flex-wrap: wrap;    /* stacks on small screens */
}

.profile-pic{
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.intro-text{
  flex: 1 1 320px;    /* text gets the remaining space */
  min-width: 320px;
}

/* Projects grid */
.page-header {
  margin: 28px 0 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;               /* makes the whole card clickable */
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.22);
}

.thumb {
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.04);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px 14px 16px;
}

.project-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.project-card p {
  margin: 0 0 10px;
  opacity: 0.82;
  line-height: 1.45;
}

.card-cta {
  font-size: 14px;
  opacity: 0.9;
}

.backlink {
  display: inline-block;
  margin: 18px 0 10px;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
}

.project-header {
  margin: 10px 0 14px;
}

.project-hero img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
}

.project-section {
  margin: 18px 0;
}

.project-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
}

@media (max-width: 820px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* 1) Size down kangaroobot.jpg (only inside the intro row) */
.project-intro .project-hero img {
  width: 320px;      /* change to taste */
  max-width: 100%;
  height: auto;
}

/* 2) Make initial-design.png span full page width (override the .project-hero width rules) */
.project-section .project-hero {
  width: 100%;
}

.project-section .project-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3) Size down the backflipping gif to really small */
.bonus-gif {
  width: 140px;      /* really small; adjust if needed */
  max-width: 100%;
  height: auto;
  display: block;
}

.project-intro {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
}

.project-intro .project-hero {
  flex: 0 0 auto;
}

.project-intro .project-hero img {
  width: 320px;
  height: auto;
  display: block;
}

.project-intro .project-overview {
  flex: 1;
  margin-top: 0;
}

.project-intro .project-overview h2 {
  margin-top: 0;
}





