:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f5fa;
  --text: #172033;
  --muted: #5f6b80;
  --line: #dbe3ef;
  --accent: #2e6df6;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 254, 0.88);
  border-bottom: 1px solid rgba(219, 227, 239, 0.8);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.projects-page,
.single-page {
  padding: 42px 0 72px;
}

.intro,
.embed-shell,
.policy-sheet {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

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

.project-card,
.embed-shell,
.policy-sheet {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card {
  overflow: hidden;
}

.project-image-wrap {
  background: var(--surface-soft);
  padding: 18px;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.project-body {
  padding: 24px;
}

.project-body h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.project-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.right-link {
  text-align: right;
}

.embed-shell,
.policy-sheet {
  padding: 28px;
}

.embed-placeholder {
  margin-top: 20px;
  min-height: 420px;
  border-radius: 20px;
  border: 1.5px dashed var(--line);
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8fc 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.policy-note {
  margin-top: 12px;
}

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .nav-row {
    min-height: 68px;
  }

  .site-nav {
    gap: 18px;
  }

  .project-body,
  .embed-shell,
  .policy-sheet {
    padding: 20px;
  }

  .project-links {
    flex-direction: row;
    align-items: flex-start;
  }
}

.single-page {
  max-width: 900px;
}

.form-embed {
  width: 100%;
  margin-top: 20px;
}

.form-embed iframe {
  width: 100%;
  border-radius: 12px;
}