:root {
  --bg: #0f172a;
  --surface: #17223b;
  --surface-2: #22304d;
  --text: #f5f8ff;
  --muted: #c4d0e6;
  --line: #324663;
  --brand: #38bdf8;
  --brand-strong: #7dd3fc;
  --radius: 14px;
  --shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  position: relative;
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.2;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: #22d3ee;
  top: -80px;
  left: -60px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  background: #a78bfa;
  bottom: -100px;
  right: -80px;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, black 12%);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  gap: 0.8rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: 180ms ease;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

main.shell {
  padding-block: 2rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero-photo-wrap {
  width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: scale(1.12) translateX(-14px);
  transform-origin: center center;
  display: block;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 100%;
  text-align: left;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 1rem;
}

.section {
  margin-top: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section h1,
.section h2 {
  margin: 0;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.card-body p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.project-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.project-header h1 {
  margin: 0 0 0.4rem;
}

.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0.8rem 0 1rem;
}

.project-content p {
  margin: 0;
  color: var(--text);
}

.btn {
  display: inline-block;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.62rem 0.9rem;
  transition: 180ms ease;
}

.btn-primary {
  background: var(--brand);
  color: #07111f;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}

.site-footer .shell {
  padding: 1rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .hero-photo-wrap {
    width: min(170px, 100%);
  }

  .card {
    grid-column: span 12;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
