/* Stair Design — portfolio styles */
:root {
  --ink: #1f1f1f;
  --muted: #8a8a8a;
  --bg: #fff;
  --forex-blue: #5b72c9;
  --equities-brown: #4c4542;
  --funding-green: #2e5e4e;
  --transfers-navy: #23324d;
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Header */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 40px;
  max-width: var(--max);
  margin: 0 auto;
}
header .nav-left { justify-self: start; font-weight: 600; font-size: 15px; }
header .logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
header .nav-right { justify-self: end; font-weight: 600; font-size: 15px; color: var(--muted); }
header a:hover { opacity: 0.6; }
header .active { text-decoration: underline; text-underline-offset: 6px; }

/* Intro */
.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 140px;
  text-align: center;
}
.intro h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.55;
}

/* Work grid */
.work {
  max-width: var(--max);
  margin: 0 auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.tile {
  display: block;
  padding: 80px 60px;
  text-align: center;
}
.tile img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.35s ease;
}
.tile:hover img { transform: scale(1.03); }
.tile .label {
  display: inline-block;
  margin-top: 28px;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.tile.forex { background: var(--forex-blue); }
.tile.equities { background: var(--equities-brown); }
.tile.funding { background: var(--funding-green); }
.tile.transfers { background: var(--transfers-navy); }
.tile.code { background: #0e2a1c; }
/* odd tile count: last tile spans the full row */
.work .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.work .tile:last-child:nth-child(odd) img { max-width: 456px; }

/* Project pages */
.project-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.project-head h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 600; }
.project-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.gallery {
  max-width: var(--max);
  margin: 0 auto 120px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.gallery img {
  height: auto;
  width: 100%;
  display: block;
  border: 1px solid #eee;
}

/* Bio */
.bio {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 140px;
  text-align: center;
}
.bio h1 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 600; margin-bottom: 40px; }
.bio p { font-size: 19px; line-height: 1.8; margin-bottom: 28px; }
.bio .linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.bio .linkedin:hover { opacity: 0.6; }
.bio .linkedin svg { width: 22px; height: 22px; }

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .work { grid-template-columns: 1fr; }
  .tile { padding: 60px 32px; }
  header { padding: 20px 20px; }
  .intro { padding: 70px 20px 90px; }
}
