:root {
  /*--max-width: 960px;*/
  --spacing: 2.5rem;
  --muted: #666;
  --border: #e5e5e5;
  --placeholder: #6f6f6f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

strong{
  color: #00267f;
}

.case-study {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing) 1rem;
}

h1, h2, h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

ol {
  margin-left: 0;
  padding-left: 1.2rem; /* adjust as needed */
}

ul {
  list-style-type: disc;
}


.heroimg1 {
  display: block;
  margin: 0 auto;
  max-width: 1060px;
  width: 100%;
  height: auto;
  border-radius: 25px;
  margin-bottom: 25px;
}

.subtitle {
  /*color: var(--muted);*/
  margin-bottom: 2rem;
}

/* Hero */
.hero-image {
  margin: 2rem 0;
  height: 260px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4rem;
  font-size: 0.9rem;

  max-width: 800px;     /* optional but recommended */
  margin: 0 auto;       /* centers the meta block */
  text-align: center;   /* centers text inside each cell */
}

.meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem; /* controls label ↔ value spacing */
}

.label {
  color: #00267F;
  font-size: 0.90rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.meta span:not(.label) {
  font-size: 1rem;
  font-weight: 500;
}



/* Sections */
.section {
  margin-top: 4rem;
}

.text-block {
  margin-bottom: 1.5rem;
}

.image-block {
  
  margin: 2rem 0;
}

/* Placeholder styling */
.placeholder {
  background: var(--placeholder);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-align: center;
}

/* Lists */
ul {
  padding-left: 1.2rem;
}

/* Next projects */
.next-projects {
  margin-top: 5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.casestudy-card {
  height: 180px;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero-image,
  .image-block {
    height: 180px;
  }
}

b {
  color: #00267F; 
}



/* Insights Section */
.insights {
  margin-top: 4rem;
  counter-reset: insight;

  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 2rem; /* space between cards */
}

.insights h2 {
  grid-column: 1 / -1; /* spans both columns */
  margin-bottom: 2rem;
}

/* Individual Insight */
.insight-card {
  padding: 2rem;
  margin-bottom: 0;
  border-left: 4px solid #1f3a5f; /* subtle authority tone */
  border-right: 4px solid #1f3a5f;
  background-color: #f9fafb;
  border-radius: 12px;
}

/* Insight title */
.insight-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  counter-increment: insight;
}

.insight-title::before {
  content: counter(insight, decimal-leading-zero);
  font-weight: 700;
  color: #bbb;
  margin-right: 0.5rem;
}

.insights .insight-card:last-child {
  grid-column: auto; /* span both columns */
  justify-self: center; /* center horizontally */
  max-width: none; /* optional: prevents it from stretching too wide */
}

@media (max-width: 768px) {
  .insights {
    grid-template-columns: 1fr;
  }
}


/* Body text */
.insight-body {
  margin-bottom: 1.5rem;
  /*max-width: 75ch;*/
}

/* Quote styling */
.insight-quote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 4px solid #2f80ed; /* subtle emphasis */
  font-style: italic;
  font-weight: bold;
  color: #1f3a5f;
  line-height: 1.6;
}

/* Design implication block */
.design-implication {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e6ea;
}

.design-implication h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555;
}

.design-implication p {
  margin: 0;
}

/* DESIGN STRATEGY */

.strategy-block p {
  font-size: 1.15rem; /* up from 1.05 */
  line-height: 1.65;
  color: #222;
  max-width: 75ch;
}

.principles-block h3,
.decision-log h3 {
  /*font-size: 1.25rem;*/
  margin-bottom: 1.75rem;
}

.principles-list li {
  font-size: 1.05rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.decision-card {
  padding: 1.75rem 2rem;
  background: #e9f5f9; /* slightly cooler than #fafafa */
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.06);
}

.decision-card strong {
  color: #00267f;
}


.decision-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.decision-card p {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0.5rem 0;
}

.related-insight {
  font-style: italic;
  color: #0f1114;
  margin-bottom: 1rem;
}

.tradeoff {
  color: #6b7280;
}

@media (max-width: 1140px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

.center {
  display: block;
  margin: auto;
}

/* Future State – Digital Flow */

.future-state .image-flow {
  margin: 4rem 0 5rem;
  display: flex;
  justify-content: center;
}

.future-state .image-flow img {
  width: 70%;
  max-width: 700px;
  height: auto;
}

/* In-flow case study images */
.zoomable-image {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 1.25rem auto 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoomable-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.zoomable-image--large {
  max-width: 920px; /* or whatever feels right */
}


/* MODAL CSS */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.image-modal.active {
  display: block;
}

.image-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}


.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

.image-modal__content {
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.image-modal.is-active .image-modal__content {
  transform: scale(1);
  opacity: 1;
}


.image-modal__content img {
  max-width: 100%;
  max-height: calc(90vh - 2rem);
  object-fit: contain;
  border-radius: 16px;
}


.image-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Constraint Cards */

.constraint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2-column layout */
  gap: 2rem; /* adequate space between cards */
  margin-top: 2rem;
}

.constraint-card {
  background: #e9f5f9;
  border-radius: 10px;
  padding: 2rem; /* generous internal padding */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.constraint-card h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

/* Definition list styling */

.constraint-card dl {
  margin: 0;
}

.constraint-card dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #00267F;
  margin-top: 1.25rem;
}

.constraint-card dt:first-child {
  margin-top: 0;
}

.constraint-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
}

.card-intro {
  margin-bottom: 1.25rem;
  color: #374151;
}

/* Mobile breakpoint */

@media (max-width: 768px) {
  .constraint-grid {
    grid-template-columns: 1fr; /* single column */
    gap: 1.5rem; /* slightly tighter on mobile */
  }

  .constraint-card {
    padding: 1.5rem;
  }

  .heroimg1 {
    margin-bottom: 10px;
  }

  .meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
}


