/* ==========================================================================
   Case study pages — extends css/style.css
   Palette inherited: bg #111414 · text #efefef · accent #03c03c
   ========================================================================== */

.cs-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 0.3rem;
  width: 0%;
  background-color: #03c03c;
  z-index: 100;
}

/* --------------------------------------------------------- nav + hero --- */
.cs-back a {
  position: relative;
}
.cs-back a i {
  margin-right: 0.8rem;
  font-size: 0.8em;
  transition: transform 0.3s;
  display: inline-block;
}
.cs-back a:hover i {
  transform: translateX(-0.5rem);
}

.logo h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.logo h3 a:hover {
  color: #03c03c;
}

.cs-hero {
  width: 90%;
  margin: 8rem auto 0 auto;
}
.cs-eyebrow {
  display: block;
  color: #706b6b;
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.cs-eyebrow b {
  color: #03c03c;
  font-weight: 400;
}
.cs-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 12rem;
  line-height: 1;
  font-weight: 700;
  color: #efefef;
  transition: color 0.3s;
}
.cs-hero h1:hover {
  color: #03c03c;
}
.cs-hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #efefef;
  margin-top: 2rem;
  max-width: 60ch;
}
.cs-lede {
  color: rgba(239, 239, 239, 0.6);
  font-size: 2.2rem;
  margin-top: 3rem;
  max-width: 70ch;
}

/* --------------------------------------------------------------- meta --- */
.cs-meta {
  width: 90%;
  margin: 6rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 4rem;
  padding-top: 4rem;
  border-top: 0.2rem solid rgba(239, 239, 239, 0.1);
}
.cs-meta dt {
  color: #706b6b;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cs-meta dd {
  color: #efefef;
  font-size: 2rem;
}
.cs-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cs-stack li {
  font-size: 1.6rem;
  color: #efefef;
  border: 0.2rem solid rgba(239, 239, 239, 0.2);
  border-radius: 3rem;
  padding: 0.5rem 1.6rem;
  transition: all 0.3s;
}
.cs-stack li:hover {
  border-color: #03c03c;
  color: #03c03c;
}

/* ------------------------------------------------------------ sections --- */
.cs-section {
  width: 90%;
  margin: 0 auto;
  padding: 8rem 0;
  display: grid;
  grid-template-columns: 30% 65%;
  gap: 5%;
  border-top: 0.2rem solid rgba(239, 239, 239, 0.1);
}
.cs-section:first-of-type {
  border-top: none;
}
.cs-section-label {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.cs-section-label span {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 8rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(239, 239, 239, 0.1);
}
.cs-section-label h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: #efefef;
  margin-top: 1rem;
}
.cs-body > p {
  color: #efefef;
  font-size: 2.4rem;
  line-height: 1.6;
}
.cs-body > p + p {
  margin-top: 2.5rem;
}
.cs-body strong {
  color: #03c03c;
  font-weight: 700;
}
.cs-body code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85em;
  background-color: rgba(239, 239, 239, 0.08);
  border-radius: 0.3rem;
  padding: 0.2rem 0.6rem;
}

/* ------------------------------------------------------ decision cards --- */
.cs-decisions {
  list-style: none;
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}
.cs-decision {
  position: relative;
  padding: 3rem 3rem 3rem 4rem;
  background-color: rgba(239, 239, 239, 0.03);
  border-radius: 0.4rem;
  transition: background-color 0.3s;
}
.cs-decision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0.3rem;
  height: 100%;
  background-color: rgba(239, 239, 239, 0.15);
  transition: background-color 0.3s;
}
.cs-decision:hover {
  background-color: rgba(239, 239, 239, 0.06);
}
.cs-decision:hover::before {
  background-color: #03c03c;
}
.cs-decision h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 1.5rem;
}
.cs-decision h3 em {
  font-style: normal;
  color: #706b6b;
  font-weight: 400;
}
.cs-decision p {
  color: rgba(239, 239, 239, 0.75);
  font-size: 2rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------- outcome --- */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.cs-metric {
  padding: 3rem 2rem;
  border: 0.2rem solid rgba(239, 239, 239, 0.1);
  border-radius: 0.4rem;
  transition: border-color 0.3s;
}
.cs-metric:hover {
  border-color: #03c03c;
}
.cs-metric b {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: #03c03c;
}
.cs-metric span {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.8rem;
  color: rgba(239, 239, 239, 0.7);
  line-height: 1.5;
}
.cs-outcomes {
  list-style: none;
  display: grid;
  gap: 2rem;
}
.cs-outcomes li {
  position: relative;
  padding-left: 3.5rem;
  color: #efefef;
  font-size: 2.2rem;
  line-height: 1.6;
}
.cs-outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1.6rem;
  height: 0.2rem;
  background-color: #03c03c;
}
.cs-note {
  margin-top: 4rem;
  font-size: 1.7rem;
  color: #706b6b;
  font-style: italic;
}

/* ------------------------------------------------------------ page nav --- */
.cs-pager {
  width: 90%;
  margin: 0 auto;
  padding: 8rem 0 4rem 0;
  border-top: 0.2rem solid rgba(239, 239, 239, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}
.cs-pager a {
  text-decoration: none;
  display: block;
}
.cs-pager .cs-pager-next {
  text-align: right;
}
.cs-pager small {
  display: block;
  color: #706b6b;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cs-pager strong {
  font-family: 'Raleway', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: #efefef;
  transition: color 0.3s;
}
.cs-pager a:hover strong {
  color: #03c03c;
}

.cs-cta {
  width: 90%;
  margin: 0 auto;
  padding: 6rem 0 8rem 0;
  text-align: center;
}
.cs-cta h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 5rem;
  font-weight: 400;
  color: #efefef;
}
.cs-cta a {
  text-decoration: none;
  background-color: #efefef;
  color: #111414;
  font-size: 2rem;
  padding: 1.5rem 3rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 3rem;
  border-radius: 3rem;
  transition: all 0.3s;
}
.cs-cta a:hover {
  color: #efefef;
  background-color: #03c03c;
}

/* --------------------------------------------------------------- reveal --- */
/* Only hide when JS is running to reveal it again — no script, no blank page. */
.js-reveal .cs-reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .cs-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .cs-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------ index.html additions --- */
.project-link {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}
.project-link a:not(:last-child) {
  margin-right: 0;
}
.project-link a.is-ghost {
  background-color: transparent;
  color: #efefef;
  border: 0.2rem solid rgba(239, 239, 239, 0.25);
}
.project-link a.is-ghost:hover {
  background-color: transparent;
  border-color: #03c03c;
  color: #03c03c;
}

/* ------------------------------------------------------ media queries --- */
@media screen and (max-width: 1124px) {
  .cs-hero h1 {
    font-size: 9rem;
  }
  .cs-hero-sub {
    font-size: 3rem;
  }
}

@media screen and (max-width: 834px) {
  .cs-hero {
    margin-top: 4rem;
  }
  .cs-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 6rem 0;
  }
  .cs-section-label {
    position: static;
  }
  .cs-section-label span {
    display: inline-block;
    font-size: 5rem;
    margin-right: 2rem;
  }
  .cs-section-label h2 {
    display: inline-block;
    margin-top: 0;
  }
  .project-link {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 500px) {
  .cs-hero h1 {
    font-size: 6rem;
  }
  .cs-hero-sub {
    font-size: 2.4rem;
  }
  .cs-eyebrow {
    font-size: 1.6rem;
  }
  .cs-body > p,
  .cs-outcomes li {
    font-size: 2rem;
  }
  .cs-decision {
    padding: 2rem 2rem 2rem 3rem;
  }
  .cs-metric b {
    font-size: 4.5rem;
  }
  .cs-pager {
    grid-template-columns: 1fr;
  }
  .cs-pager .cs-pager-next {
    text-align: left;
  }
  .cs-cta h3 {
    font-size: 3.5rem;
  }
}
