/* ============================================================
   Calibarium MEP - Case Study pages (dark premium theme)
   Shared by every case-study HTML in this folder.
   ============================================================ */
:root {
  --bg: #07090b;
  --bg-2: #0c1014;
  --ink: #ecedef;
  --ink-soft: #aeb4bb;
  --ink-faint: #6c747d;
  --line: rgba(220, 230, 240, 0.1);
  --teal: #2e8b9e;
  --teal-deep: #004d61;
  --gold: #daa520;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* top bar */
.cs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  background: rgba(7, 9, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cs-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.cs-brand .mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--teal);
  transform: rotate(45deg);
  position: relative;
}
.cs-brand .mark::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--gold); opacity: 0.85;
}
.cs-brand .accent { color: var(--teal); }
.cs-back {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.cs-back:hover { color: var(--ink); }

/* hero */
.cs-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(46, 139, 158, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1116, #07090b);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cs-hero-inner { max-width: 1000px; margin: 0 auto; }
.cs-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(46, 139, 158, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.cs-eyebrow.flagship { color: var(--gold); border-color: rgba(218, 165, 32, 0.5); }
.cs-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.cs-lead {
  margin-top: 1.2rem;
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.cs-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }

/* container */
.cs-container { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }

/* metrics */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: -2.5rem auto 3.5rem;
  position: relative;
  z-index: 2;
}
.cs-metric {
  background: linear-gradient(180deg, rgba(13, 18, 22, 0.95), rgba(10, 14, 18, 0.9));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.cs-metric .num {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
}
.cs-metric .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}

/* sections */
.cs-block { margin-bottom: 3rem; }
.cs-block h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.cs-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
  margin: 1.6rem 0 0.7rem;
}
.cs-block p { color: var(--ink-soft); margin-bottom: 0.8rem; }
.cs-block ul { list-style: none; display: grid; gap: 0.55rem; margin-top: 0.6rem; }
.cs-block li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.cs-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border: 1px solid var(--teal);
  transform: rotate(45deg);
}
.cs-block strong { color: var(--ink); }

/* table */
.cs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.88rem; }
.cs-table th {
  text-align: left;
  background: rgba(46, 139, 158, 0.14);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.cs-table td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.cs-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

/* highlight callout */
.cs-callout {
  background: linear-gradient(135deg, rgba(46, 139, 158, 0.08), rgba(46, 139, 158, 0.02));
  border-left: 3px solid var(--teal);
  padding: 1.1rem 1.4rem;
  border-radius: 0 12px 12px 0;
  margin-top: 1rem;
}
.cs-callout p { margin: 0; color: var(--ink); }

/* disciplines */
.cs-disciplines { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.cs-disc {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
}
.cs-disc.on { color: var(--ink); border-color: rgba(46, 139, 158, 0.5); }
.cs-disc .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.cs-disc.on .dot { opacity: 1; box-shadow: 0 0 8px 0 currentColor; }

/* tags */
.cs-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.cs-tag {
  font-size: 0.76rem;
  color: var(--teal);
  background: rgba(46, 139, 158, 0.08);
  border: 1px solid rgba(46, 139, 158, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* cta */
.cs-cta {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  margin-top: 3rem;
  background: linear-gradient(180deg, #0b1116, #07090b);
  border-top: 1px solid var(--line);
}
.cs-cta h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.6rem; margin-bottom: 0.6rem; }
.cs-cta p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.cs-btn {
  display: inline-block;
  background: var(--gold);
  color: #0a0b0d;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.cs-btn:hover { background: #f0c35a; }

footer.cs-foot {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}
