:root {
  --bg: #fafaf8;
  --ink: #1a1a1a;
  --muted: #6b6b64;
  --line: #dedad2;
  --accent: #b5522a;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.nav .logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav .logo .role {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  font-size: 13px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0;
}

/* Tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 0 80px;
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(15%);
}

.tile:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.tile .tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: #fff;
  transform: translateY(6px);
  opacity: 0.92;
}

.tile .tile-caption .num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.tile .tile-caption .name {
  font-size: 19px;
  font-weight: 700;
}

.tile .tile-caption .meta {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Project page */
.project-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}

.project-header .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.meta-row div span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: #948f85;
  margin-bottom: 3px;
}

.project-desc {
  max-width: 720px;
  font-size: 16px;
  color: #3a3a36;
  margin-bottom: 8px;
}

.project-gallery {
  padding: 40px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #fff;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 70px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.project-nav a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-nav a:hover { color: var(--ink); }

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 64px 0 90px;
  align-items: start;
}

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

.about-layout img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.about-layout h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 20px;
}

.about-layout p {
  font-size: 16px;
  color: #3a3a36;
  margin: 0 0 18px;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.linkedin-btn:hover { background: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
