/* ==========================================================================
   CLIENT CASE STUDIES  (cs-*)
   First-party campaign pages: our own work, our own platform data.
   Loaded only by cases/reliance-smart-bazaar-fpvs.html and
   cases/godrej-hit-anti-roach-gel.html, so css/styles.css keeps its version
   stamp and the other 211 pages are untouched.
   Tokens used here are the real ones from styles.css :root —
   --primary --primary-deep --orange --lime --pink --ink --white
   --off-white --grey-100 --grey-400 --grey-700 --font-display --font-mono
   --radius --pill --ease --max --gutter
   ========================================================================== */

/* --- the notice that flips the Lenskart-style disclaimer ----------------- */
.cp-notice--own { background: var(--primary); color: var(--white); }
.cp-notice--own strong { color: var(--lime); font-weight: 700; }

/* --- shared section shell ------------------------------------------------ */
.cs-sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}
.cs-sec + .cs-sec { padding-top: 0; }
.cs-sec__label { color: var(--pink); margin-bottom: 14px; }
.cs-sec__title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}
.cs-sec__note {
  color: var(--grey-700);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 28px;
}

/* --- at-a-glance brief --------------------------------------------------- */
.cs-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.cs-brief > div { background: var(--white); padding: 20px; }
.cs-brief dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 8px;
}
.cs-brief dd { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }

/* --- objectives list ----------------------------------------------------- */
.cs-aims { display: flex; flex-direction: column; gap: 14px; max-width: 80ch; }
.cs-aims li {
  position: relative;
  padding-left: 30px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink);
}
.cs-aims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--orange);
}

/* --- results: metric tiles ---------------------------------------------- */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.cs-metric {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--grey-100);
}
.cs-metric--hero { background: var(--primary); border-color: var(--primary); }
.cs-metric span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 10px;
}
.cs-metric--hero span { color: rgba(255, 255, 255, 0.6); }
.cs-metric strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 120%;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--primary);
}
.cs-metric--hero strong { color: var(--lime); }
.cs-metric em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--grey-700);
}
.cs-metric--hero em { color: rgba(255, 255, 255, 0.75); }

/* --- two-up: tiers and cities ------------------------------------------- */
.cs-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.cs-split h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

/* distribution rows with a proportional bar */
.cs-dist { display: flex; flex-direction: column; }
.cs-dist li {
  display: grid;
  grid-template-columns: 1fr 70px 42px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--grey-100);
  font-size: 0.88rem;
}
.cs-dist li:first-child { border-top: 0; }
.cs-dist i {
  display: block;
  height: 6px;
  width: var(--w);
  min-width: 3px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.8;
}
.cs-dist li:first-child i { background: var(--orange); opacity: 1; }
.cs-dist b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-align: right;
  color: var(--ink);
}

/* --- reel showcase ------------------------------------------------------- */
.cs-reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.cs-reel {
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.cs-reel--star { border-color: var(--orange); }

/* the video well: 9/16 reserved up front so nothing shifts on load */
.cs-reel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--primary-deep);
  overflow: hidden;

  /* Instagram's embed is not shaped like the reel inside it. Measured against
     /embed/captioned on 2026-11-28:
       - a 54px header (avatar, handle, "View profile") sits above the media;
       - the media box is 4:5, NOT 9:16 -- 980x1225 at full width;
       - within that box the <video> is object-fit: contain, so a 9:16 reel is
         letterboxed to 70.25% of the box width at the box's full height;
       - below the box sit the action bar, the like count, the handle a second
         time, and the caption.
     All of it is cross-origin and cannot be styled away. So the iframe is sized
     and offset until the letterboxed video region alone covers this 9:16 frame;
     the header goes above it, the caption below, and overflow:hidden takes both.

     Pulling the iframe up by the header height is necessary but NOT sufficient:
     at 100% width the 4:5 media box is shorter than this 9:16 frame, which
     leaves a strip of caption -- including the creator's handle -- showing under
     the video. The width below is what closes that strip.

     Width: the video must be as tall as the frame, so the 4:5 box must be too.
       iframe width = frameH / 1.25 = frameW * (16/9) / 1.25 = 142.222%
     The cross-check is that this also makes the video exactly frameW wide,
     since 142.222% * 0.7025 = 100%. The two constraints agree, which is why the
     reel lands edge to edge with none of its own content cropped.

     These two values are the only ones to retune if Instagram changes the embed. */
  --ig-chrome: 54px;      /* header height above the media */
  --ig-media-ratio: 1.25; /* media box height / width (4:5) */
}
.cs-reel__frame iframe {
  position: absolute;
  top: calc(var(--ig-chrome) * -1);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% * 16 / 9 / var(--ig-media-ratio));
  height: calc(100% + var(--ig-chrome));
  border: 0;
  display: block;
}

/* click-to-load facade: the reel's own first frame, with no Instagram request
   until the viewer presses it. The iframe then replaces this button inside the
   same .cs-reel__frame box, so the video plays exactly where the poster was. */
.cs-reel__load {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  background: var(--primary-deep);
  font-family: inherit;
  color: var(--white);
  text-align: left;
}
.cs-reel__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.cs-reel__load:hover .cs-reel__thumb { transform: scale(1.04); }
.cs-reel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0) 38%, rgba(10,10,10,0.72) 100%);
}
.cs-reel__load:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.cs-reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: var(--pill);
  background: var(--lime);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(10,10,10,0.35);
  transition: transform 0.3s var(--ease);
}
.cs-reel__load:hover .cs-reel__play { transform: translate(-50%, -50%) scale(1.08); }
.cs-reel__play svg { width: 21px; height: 21px; fill: var(--black); margin-left: 3px; }
.cs-reel__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 14px;
}
.cs-reel__cap b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--white);
  word-break: break-word;
  text-shadow: 0 1px 6px rgba(10,10,10,0.5);
}
.cs-reel__cap span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 6px rgba(10,10,10,0.5);
}
/* the one reel Instagram will not play in an embed (licensed audio) */
.cs-reel__load--out .cs-reel__play { background: var(--white); }
.cs-reel__load--out .cs-reel__play svg { fill: var(--primary); margin-left: 0; }
/* card foot: rank, handle, numbers */
.cs-reel__meta { padding: 16px 18px; border-top: 1px solid var(--grey-100); }
.cs-reel__rank {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 8px;
}
.cs-reel--star .cs-reel__rank { color: var(--orange); }
.cs-reel__handle {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
  word-break: break-word;
}
.cs-reel__city {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-700);
  margin-bottom: 12px;
}
.cs-reel__nums { display: flex; flex-wrap: wrap; gap: 16px; }
.cs-reel__nums div { min-width: 0; }
.cs-reel__nums span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 3px;
}
.cs-reel__nums b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--primary);
}
.cs-reel__out {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* --- how we counted ------------------------------------------------------ */
.cs-basis {
  border-left: 3px solid var(--orange);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px;
}
.cs-basis h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: 12px;
}
.cs-basis p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--grey-700);
  max-width: 80ch;
}
.cs-basis p + p { margin-top: 10px; }

/* --- narrow screens ------------------------------------------------------ */
@media (max-width: 600px) {
  .cs-dist li { grid-template-columns: 1fr 48px 38px; }
  .cs-reel__nums { gap: 12px; }
}

/* --- print --------------------------------------------------------------- */
@media print {
  .cs-reel__frame { display: none; }
  .cs-metric--hero { background: var(--white); border-color: var(--grey-400); }
  .cs-metric--hero strong, .cs-metric--hero span, .cs-metric--hero em { color: var(--ink); }
}


/* ==========================================================================
   TRADE FEATURE ARTICLE  (cs-art-*)
   ========================================================================== */
.cs-art { max-width: 760px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) 0; }
.cs-art__standfirst {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--grey-700);
  margin-bottom: 28px;
}
.cs-art__byline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--grey-400);
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--grey-100);
}
.cs-art h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 40px 0 14px;
}
.cs-art h2:first-of-type { margin-top: 0; }
.cs-art p {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 18px;
}
.cs-art p + h2 { margin-top: 44px; }
.cs-art strong { font-weight: 700; }
.cs-art a { color: var(--primary); text-decoration: underline; text-underline-offset: 0.25em; }

/* pull quote */
.cs-pull {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--orange);
}
.cs-pull p {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--ink);
  margin: 0;
}
.cs-pull cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  color: var(--grey-400);
}

/* request-a-demo call to action */
.cs-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}
.cs-cta__inner {
  background: var(--primary);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cs-cta__kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}
.cs-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--white);
  margin: 0;
  max-width: 20ch;
}
.cs-cta p { color: rgba(255,255,255,0.75); margin: 12px 0 0; max-width: 46ch; line-height: 1.6; }
@media (max-width: 760px) { .cs-cta__inner { flex-direction: column; align-items: flex-start; } }
