:root {
  --ink: #0b1220;
  --paper: #f5f6f8;
  --accent: #c8102e;
  --accent-blue: #1a3a6b;
  --muted: #5b6472;
  --card-bg: #ffffff;
  --border: #e2e5ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--ink);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 15px;
}

.m3-flag {
  width: 28px;
  height: 21px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.m3-flag-row {
  width: 28px;
  height: 5px;
  display: flex;
  gap: 2px;
}

.m3-flag-blue {
  width: 9px;
  height: 5px;
  border-radius: 1px;
  background: #1a3a6b;
}

.m3-flag-red {
  width: 17px;
  height: 5px;
  border-radius: 1px;
  background: #c41e2a;
}

.m3-flag-full {
  width: 28px;
  height: 5px;
  border-radius: 1px;
  background: #c41e2a;
}

.brand .m3 {
  color: var(--accent);
  font-weight: 800;
}

.brand .sep {
  color: #4a5568;
  font-weight: 400;
}

.brand .client {
  color: #cfd4dc;
  font-weight: 500;
  font-size: 14px;
}

.topbar .tag {
  font-size: 13px;
  color: #9aa4b2;
}

.hero {
  padding: 64px 40px 40px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

.hero .divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin: 24px auto 0;
  border-radius: 2px;
}

.grid {
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(10, 15, 25, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 15, 25, 0.14);
}

.card .thumb-wrap {
  height: 260px;
  overflow: hidden;
  background: #dfe2e7;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.card .thumb-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.card .label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
}

.card .info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card .info h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 700;
}

.card .info p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.card .cta {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer {
  text-align: center;
  padding: 28px 40px 60px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Concept detail page */

.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.detail-bar .back {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.detail-bar .back:hover { opacity: 1; }

.detail-bar .title {
  font-size: 14px;
  font-weight: 700;
  color: #cfd4dc;
  letter-spacing: 0.3px;
}

.detail-bar .nav-links {
  display: flex;
  gap: 18px;
}

.detail-bar .nav-links a {
  color: #cfd4dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.detail-bar .nav-links a:hover { color: #fff; }

.detail-bar .nav-links a.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.image-frame {
  max-width: 1100px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.image-frame img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(10, 15, 25, 0.18);
  border: 1px solid var(--border);
}

.caption {
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .topbar, .hero, .grid, .detail-bar, .footer { padding-left: 20px; padding-right: 20px; }
}
