/* ========================================================================
   CASE STUDY — monDUERP.fr
   Reuses tokens, nav, eyebrow, .h2, .btn, .stars from styles.css
   ===================================================================== */

/* ---------- Back link (breadcrumb) ---------- */
.cs-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  opacity: .82;
  transition: opacity .2s ease, transform .25s ease;
}
.cs-back:hover{ opacity: 1; transform: translateX(-3px); }
.cs-back svg{ transition: transform .25s ease; }
.cs-back:hover svg{ transform: translateX(-3px); }

/* ---------- HERO ---------- */
.cs-hero{
  position: relative;
  min-height: 88vh;
  padding: 116px var(--pad) 72px;
  background:
    radial-gradient(1100px 560px at 78% -8%, rgba(80,138,168,.42), transparent 60%),
    radial-gradient(760px 480px at 6% 104%, rgba(157,209,241,.18), transparent 60%),
    linear-gradient(180deg, #031927 0%, #062538 64%, #0a3a55 100%);
  color: var(--mist);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cs-hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.cs-hero-head{ max-width: min(1000px, 100%); }
.cs-eyebrow-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}
.cs-kicker{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
}
.cs-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  background: rgba(157,209,241,.12);
  border: 1px solid rgba(157,209,241,.3);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.cs-status .pill-dot{ width: 7px; height: 7px; }

.cs-title{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 124px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
  color: #fff;
}
.cs-title em{ font-style: italic; color: var(--sky); }
.cs-tagline{
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  color: var(--mist);
  margin: 18px 0 0;
  max-width: 100%;
}

.cs-lead{
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--mist);
  opacity: .9;
  max-width: 100%;
  margin: 28px 0 0;
}

/* meta strip */
.cs-meta{
  list-style: none;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(157,209,241,.2);
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px clamp(28px, 5vw, 64px);
  justify-content: start;
}
.cs-meta li{ display: flex; flex-direction: column; gap: 6px; }
.cs-meta dt,
.cs-meta .cs-meta-k{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  opacity: .8;
}
.cs-meta .cs-meta-v{
  font-size: 15px;
  color: #fff;
  line-height: 1.3;
}
.cs-hero-ctas{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* hero screen */
.cs-hero-screen{
  margin-top: clamp(40px, 6vw, 72px);
}
/* mobile-app hero: centre the phone mockup */
.cs-hero--mobile .cs-hero-screen{
  display: flex;
  justify-content: center;
}
.cs-hero--mobile .cs-screen.cs-phone{
  margin: 0 auto;
  max-width: 300px;
}

/* ---------- SCREEN FRAME (browser chrome) ---------- */
.cs-frame{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0c2233;
  border: 1px solid rgba(157,209,241,.22);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.cs-frame--light{
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(3,25,39,.32);
}
.cs-frame-bar{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: rgba(3,25,39,.55);
  border-bottom: 1px solid rgba(157,209,241,.14);
}
.cs-frame--light .cs-frame-bar{
  background: var(--paper-2);
  border-bottom-color: var(--line-soft);
}
.cs-dots{ display: inline-flex; gap: 7px; }
.cs-dots i{ width: 11px; height: 11px; border-radius: 50%; background: rgba(157,209,241,.4); display: block; }
.cs-frame--light .cs-dots i{ background: var(--line); }
.cs-dots i:nth-child(1){ background: #e2725b; }
.cs-dots i:nth-child(2){ background: #e8b04b; }
.cs-dots i:nth-child(3){ background: #5aa86f; }
.cs-frame-url{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--mist);
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-frame--light .cs-frame-url{ color: var(--ink-2); }
.cs-frame image-slot{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.6;
}
.cs-frame--tall image-slot{ aspect-ratio: 4 / 5; }

/* real screenshots dropped into the frames */
.cs-shot{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.cs-frame--tall .cs-shot{ aspect-ratio: 4 / 5; }

/* ---------- PHONE FRAME (mobile mockups) ---------- */
.cs-phone{
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #0c2233, #08304a);
  border: 1px solid rgba(157,209,241,.22);
  box-shadow: 0 50px 90px -42px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.cs-phone::before{ /* speaker / notch pill */
  content: "";
  position: absolute;
  top: 21px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 5px;
  border-radius: 999px;
  background: rgba(157,209,241,.28);
  z-index: 3;
}
.cs-phone-screen{
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 9 / 19;
}
.cs-phone-shot{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
/* real screenshot: show the full screen at natural height, and drop the
   decorative notch (the screenshots already include their own status bar) */
.cs-phone--photo::before{ display: none; }
.cs-phone--photo .cs-phone-screen{ aspect-ratio: auto; }
.cs-phone--photo .cs-phone-shot{ height: auto; object-fit: fill; }

/* placeholder area inside a browser frame (.cs-frame), same ratio as .cs-shot */
.cs-shot-ph{ position: relative; aspect-ratio: 16 / 9.6; }
.cs-frame--tall .cs-shot-ph{ aspect-ratio: 4 / 5; }

/* placeholder shown while real screenshots are pending */
.cs-ph{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--teal);
  background:
    repeating-linear-gradient(-45deg, rgba(80,138,168,.06) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #fff, var(--paper-2));
}
.cs-ph i, .cs-ph svg{ width: 38px; height: 38px; stroke: var(--teal); stroke-width: 1.5; opacity: .85; }
.cs-ph-label{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .75;
  max-width: 18ch;
  line-height: 1.5;
}

/* "my role" highlight in the team tag list */
.cs-tag-me{
  border-color: var(--teal) !important;
  background: color-mix(in oklab, var(--teal) 8%, #fff) !important;
}
.cs-tag-me span{ color: var(--teal); font-weight: 600; }

/* ---------- CONTENT SECTIONS ---------- */
.cs-section{ background: var(--paper); }
.cs-section--alt{
  background: var(--paper-2);
  background-image: radial-gradient(760px 400px at 92% 8%, rgba(157,209,241,.22), transparent 70%);
}
.cs-section--warm{ background: var(--paper-warm); }

.cs-wrap{ max-width: var(--max); margin: 0 auto; }

/* ---------- BEFORE / AFTER ---------- */
.cs-ba{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 52px);
}
.cs-ba-item{ margin: 0; }
.cs-ba-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cs-ba-badge::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-ba-badge--before{ color: #b4472f; background: rgba(226,114,91,.14); border: 1px solid rgba(226,114,91,.35); }
.cs-ba-badge--after{ color: var(--teal); background: rgba(80,138,168,.12); border: 1px solid rgba(80,138,168,.35); }
@media (max-width: 760px){
  .cs-ba{ grid-template-columns: 1fr; }
}

/* wide standalone screenshot figure */
.cs-figure-wide{ margin: clamp(30px, 4vw, 48px) auto 0; }
/* centred, width-capped figure for a single tall/detailed screenshot */
.cs-figure-center{ max-width: 880px; margin-left: auto; margin-right: auto; }
/* full screenshot shown at natural aspect (nothing cropped) — tall detailed screens */
.cs-shot-full{ display: block; width: 100%; height: auto; background: #fff; }
/* device mockups shown without browser chrome (e.g. phone screens) */
.cs-devices{ margin: clamp(28px, 4vw, 48px) auto 0; }
.cs-devices img{ display: block; width: 100%; height: auto; max-width: 940px; margin: 0 auto; }
.cs-devices figcaption{
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-2);
}

/* two-column split: prose + aside */
.cs-split{
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cs-prose p{
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0 0 20px;
  max-width: 64ch;
}
.cs-prose p:last-child{ margin-bottom: 0; }
.cs-prose-lead{
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 32px) !important;
  line-height: 1.32 !important;
  color: var(--ink) !important;
  margin-bottom: 26px !important;
}
.cs-prose strong{ color: var(--ink); font-weight: 600; }

/* facts aside */
.cs-facts{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 28px;
  box-shadow: 0 18px 40px -28px rgba(3,25,39,.22);
  position: relative;
}
.cs-facts::before{
  content: "★";
  position: absolute;
  top: 18px; right: 20px;
  color: var(--sky);
  font-size: 16px;
}
.cs-facts h3{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  font-weight: 500;
}
.cs-facts dl{ margin: 0; display: grid; gap: 16px; }
.cs-facts .cs-fact{
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.cs-facts .cs-fact:last-child{ border-bottom: 0; padding-bottom: 0; }
.cs-facts dt{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: .85;
}
.cs-facts dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.cs-facts dd a{ color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(80,138,168,.4); }
.cs-facts dd a:hover{ border-bottom-color: var(--teal); }
.cs-facts .cs-fact-num{ font-family: var(--serif); font-size: 30px; color: var(--teal); line-height: 1; }

/* pull quote */
.cs-quote{
  max-width: 920px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 0 0 clamp(20px, 4vw, 48px);
  border-left: 2px solid var(--teal);
  position: relative;
}
.cs-quote p{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.22;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.cs-quote .cs-quote-star{
  color: var(--teal);
  font-style: normal;
}

/* research methods */
.cs-methods{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(34px, 5vw, 52px);
}
.cs-method{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 30px 32px;
  box-shadow: 0 18px 40px -30px rgba(3,25,39,.2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cs-method:hover{ transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(3,25,39,.3); }
.cs-method-node{
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1.5px solid var(--teal);
  margin-bottom: 18px;
}
.cs-method-node svg, .cs-method-node i{ width: 26px; height: 26px; stroke: var(--ink); stroke-width: 1.6; }
.cs-method h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--ink);
}
.cs-method p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- DECISIONS ---------- */
.cs-decisions{
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 104px);
  margin-top: clamp(40px, 5vw, 60px);
}
.cs-decision{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cs-decision:nth-child(even) .cs-decision-text{ order: 2; }
/* text-only decision (no screen figure) spans the full width */
.cs-decision--textonly{ grid-template-columns: 1fr; }
.cs-decision-num{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cs-decision-num::before{
  content: "";
  width: 30px;
  height: 1px;
  background: var(--teal);
  opacity: .6;
}
.cs-decision-text h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.cs-decision-text p{
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}

/* ---------- ACCESSIBILITY ---------- */
.cs-a11y-grid{
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cs-tags{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-tags li{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  transition: transform .25s ease, border-color .25s ease;
}
.cs-tags li:hover{ transform: translateX(4px); border-color: var(--teal); }
.cs-tags i, .cs-tags svg{ width: 20px; height: 20px; stroke: var(--teal); stroke-width: 1.7; flex-shrink: 0; }

/* ---------- USER ROLES ---------- */
.cs-roles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
  margin-top: clamp(40px, 5vw, 56px);
}
/* two-role variant — centred, narrower than the 3-up grid */
.cs-roles--two{
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.cs-role{
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px 32px;
  box-shadow: 0 18px 40px -30px rgba(3,25,39,.22);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.cs-role::after{
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--role-accent, var(--teal));
}
.cs-role:hover{ transform: translateY(-6px); box-shadow: 0 30px 56px -28px rgba(3,25,39,.32); }
.cs-role-node{
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--role-accent, var(--teal)) 14%, #fff);
  border: 1px solid color-mix(in oklab, var(--role-accent, var(--teal)) 30%, #fff);
  margin-bottom: 20px;
}
.cs-role-node svg, .cs-role-node i{ width: 30px; height: 30px; stroke: var(--role-accent, var(--teal)); stroke-width: 1.6; }
.cs-role h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--ink);
}
.cs-role-kicker{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 14px;
}
.cs-role p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* screen caption */
.cs-screen{ margin: 0; }
.cs-screen figcaption{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-2);
}
.cs-screen figcaption .cs-cap-num{ color: var(--teal); }

/* ---------- FOOTER NAV ---------- */
.cs-foot{
  position: relative;
  padding: clamp(72px, 10vw, 120px) var(--pad);
  background:
    radial-gradient(700px 460px at 100% 100%, rgba(80,138,168,.4), transparent 70%),
    linear-gradient(180deg, #0a3a55 0%, #031927 60%);
  color: var(--mist);
  overflow: hidden;
}
.cs-foot-inner{
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.cs-foot .eyebrow{ color: var(--sky); }
.cs-foot h2{ color: #fff; }
.cs-foot h2 em{ color: var(--sky); }
.cs-foot-ctas{ display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- reveal-on-scroll ---------- */
.cs-animate{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.cs-animate.is-in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .cs-animate{ opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px){
  .cs-split,
  .cs-a11y-grid{ grid-template-columns: 1fr; }
  .cs-decision{ grid-template-columns: 1fr; }
  .cs-decision:nth-child(even) .cs-decision-text{ order: 0; }
  .cs-decision-screen{ order: 2; }
  .cs-methods,
  .cs-roles{ grid-template-columns: 1fr; }
  .cs-meta{ grid-template-columns: repeat(2, auto); }
}
@media (max-width: 540px){
  .cs-meta{ grid-template-columns: 1fr; }
}
