/* ============================================================
   Project: Cold Case — page-specific styles
   Builds on css/case-study.css. Classes are prefixed .pc-.
   Accents come from the client's brand kit (Midnight Blue,
   Aquamarine, Moss Green), kept secondary to the portfolio design.
   ============================================================ */

.pc-page {
  --pc-navy: #1b365d;
  --pc-aqua: #1ec7e2;
  --pc-moss: #3d513b;
  --cs-gradient: linear-gradient(90deg, #1ec7e2 0%, #1b365d 60%, #3d513b 100%);
  --cs-accent: #1ec7e2;
}

/* ------ Hero: the client logo as the title, over line art of the suspension bridge from the logo ------ */
.pc-hero { position: relative; overflow: hidden; }
.pc-hero > .mxd-container { position: relative; z-index: 1; }
.pc-logo-title { margin: 0; padding-bottom: 2.4rem; line-height: 0; }
.pc-logo-title img { display: block; width: 100%; max-width: 76rem; height: auto; }
@media only screen and (min-width: 1200px) { .pc-logo-title img { max-width: 88rem; } }
.pc-bridge-wrap {
  position: absolute;
  top: 1rem; right: -8rem;
  width: min(68vw, 110rem);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 55%, #000 88%, transparent 100%), linear-gradient(180deg, #000 45%, transparent 90%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 55%, #000 88%, transparent 100%), linear-gradient(180deg, #000 45%, transparent 90%);
          mask-composite: intersect;
}
.pc-bridge { display: block; width: 100%; height: auto; }
.pc-bridge path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pc-bridge__cable   { stroke: var(--pc-aqua); stroke-width: 1.6; opacity: 0.4; }
.pc-bridge__hangers { stroke: var(--pc-aqua); stroke-width: 1; opacity: 0.12; }
.pc-bridge__tower   { stroke: #fff; stroke-width: 1.2; opacity: 0.12; }
.pc-bridge__deck    { stroke: #fff; stroke-width: 1; opacity: 0.09; }
@media only screen and (max-width: 767px) {
  .pc-bridge-wrap { top: 7rem; right: -40%; width: 150vw; opacity: 0.6; }
}
.pc-hero-media .cs-media__frame {
  box-shadow: 0 40px 90px -50px rgba(30, 199, 226, 0.55), 0 30px 80px -50px rgba(27, 54, 93, 0.8);
}

/* ------ Outcome states: four cards, each with a coloured top rule ------ */
.pc-states {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 0; padding: 0;
  list-style: none;
}
@media only screen and (min-width: 768px)  { .pc-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; } }
@media only screen and (min-width: 1200px) { .pc-states { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc-state {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.4rem 2rem 2.6rem;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
}
.pc-state::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pc-aqua);
}
.pc-state:nth-child(2)::before { background: #2fa84f; }
.pc-state:nth-child(3)::before { background: var(--pc-navy); }
.pc-state:nth-child(4)::before { background: var(--pc-moss); }
.pc-state__tag {
  color: var(--t-medium);
  font: normal 600 1.2rem/1 var(--_font-accent);
  text-transform: uppercase;
}
.pc-state__title { margin: 0; color: var(--t-bright); font: normal 600 2rem/1.2 var(--_font-default); }
.pc-state__text  { margin: 0; color: var(--t-medium); font: normal 400 1.5rem/1.45 var(--_font-default); }

/* ------ Submission steps: numbered nodes on a line that fills as you scroll ------ */
.pc-steps {
  --pc-progress: 1;
  position: relative;
  display: grid;
  gap: 1.6rem;
  margin: 0; padding: 0;
  list-style: none;
}
.pc-steps::before,
.pc-steps::after {
  content: "";
  position: absolute;
  left: 2rem; top: 2rem; bottom: 2rem;
  width: 2px;
}
.pc-steps::before { background: var(--cs-line); }
.pc-steps::after {
  background: linear-gradient(180deg, var(--pc-aqua), #2fa84f);
  transform-origin: top center;
  transform: scaleY(var(--pc-progress));
}
.pc-step { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.8rem; }
.pc-step__num {
  flex: 0 0 4rem;
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--pc-navy);
  border: 2px solid var(--pc-aqua);
  color: #fff;
  font: normal 600 1.6rem/1 var(--_font-default);
}
.pc-step__name { color: var(--t-bright); font: normal 500 2rem/1.25 var(--_font-default); }
.pc-note { margin: 2.4rem 0 0; max-width: 46rem; font-size: 1.6rem; line-height: 1.5; }
@media only screen and (max-width: 1199px) { .pc-steps { margin-top: 3.2rem; } }

/* ------ Web app modules ------ */
.pc-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--cs-line);
}
@media only screen and (min-width: 768px)  { .pc-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media only screen and (min-width: 1200px) { .pc-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc-module { padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--cs-line); }
.pc-module h3 { margin: 0 0 0.6rem; color: var(--t-bright); font: normal 600 2rem/1.2 var(--_font-default); }
.pc-module p  { margin: 0; color: var(--t-medium); font: normal 400 1.5rem/1.45 var(--_font-default); max-width: 36rem; }

/* ------ Brand swatches (live HTML, not an image) ------ */
.pc-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 1.6rem;
  margin: 0; padding: 0;
  list-style: none;
}
@media only screen and (min-width: 768px)  { .pc-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media only screen and (min-width: 1200px) { .pc-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pc-swatch { display: flex; flex-direction: column; gap: 0.6rem; }
.pc-swatch__chip {
  display: block;
  aspect-ratio: 1;
  max-width: 12rem;
  border-radius: 50%;
  background: var(--pc-chip);
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35);
  margin-bottom: 0.8rem;
}
.pc-swatch__name { color: var(--t-bright); font: normal 600 1.6rem/1.2 var(--_font-default); }
.pc-swatch__meta { color: var(--t-medium); font: normal 500 1.2rem/1.4 var(--_font-accent); text-transform: uppercase; }

/* ------ Previous-project link ------ */
.pc-prev { display: flex; margin-bottom: 4rem; }
.pc-prev__link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.8rem;
  border-left: 2px solid transparent;
  border-image: var(--cs-gradient) 1;
}
.pc-prev__label { color: var(--t-medium); font: normal 600 1.2rem/1.4 var(--_font-accent); text-transform: uppercase; }
.pc-prev__name {
  color: var(--t-bright);
  font: normal 600 2.8rem/1.1 var(--_font-default);
  letter-spacing: -0.06rem;
  transition: color 0.3s ease;
}
.pc-prev__link:hover .pc-prev__name,
.pc-prev__link:focus-visible .pc-prev__name { color: var(--pc-aqua); }

/* ------ Reduced motion: static and fully shown ------ */
@media (prefers-reduced-motion: reduce) {
}
