/* CAVE Lab showcase pages — shared styles replicating the PPTX poster design */
:root {
  --red: #AD392E;
  --ink: #1F1F1F;
  --body: #5F5F5F;
  --muted: #8A8A8A;
  --card: #F5F5F6;
  --line: #E6E6E6;
  --kicker: #F2C9C4;
  --logo-gray: #B0B0B5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: #E9E9EC;
  line-height: 1.55;
}

/* ---- top navigation linking the five showcases ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #232326;
  padding: 10px 16px;
}
.site-nav .brand {
  color: var(--kicker);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-right: 14px;
  white-space: nowrap;
}
.site-nav a {
  color: #C9C9CE;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a.active { background: var(--red); color: #fff; font-weight: 700; }

/* ---- poster canvas ---- */
.poster {
  max-width: 960px;
  margin: 28px auto 56px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,.12);
  padding-bottom: 28px;
}

/* ---- hero: full-width image, logo boxes, black title band ---- */
.hero {
  position: relative;
  aspect-ratio: 8.3 / 3.1;
  background-size: cover;
  background-position: center;
}
.logo-box {
  position: absolute;
  top: 13%;
  width: 23%;
  height: 26%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-gray);
  font-weight: 700;
  font-size: clamp(10px, 1.6vw, 14px);
  letter-spacing: 1px;
}
.logo-box.left  { left: 6%; }
.logo-box.right { right: 6%; }

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .62);
  padding: 2.2% 6%;
}
.kicker {
  color: var(--kicker);
  font-weight: 700;
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.hero-band h1 {
  color: #fff;
  font-size: clamp(20px, 4.4vw, 40px);
  line-height: 1.15;
  margin-bottom: 6px;
}
.subtitle {
  color: #E4E4E6;
  font-size: clamp(12px, 2vw, 18px);
}

/* ---- content sections ---- */
.content { padding: 28px 6% 0; }

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 22px 26px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.badge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-head h2, .block h2 {
  color: var(--ink);
  font-size: clamp(18px, 2.6vw, 24px);
}
.card p, .block > p { font-size: clamp(14px, 1.9vw, 16.5px); }

.block { margin-bottom: 34px; }

/* ---- screenshot pair ---- */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: center;
}
.shots img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
}
.shots figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}
.shots .arrow { display: none; }

/* variant with a transformation arrow between the two figures (Network Visualizer) */
.shots.with-arrow { grid-template-columns: 1fr auto 1fr; }
.shots.with-arrow .arrow {
  display: block;
  color: var(--red);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1;
}

/* ---- stat cards ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 22px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  padding: 18px 10px 16px;
}
.stat strong {
  display: block;
  color: var(--red);
  font-size: clamp(20px, 3.2vw, 30px);
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat span { font-size: 13.5px; }

/* ---- footer ---- */
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-top: 1px solid var(--line);
  margin: 0 6%;
  padding-top: 14px;
  font-size: 13.5px;
}
.foot b { color: var(--red); }

/* ---- prev / next pager ---- */
.pager {
  display: flex;
  justify-content: space-between;
  max-width: 960px;
  margin: -40px auto 56px;
  padding: 0 4px;
}
.pager a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.pager a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .card-row, .shots, .shots.with-arrow, .stats { grid-template-columns: 1fr; }
  .shots.with-arrow .arrow { transform: rotate(90deg); justify-self: center; }
  .poster { margin: 16px 10px 40px; }
  .pager { margin: -24px 10px 40px; }
}
