/* ============================================================
   Case study — Now We Flow
   Light overrides layered on the LeadFlux dark system.
   ============================================================ */

:root {
  --nwf-warm-white:#FBF9F5; --nwf-bone:#F5F1EA; --nwf-mist:#E7E3DA;
  --nwf-sage:#B7C3AE; --nwf-sage-deep:#8D9C84; --nwf-moss:#5F6E58; --nwf-forest:#2A3A2F;
  --nwf-oat:#D9C7A9;
  --nwf-display:"Jost","Century Gothic","Futura",system-ui,sans-serif;
}

/* ---------- Case hero ---------- */
.case-hero {
  padding: clamp(150px, 22vh, 240px) 0 clamp(70px, 10vh, 110px);
  border-bottom: 1px solid var(--lf-hairline);
}
.case-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lf-dimmer);
  margin-bottom: 26px;
}
.case-title {
  font-family: var(--nwf-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 30px;
  background: linear-gradient(100deg, #F8F5FA 0%, #B7C3AE 58%, #D9C7A9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-standfirst {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  color: var(--lf-dim);
  max-width: 62ch;
  line-height: 1.66;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 68px);
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--lf-hairline);
}
.case-meta div { display: flex; flex-direction: column; gap: 7px; }
.case-meta span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lf-dimmer);
}
.case-meta b { font-size: 0.98rem; font-weight: 500; color: var(--lf-cloud); }

.case-narrow { max-width: 820px; }

/* ---------- Scrub section, light ---------- */
#nwf-scrub { height: 440vh; }
.vignette.light {
  background:
    radial-gradient(ellipse 92% 74% at 50% 46%, transparent 30%, rgba(251,249,245,0.30) 80%, rgba(9,6,17,0.55) 100%),
    linear-gradient(to bottom, rgba(9,6,17,0.55) 0%, transparent 20%, transparent 70%, rgba(9,6,17,0.82) 100%);
}
.nwf-line {
  font-family: var(--nwf-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 4.2vw, 3.4rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  line-height: 1.42;
  color: var(--nwf-forest);
  max-width: 22ch;
  text-shadow: 0 2px 40px rgba(251,249,245,0.85);
}

/* ---------- Light panels ---------- */
.nwf-panel { background: var(--lf-ink-violet); }

/* ---------- Mark row ---------- */
.mark-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 54px;
}
.mark-cell {
  border-radius: 18px;
  padding: 54px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--lf-hairline);
}
.mark-cell img { width: 116px; height: auto; }
.mark-cell span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.mark-cell.bone   { background: var(--nwf-bone); }
.mark-cell.bone span   { color: var(--nwf-moss); }
.mark-cell.forest { background: var(--nwf-forest); }
.mark-cell.forest span { color: var(--nwf-sage); }
.mark-cell.sage   { background: var(--nwf-sage); }
.mark-cell.sage span   { color: var(--nwf-forest); }

/* ---------- Palette ---------- */
.pal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  margin-top: 52px;
}
.pal-chip {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lf-hairline);
  background: var(--lf-panel);
}
.pal-chip::before {
  content: "";
  display: block;
  height: 96px;
  background: var(--c);
}
.pal-chip b {
  display: block;
  padding: 14px 15px 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pal-chip i {
  display: block;
  padding: 4px 15px 15px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
  font-style: normal;
  color: var(--lf-dimmer);
}

/* ---------- Shots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 54px;
}
.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--nwf-bone);
  border: 1px solid var(--lf-hairline);
}
.shot.wide { grid-column: 1 / -1; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.shot:hover img { transform: scale(1.025); }
.shot figcaption {
  padding: 13px 17px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nwf-moss);
  background: var(--nwf-warm-white);
  font-family: var(--nwf-display);
}

/* ---------- Type specimen ---------- */
.type-spec {
  margin-top: 50px;
  padding: clamp(46px, 8vw, 86px) clamp(24px, 5vw, 56px);
  border-radius: 20px;
  background: var(--nwf-warm-white);
  text-align: center;
}
.ts-display {
  font-family: var(--nwf-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 3.4vw, 2.4rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--nwf-forest);
}
.ts-label {
  margin-top: 24px;
  font-family: var(--nwf-display);
  font-weight: 400;
  font-size: clamp(0.62rem, 1.1vw, 0.8rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--nwf-moss);
}

@media (max-width: 640px) {
  .mark-cell { padding: 40px 20px 20px; }
  .case-meta { gap: 24px; }
}

/* ---------- Film ---------- */
.film {
  margin: 54px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--lf-hairline);
  background: #000;
}
.film video { display: block; width: 100%; height: auto; }
.film figcaption {
  padding: 14px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--lf-dimmer);
  background: var(--lf-panel);
}

/* ---------- Motion loops ---------- */
.loops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 54px;
}
.loop {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lf-hairline);
  background: #000;
}
.loop video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.loop figcaption {
  padding: 11px 15px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lf-dimmer);
  background: var(--lf-panel);
  font-family: var(--nwf-display);
}

/* ---------- Channel identity ---------- */
.identity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 54px;
}
.idt {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lf-hairline);
  background: var(--nwf-bone);
}
.idt.wide { grid-column: 1 / -1; }
.idt img { display: block; width: 100%; height: auto; }
.idt figcaption {
  padding: 11px 15px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nwf-moss);
  background: var(--nwf-warm-white);
  font-family: var(--nwf-display);
}

@media (prefers-reduced-motion: reduce) {
  .loop video { display: none; }
  .loop { background-size: cover; background-position: center; min-height: 170px; }
}
