/* ════════════════════════════════════════════════════════════════
   MAWJ · case-v2.css — case study template (loads after site.css)
   ════════════════════════════════════════════════════════════════ */
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
.cs-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 95; height: 2px; pointer-events: none; }
.cs-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* hero */
.cs-hero { padding-top: calc(var(--hdr) + clamp(40px, 8vh, 90px)); }
.cs-hero__title { font-family: var(--fd); font-size: clamp(3.2rem, 11vw, 11rem); font-weight: 600; letter-spacing: -.035em; line-height: .94; }
.cs-hero__tag { margin-top: 22px; max-width: 30ch; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: -.025em; line-height: 1.2; color: var(--muted); }
.cs-meta { display: grid; gap: 18px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.cs-meta dd { margin: 6px 0 0; font-size: 15px; }
@media (min-width: 800px) { .cs-meta { grid-template-columns: repeat(3, 1fr); } }
.cs-cover { margin: clamp(40px, 7vh, 80px) 0 0; padding-inline: var(--gutter); }
.cs-cover__in { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--deep); cursor: zoom-in; }
.cs-cover__in img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
@media (max-width: 700px) { .cs-cover__in { aspect-ratio: 4 / 3; } }

/* brief */
.cs-brief__grid { display: grid; gap: 40px; align-items: start; }
.cs-big { font-family: var(--fd); font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; color: rgba(244,241,234,.55); }
.cs-big--hi { color: var(--ink); }
.cs-big .wd { display: inline-block; }
.cs-brief__arrow { display: none; }
.cs-brief__arrow svg { width: 100%; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1000px) { .cs-brief__grid { grid-template-columns: 1fr 110px 1fr; } .cs-brief__arrow { display: block; margin-top: 80px; } }

/* strategy */
.cs-strat__grid { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 800px) { .cs-strat__grid { grid-template-columns: 1fr 1fr; } }
.cs-tile { padding: 30px; display: grid; gap: 14px; }
.cs-tile p:last-child { font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -.02em; line-height: 1.35; }
.cs-traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cs-traits span { padding: 12px 22px; border-radius: 99px; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px var(--rule); color: var(--sub); transition: color .5s, background .5s, box-shadow .5s; }
.cs-traits span.is-lit { color: #002B48; background: var(--accent); box-shadow: none; }

/* story split */
.cs-split { display: grid; gap: 30px; align-items: center; margin-bottom: clamp(60px, 9vw, 120px); }
.cs-split:last-child { margin-bottom: 0; }
.cs-split__txt .lead { margin-top: 20px; }
@media (min-width: 900px) { .cs-split { grid-template-columns: 1.1fr 1fr; gap: 64px; } .cs-split--rev .cs-media { order: 2; } }

/* media frame */
.cs-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--deep); cursor: zoom-in; }
.cs-media img { display: block; width: 100%; height: auto; object-fit: contain; transition: scale 1s var(--ease-out); }
@media (hover: hover) { .cs-media:hover img { scale: 1.035; } }
.cs-media figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(2,11,19,.6); backdrop-filter: blur(8px); color: var(--mist); }

/* identity: swatches */
.swatches { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; height: auto; }
.sw { position: relative; display: flex; justify-content: space-between; align-items: flex-end; min-height: 74px; padding: 14px 18px; border-radius: 16px; background: var(--c); text-align: left; transition: flex-grow .7s var(--ease-out), min-height .6s var(--ease-out), scale .4s var(--spring); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.sw__n { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sw__h { font: 500 12px var(--mono); letter-spacing: .06em; }
.sw span { color: #fff; mix-blend-mode: difference; }
.swatches__hint { margin-top: 12px; }
@media (min-width: 800px) {
  .swatches { flex-direction: row; height: clamp(280px, 36vw, 440px); }
  .sw { flex: 1 1 0; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 20px; }
  .sw__n { writing-mode: vertical-rl; rotate: 180deg; transition: writing-mode 0s; }
  .swatches:hover .sw { flex-grow: .7; }
  .swatches .sw:hover, .swatches .sw:focus-visible { flex-grow: 3.2; }
  .sw:hover .sw__n, .sw:focus-visible .sw__n { writing-mode: horizontal-tb; rotate: 0deg; font-size: 22px; }
}
.sw:active { scale: .98; }
.specimens { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 800px) { .specimens { grid-template-columns: repeat(2, 1fr); } }
.spec { padding: 30px; display: grid; gap: 6px; }
.spec__aa { font-family: var(--fd); font-size: clamp(4rem, 9vw, 8rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--mist); }
.spec__n { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* in the wild */
.cs-wild { padding-top: var(--section-y); background: var(--sand); color: #0B1620; position: relative; isolation: isolate; }
.cs-wild::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(11,22,32,.12) 1px, transparent 1.2px); background-size: 26px 26px; }
.cs-wild .hud { color: rgba(11,22,32,.55); }
.cs-wild .label { color: #0B1620; }
.cs-wild b { color: #0B1620; }
.cs-wild__head { display: grid; gap: 14px; }
@media (min-width: 900px) { .cs-wild__head { grid-template-columns: 1fr auto; align-items: end; } }
.paper--case { margin-top: 30px; height: clamp(320px, 66vh, 700px); }
.cs-wild__ctrl { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.cs-wild .iconbtn { background: #fff; color: #0B1620; box-shadow: 0 6px 20px -8px rgba(0,0,0,.25); }
.cs-wild .btn--ghost { --fg: #0B1620; --hover: #0B1620; --hfg: #fff; box-shadow: inset 0 0 0 1px rgba(11,22,32,.25); }
.cs-grid { display: grid; gap: 14px; padding-block: clamp(50px, 8vw, 110px) var(--section-y); }
@media (min-width: 900px) {
  .cs-grid { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .cs-grid__i--0 { grid-column: 1 / -1; }
  .cs-grid__i--1 { grid-column: 1 / 8; }
  .cs-grid__i--2 { grid-column: 8 / -1; }
  .cs-grid__i--3 { grid-column: 1 / 6; }
  .cs-grid__i--4 { grid-column: 6 / -1; }
  .cs-grid { align-items: start; }
  /* every image shows whole, at its own ratio: nothing is cropped */
  .cs-grid__i img { width: 100%; height: auto; object-fit: contain; }
}
.cs-grid .cs-media { box-shadow: 0 30px 70px -40px rgba(11,22,32,.5); }

/* engine pillars */
.pillars { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 14px 14px 26px; display: flex; flex-direction: column; gap: 10px; }
.pillar__media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pillar__media { align-items: start; }
.pillar__media .cs-media { border-radius: 12px; }
.pillar .hud, .pillar h3, .pillar > p:last-child { padding-inline: 10px; }
.pillar .hud { color: var(--accent); }
.pillar h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.pillar > p:last-child { color: var(--muted); font-size: 14.5px; }

/* motion + mood */
.cs-motion__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-motion__chips span { padding: 10px 18px; border-radius: 99px; background: rgba(181,207,224,.07); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 500; }
.cs-motion__chips span::before { content: "◦ "; color: var(--accent); }
.cs-video { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.cs-mood { font-family: var(--fd); margin-top: clamp(40px, 6vw, 80px); font-size: clamp(1.6rem, 3.6vw, 3.4rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.12; max-width: 24ch; }
.cs-mood .wd { display: inline-block; }

/* outcome */
.cs-out .d-xxl { max-width: 16ch; }
.cs-outlist { margin-top: 36px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.cs-out__grid { display: grid; gap: 14px; margin-top: 50px; }
@media (min-width: 1000px) { .cs-out__grid { grid-template-columns: 1.6fr 1fr; } }
.cs-quote { margin: 0; padding: clamp(28px, 4vw, 48px); display: grid; gap: 26px; }
.cs-quote blockquote { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.35; }
.cs-quote figcaption { color: var(--sub); font-size: 14px; }
.cs-quote figcaption b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.cs-facts { display: grid; gap: 22px; align-content: start; margin: 0; padding: 30px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); }
.cs-facts dd { margin: 6px 0 0; }

.cs-cta__in { display: grid; justify-items: center; text-align: center; gap: 24px; }
.cs-cta__in .d-xl { max-width: 18ch; }

/* next project */
.cs-next { position: relative; display: block; overflow: hidden; isolation: isolate; min-height: clamp(260px, 42vh, 460px); border-top: 1px solid var(--rule); }
.cs-next__bg { position: absolute; inset: -20px; z-index: -1; background-size: cover; background-position: center; opacity: .28; filter: blur(6px) saturate(.9); scale: 1.05; transition: opacity .8s var(--ease-out), filter .8s, scale 1.2s var(--ease-out); }
.cs-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--abyss), transparent 40%, rgba(2,11,19,.6)); }
.cs-next__in { min-height: inherit; display: grid; align-content: center; gap: 14px; position: relative; }
.cs-next__name { font-family: var(--fd); font-size: clamp(3rem, 10vw, 9rem); font-weight: 600; letter-spacing: -.035em; line-height: .96; transition: translate .8s var(--ease-out); }
.cs-next__go { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: clamp(64px, 8vw, 110px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.4rem, 2.4vw, 2.2rem); background: var(--accent); color: #002B48; transition: scale .6s var(--spring), rotate .6s var(--ease-out); }
@media (hover: hover) { .cs-next:hover .cs-next__bg { opacity: .7; filter: none; scale: 1; } .cs-next:hover .cs-next__name { translate: 20px 0; } .cs-next:hover .cs-next__go { scale: 1.12; rotate: -45deg; } }

.foot--min { padding-top: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 160; background: rgba(2,11,19,.96); display: grid; place-items: center; }
.lb__stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; padding: 70px 16px; touch-action: none; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; cursor: zoom-in; transition: transform .5s var(--ease-out), opacity .3s; user-select: none; -webkit-user-drag: none; }
.lb.is-zoom .lb__img { cursor: zoom-out; transition: transform .15s linear; }
.lb__count { position: absolute; left: 22px; top: 22px; color: var(--mist); }
.lb__hint { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; }
.lb__close { position: absolute; right: 18px; top: 14px; }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; }
.lb__prev { left: 14px; } .lb__next { right: 14px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 14px; translate: none; } .lb__hint { display: none; } }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 170; translate: -50% 20px; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: var(--abyss); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .5s var(--ease-out); }
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* next project: clear label + stronger image */
.cs-next__bg { opacity: .45; filter: blur(2px) saturate(.95); }
.cs-next__label { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(5,6,7,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font: 600 13px var(--f); letter-spacing: .02em; color: var(--ink); }
.cs-next__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 10px var(--mist); }
.cs-next__sub { color: rgba(244,241,234,.75); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 46ch; }

/* sliders and the next-case backdrop never widen the page */
.cs-wild, .cs-next { overflow-x: clip; }

/* phones: smaller display type so each block sits inside the screen */
@media (max-width: 599px) {
  .cs-hero__title { font-size: clamp(2.2rem, 1.2rem + 6vw, 3rem); }
  .cs-next__name { font-size: clamp(2rem, 1.2rem + 5vw, 2.8rem); }
  .spec__aa { font-size: 3rem; }
  .cs-mood { font-size: 1.3rem; }
}
