/* ============================================================================
   Wonderland Art Healing — case study theme. Forest-green botanical, calm,
   handcrafted. Scoped to .wcase. Mirrors the JOOOVE editorial rhythm.
   ============================================================================ */
.wcase {
  --w-forest: #30592D;     /* primary deep green */
  --w-sage: #ABC79E;       /* sage */
  --w-green: #6E9E5A;      /* medium green */
  --w-olive: #9CA86B;
  --w-navy: #23283F;       /* deep navy (dark sections) */
  --w-tan: #C2A887;
  --w-cream: #F4EFE3;      /* warm cream */
  --w-paper: #f6f4ec;
  --w-ink: #25331f;
  --w-text: #4f5b46;
  --w-line: rgba(48,89,45,.14);
  position: relative; overflow: hidden; background: #fff;
  font-family: var(--font-sans); color: var(--w-text);
}
.wcase .wrap { position: relative; z-index: 1; }

/* ---- shared type ---- */
.wcase .weyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--w-green); margin: 0; }
.wcase .weyebrow--on { color: var(--w-sage); }
.wcase .wh2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,1.1rem + 1.6vw,2.3rem);
  line-height: 1.26; letter-spacing: -0.015em; color: var(--w-ink); margin: 0; text-wrap: balance; }
.wcase .wh2--on { color: #fff; }
.wcase .wcase__p { font-size: clamp(15px,1vw,16.5px); line-height: 1.95; color: var(--w-text); margin: 0 0 18px; }
.wcase .wcase__p:last-child { margin-bottom: 0; }
.wcase__lead { font-size: clamp(15px,1vw,17px); line-height: 1.8; color: var(--w-text); margin: 0; }
.wsec--navy .wcase__p, .wsec--navy .wcase__lead { color: rgba(255,255,255,.82); }

/* sections + spacing utilities (match JOOOVE) */
.wsec { padding-block: 4rem; }
.wcase .pb-gap { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.wcase .mt-gap { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.wsec--tint { background: var(--w-paper); }
.wsec--sage { background: linear-gradient(168deg, #e7efe0 0%, var(--w-cream) 100%); }
.wsec--navy { background: var(--w-navy); }
.wcenter { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem,1.5rem + 2vw,3.2rem); }

/* ---- Hero ---- */
.whero { position: relative; background: linear-gradient(170deg, var(--w-cream) 0%, #fff 72%); overflow: hidden;
  padding-block: clamp(1.5rem,1rem + 2vw,2.5rem) clamp(3rem,2rem + 4vw,5rem); }
.wback { appearance: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--w-text); margin-bottom: calc(32px + 1.6rem); transition: color var(--dur-fast); }
.wback:hover { color: var(--w-forest); }
.wback [data-lucide] { width: 16px; height: 16px; }
.whero__inner { max-width: 860px; }
.whero__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.wchip { display: inline-flex; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px; color: #fff; background: var(--w-forest); }
.whero__year { font-family: var(--font-mono); font-size: 13px; color: var(--w-text); letter-spacing: .04em; }
.whero__logo { height: clamp(72px, 9vw, 116px); width: auto; margin-bottom: 10px; }
.whero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.2; letter-spacing: -0.02em; color: var(--w-ink); margin: 16px 0 0; text-wrap: balance; }
.whero__sub { font-size: clamp(15px,1vw,17px); line-height: 1.7; color: var(--w-text); margin: 22px 0 0; max-width: 680px; }
.whero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.wtag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--w-green);
  background: rgba(110,158,90,.12); border-radius: 999px; padding: 6px 12px; }
.whero__media { margin-top: clamp(2rem,1.5rem + 3vw,3.5rem); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 36px 72px -32px rgba(35,40,63,.4); border: 1px solid var(--w-line); }
.whero__media img { width: 100%; height: auto; display: block; }

/* ---- generic figure ---- */
.wshot { margin: clamp(2rem,1.5rem + 2vw,3rem) 0 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 0 22px 50px -30px rgba(35,40,63,.4); border: 1px solid var(--w-line); }
.wshot img { width: 100%; height: auto; display: block; }
.wshot__cap { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--w-green);
  padding: 13px 18px; background: var(--w-paper); border-top: 1px solid var(--w-line); }

/* ---- Logo directions ---- */
.wlogos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.wlogo { background: #fff; border: 1px solid var(--w-line); border-radius: var(--radius-lg); padding: 0; overflow: hidden; }
.wlogo__img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--w-paper); border-bottom: 1px solid var(--w-line); }
.wlogo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wlogo__tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: var(--w-green); padding: 4px 11px; border-radius: 999px; margin: 26px 28px 14px; }
.wlogo__t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--w-ink); margin: 0 28px 10px; }
.wlogo__d { font-size: 14px; line-height: 1.7; color: var(--w-text); margin: 0 28px 28px; }
.wlogo__fig { margin-top: clamp(2rem,1.5rem + 2vw,3rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--w-line); }
.wlogo__fig img { width: 100%; height: auto; display: block; }

/* ---- Colour system ---- */
.wcolors { margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.wcolorrow { display: flex; flex-wrap: wrap; gap: 16px; }
.wswatch { flex: 1 1 150px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--w-line); background: #fff; box-shadow: var(--shadow-sm); }
.wswatch__chip { height: 96px; }
.wswatch--sm .wswatch__chip { height: 64px; }
.wswatch__meta { padding: 11px 14px; }
.wswatch__meta b { display: block; font-size: 13px; font-weight: 700; color: var(--w-ink); }
.wswatch__meta span { font-family: var(--font-mono); font-size: 11px; color: var(--w-text); }
.wcolorrow--sec { margin-top: 16px; }
.wtypo { margin-top: 26px; font-size: 14.5px; line-height: 1.7; color: var(--w-text);
  padding: 18px 22px; background: var(--w-paper); border-radius: var(--radius-md); border-left: 3px solid var(--w-green); }

/* ---- Challenge cards ---- */
.wchallenge { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2vw,26px); margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.wchalcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 28px 26px; }
.wchalcard__ic { width: 50px; height: 50px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: rgba(171,199,158,.2); color: var(--w-sage); margin-bottom: 16px; }
.wchalcard__ic [data-lucide] { width: 24px; height: 24px; }
.wchalcard b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 8px; }
.wchalcard p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.74); margin: 0; }

/* ---- two-column text+image ---- */
.wsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.wsplit--rev .wsplit__media { order: -1; }
.wsplit__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 22px 50px -30px rgba(35,40,63,.4); border: 1px solid var(--w-line); }
.wsplit__media img { width: 100%; height: auto; display: block; }

/* ---- SEM stat band ---- */
.wstatrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.wstat { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px 16px; }
.wstat__num { display: block; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.9rem,1.4rem + 1.8vw,2.7rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--w-sage); }
.wstat__num .u { color: var(--w-olive); font-size: .55em; }
.wstat__label { display: block; font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 10px; }

/* ---- side-by-side figures ---- */
.wgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: clamp(2rem,1.5rem + 2vw,3rem); align-items: stretch; }
.wgrid2 .wshot { margin: 0; }
.wstack-col { display: flex; flex-direction: column; gap: clamp(18px,2vw,28px); }
/* right cell fills the stacked left column height; image bottom aligns with left column bottom */
.wshot--fill { display: flex; flex-direction: column; }
.wshot--fill img { flex: 1; min-height: 0; object-fit: cover; object-position: top; }
@media (max-width: 880px) { .wgrid2 { grid-template-columns: 1fr; } .wshot--fill img { flex: none; object-fit: contain; } }

/* ---- Results table ---- */
.wtable { margin-top: clamp(2rem,1.5rem + 2vw,3rem); border: 1px solid var(--w-line); border-radius: var(--radius-lg); overflow: hidden; }
.wtable__row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--w-line); }
.wtable__row:last-child { border-bottom: 0; }
.wtable__row:nth-child(even) { background: var(--w-paper); }
.wtable__row--hl { background: rgba(110,158,90,.12) !important; }
.wtable__metric { font-size: 14.5px; color: var(--w-text); font-weight: 500; }
.wtable__value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.1rem,0.9rem + 0.8vw,1.5rem); color: var(--w-forest); text-align: right; }
.wtable__note { font-size: 12.5px; color: var(--w-text); text-align: right; font-family: var(--font-mono); }
.wcities { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--w-text); text-align: center; }
.wcities b { color: var(--w-forest); }

/* ---- Quote ---- */
.wquote { max-width: 880px; margin: 0 auto; text-align: center; }
.wquote__mark { font-family: var(--font-display); font-size: 72px; line-height: .6; color: var(--w-sage); opacity: .5; }
.wquote__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem,1.1rem + 1.6vw,2.2rem);
  line-height: 1.4; letter-spacing: -0.01em; color: #fff; margin: 6px 0 22px; text-wrap: balance; }
.wquote__body { font-size: clamp(14px,1vw,15.5px); line-height: 1.8; color: rgba(255,255,255,.74); margin: 0 auto; max-width: 640px; }

/* ---- Deliverables ---- */
.wdeliver { list-style: none; margin: clamp(1.5rem,1rem + 2vw,2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.wdeliver li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--w-text); }
.wdeliver li [data-lucide] { width: 18px; height: 18px; flex: none; color: var(--w-green); margin-top: 1px; }

/* ---- CTA ---- */
.wcta { position: relative; background: linear-gradient(160deg, var(--w-forest) 0%, var(--w-navy) 100%);
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; overflow: hidden; }
.wcta__inner { position: relative; z-index: 1; }
.wcta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,1.2rem + 2vw,2.6rem); color: #fff; margin: 0 0 26px; text-wrap: balance; }
.wcta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wbtn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-weight: 600; font-size: 16px; height: 56px; padding: 0 30px; border-radius: 999px; border: 0; transition: all var(--dur-base) var(--ease-out); }
.wbtn--solid { color: var(--w-forest); background: #fff; box-shadow: 0 16px 32px -14px rgba(0,0,0,.4); }
.wbtn--solid:hover { transform: translateY(-2px); }
.wbtn--ghost { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); }
.wbtn--ghost:hover { background: rgba(255,255,255,.18); }
.wbtn [data-lucide] { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .wlogos { grid-template-columns: 1fr; }
  .wchallenge { grid-template-columns: 1fr; }
  .wsplit { grid-template-columns: 1fr; gap: 28px; }
  .wsplit--rev .wsplit__media { order: 0; }
  .wstatrow { grid-template-columns: 1fr 1fr; }
  .wdeliver { grid-template-columns: 1fr; }
  .wtable__row { grid-template-columns: 1.4fr 1fr; }
  .wtable__note { display: none; }
}
@media (max-width: 520px) { .wstatrow { grid-template-columns: 1fr; } }
