/* ============================================================
   CSX — immersive case-study pages (/work/<slug>/) + /work/ hub
   Loaded by the page body (deploy/build_work.py). Per-study accent
   comes in as --c / --c-ink on .csx.
   ============================================================ */
.csx { --c: #CC1C6C; --c-ink: #fff; --bg: #0c0a1c; --bg2: #141130; --tx: #F5F4FA; --tx2: #A9A5C6; --ln: rgba(255,255,255,.12);
  background: var(--bg); color: var(--tx); overflow-x: clip; }
.csx a { color: inherit; }
.csx .csx-wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.csx-k { font-family: var(--mono); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c); display: block; margin: 0 0 1rem; }
.csx h2 { color: var(--tx); font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.csx h2 .u-serif, .csx h1 .u-serif { color: var(--c); }

/* ---------- HERO: cursor wipe reveals the real site ---------- */
.csx-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--bg); }
.csx-hero__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -3; }
.csx-hero__fade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 4%, color-mix(in srgb, var(--bg) 55%, transparent) 30%, transparent 58%),
              linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 35%, transparent) 42%, transparent 62%); }
@media (max-width: 760px) {
  .csx-hero { display: block; min-height: 0; padding-top: 64px; }
  .csx-hero__shot { position: relative; display: block; height: auto; aspect-ratio: 16 / 9; z-index: 0; }
  .csx-hero__fade { inset: 64px 0 auto 0; aspect-ratio: 16 / 9; height: auto; background: linear-gradient(to top, var(--bg) 2%, transparent 40%); }
  .csx-hero .csx-hero__in { padding-top: 18px; }
}
.csx-hero__in { width: 100%; max-width: 1500px; margin: 0 auto; padding: 140px clamp(16px, 4vw, 48px) clamp(36px, 6vh, 64px); pointer-events: none; }
.csx-hero__in a, .csx-hero__in button { pointer-events: auto; }
.csx-hero .nx-crumbs { color: var(--tx2); font-size: .85rem; margin-bottom: 1.2rem; }
.csx-hero .nx-crumbs a { color: var(--tx2); text-decoration: none; }
.csx-hero__name { font-size: clamp(4rem, 15vw, 15rem); line-height: .82; margin: 0 0 .12em; color: var(--tx); letter-spacing: -.005em; }
.csx-hero__name span { display: block; }
.csx-hero__name .is-c { color: var(--c); }
.csx-hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.2; max-width: 30em; margin: 0 0 2rem; color: var(--tx); }
.csx-hero__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 28px; border-top: 1px solid var(--ln); padding-top: 18px; margin: 0; max-width: 1100px; }
.csx-hero__meta dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tx2); }
.csx-hero__meta dd { margin: 4px 0 0; font-weight: 700; font-size: .98rem; line-height: 1.35; }
@keyframes csxPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* ---------- STATS ---------- */
.csx-stats { border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); background: var(--bg2); }
.csx-stats ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1500px; }
.csx-stats li { padding: clamp(26px, 4vw, 44px) clamp(16px, 2.5vw, 34px); border-left: 1px solid var(--ln); }
.csx-stats li:first-child { border-left: 0; }
.csx-stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 5.5vw, 4.8rem); line-height: .9; color: var(--c); }
.csx-stats span { display: block; margin-top: 8px; color: var(--tx2); font-size: .95rem; line-height: 1.4; }
@media (max-width: 760px) { .csx-stats ul { grid-template-columns: 1fr 1fr !important; } .csx-stats li:nth-child(3) { border-left: 0; } .csx-stats li:nth-child(n+3) { border-top: 1px solid var(--ln); } }

/* ---------- STORY ---------- */
.csx-story { padding: clamp(80px, 11vw, 150px) 0; }
.csx-story__lead { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.22; max-width: 26em; margin: 0 0 clamp(48px, 7vw, 90px); font-weight: 600; letter-spacing: -.01em; }
.csx-story__lead em { font-family: var(--serif); color: var(--c); font-weight: 400; }
.csx-story__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.csx-story__col { border-top: 2px solid var(--c); padding-top: 20px; }
.csx-story__col b { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tx2); display: block; margin-bottom: 12px; }
.csx-story__col h3 { color: var(--tx); font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.csx-story__col p { color: var(--tx2); margin: 0; }
@media (max-width: 860px) { .csx-story__cols { grid-template-columns: 1fr; } }

/* ---------- WALKTHROUGH (sticky device + scrolling steps) ---------- */
.csx-tour { position: relative; padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); background: radial-gradient(1200px 700px at 75% 20%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--bg); }
.csx-tour__head { max-width: 1500px; margin: 0 auto clamp(30px, 5vw, 60px); padding: 0 clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.csx-tour__head h2 { margin: 0; }
.csx-tour__head p { color: var(--tx2); max-width: 30em; margin: 0; }
.csx-tour__grid { max-width: 1500px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.csx-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.csx-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .32; transition: opacity .45s var(--ease); }
.csx-step:first-child { min-height: 60vh; }
.csx-step.is-on { opacity: 1; }
.csx-step__n { font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; color: var(--c); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.csx-step__n::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--c); }
.csx-step h3 { color: var(--tx); font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: .4em; }
.csx-step p { color: var(--tx2); font-size: 1.05rem; margin: 0 0 1rem; max-width: 34em; }
.csx-step ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.csx-step li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ln); color: var(--tx); background: rgba(255,255,255,.03); }
.csx-step__m { display: none; }

.csx-stage { position: relative; }
.csx-stage__pin { position: sticky; top: max(90px, calc(50vh - 330px)); }
.csx-dev { position: relative; margin: 0 auto; transition: max-width .6s var(--ease-out), border-radius .6s var(--ease-out); }
.csx-dev--browser { max-width: 100%; border-radius: 14px; background: #1c1a2e; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.csx-dev--phone { max-width: 330px; border-radius: 46px; background: #0a0a0f; padding: 12px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 2px #2b2940, inset 0 0 0 1px rgba(255,255,255,.08); }
.csx-dev__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.csx-dev--phone .csx-dev__bar { display: none; }
.csx-dev__dots { display: flex; gap: 7px; }
.csx-dev__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3852; }
.csx-dev__dots i:nth-child(1) { background: #ff5f57; } .csx-dev__dots i:nth-child(2) { background: #febc2e; } .csx-dev__dots i:nth-child(3) { background: #28c840; }
.csx-dev__url { flex: 1; max-width: 520px; margin: 0 auto; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--tx2); font: 500 .78rem/26px var(--body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.csx-dev__url::before { content: "🔒 "; font-size: .7rem; opacity: .7; }
.csx-dev__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 14px 14px; background: #000; }
.csx-dev--phone .csx-dev__screen { aspect-ratio: 390 / 844; border-radius: 36px; }
.csx-dev--phone .csx-dev__screen::before { content: ""; position: absolute; z-index: 5; top: 10px; left: 50%; width: 30%; height: 24px; margin-left: -15%; border-radius: 20px; background: #000; }
.csx-scr { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
.csx-scr.is-on { opacity: 1; pointer-events: auto; }
.csx-scr__img { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }
.csx-scr__img--fit { height: 100%; object-fit: cover; object-position: top center; }
.csx-scr video.csx-scr__img { height: 100%; object-fit: cover; }
.csx-dev[data-k="browser"] .csx-scr:not([data-kind="browser"]), .csx-dev[data-k="phone"] .csx-scr:not([data-kind="phone"]), .csx-dev[data-k="board"] .csx-scr:not([data-kind="board"]) { display: none; }
/* design board: archival design comps, no browser chrome */
.csx-dev--board { max-width: 100%; border-radius: 14px; background: #f4f1ee; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.csx-dev--board .csx-dev__bar { display: none; }
.csx-dev--board .csx-dev__screen { border-radius: 14px; background: #f4f1ee; }
.csx-dev--board::after { content: attr(data-label); position: absolute; left: 16px; bottom: -30px; font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tx2); }
.csx-scr[data-kind="board"] .csx-scr__img { inset: 6%; width: 88%; height: 88%; object-fit: contain; object-position: center; }

/* hotspots */
.csx-hot { position: absolute; z-index: 4; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); color: var(--c-ink); font: 800 .78rem/30px var(--body); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent), 0 6px 18px rgba(0,0,0,.45); animation: csxPulse 2s infinite; transform: scale(0); transition: transform .4s var(--ease-out); }
.csx-scr.is-on .csx-hot { transform: scale(1); }
.csx-scr.is-on .csx-hot:nth-of-type(2) { transition-delay: .12s; } .csx-scr.is-on .csx-hot:nth-of-type(3) { transition-delay: .24s; }
.csx-hot__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(6px); width: max-content; max-width: 240px; padding: 10px 13px; border-radius: 10px; background: #fff; color: #17142f; font: 600 .82rem/1.35 var(--body); text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; animation: none; }
.csx-hot[data-pos="below"] .csx-hot__tip { bottom: auto; top: calc(100% + 12px); }
.csx-hot[data-pos="left"] .csx-hot__tip { left: auto; right: -6px; transform: translateY(6px); }
.csx-hot[data-pos="right"] .csx-hot__tip { left: -6px; transform: translateY(6px); }
.csx-hot:hover .csx-hot__tip, .csx-hot:focus-visible .csx-hot__tip, .csx-hot.is-open .csx-hot__tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.csx-hot[data-pos="left"]:hover .csx-hot__tip, .csx-hot[data-pos="left"].is-open .csx-hot__tip, .csx-hot[data-pos="right"]:hover .csx-hot__tip, .csx-hot[data-pos="right"].is-open .csx-hot__tip { transform: none; }

/* stage controls */
.csx-ctl { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.csx-ctl__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.csx-ctl__dots button { width: 34px; height: 6px; border: 0; padding: 0; border-radius: 6px; background: rgba(255,255,255,.18); cursor: pointer; transition: background .3s, width .3s; }
.csx-ctl__dots button.is-on { background: var(--c); width: 54px; }
.csx-ctl__dots button::after { content: ""; display: block; height: 24px; margin-top: -9px; } /* larger tap target */
.csx-ctl__now { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; color: var(--tx2); text-transform: uppercase; white-space: nowrap; }
.csx-ctl__arrows { display: flex; gap: 8px; }
.csx-ctl__arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ln); background: transparent; color: var(--tx); cursor: pointer; font-size: 1.1rem; transition: background .2s, border-color .2s; }
.csx-ctl__arrows button:hover { background: var(--c); border-color: var(--c); color: var(--c-ink); }

@media (max-width: 900px) {
  .csx-tour__grid { grid-template-columns: 1fr; }
  .csx-stage { order: -1; position: sticky; top: 64px; z-index: 3; padding: 10px 0 12px; background: linear-gradient(var(--bg) 82%, transparent); }
  .csx-stage__pin { position: static; }
  .csx-dev--browser .csx-dev__bar { height: 30px; } .csx-dev__dots i { width: 8px; height: 8px; } .csx-dev__url { height: 20px; line-height: 20px; font-size: .68rem; }
  .csx-dev--board::after { display: none; }
  .csx-dev--phone { max-width: min(190px, 46vw); border-radius: 30px; padding: 7px; } .csx-dev--phone .csx-dev__screen { border-radius: 24px; }
  .csx-ctl { margin-top: 10px; } .csx-ctl__arrows, .csx-ctl__now { display: none; }
  .csx-step { min-height: 62vh; opacity: .45; }
  .csx-hot { width: 24px; height: 24px; margin: -12px 0 0 -12px; line-height: 24px; font-size: .7rem; }
}

/* ---------- SIGNATURE (video / big moment) ---------- */
.csx-sig { position: relative; padding: clamp(70px, 9vw, 120px) 0; background: var(--bg2); }
.csx-sig__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.csx-sig__media { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.csx-sig__media video, .csx-sig__media img { width: 100%; height: auto; display: block; }
.csx-sig p { color: var(--tx2); }
@media (max-width: 860px) { .csx-sig__grid { grid-template-columns: 1fr; } }

/* ---------- SCREEN STRIP (drag/scroll gallery) ---------- */
.csx-strip { padding: clamp(70px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); }
.csx-strip__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.csx-strip__head h2 { margin: 0; }
.csx-strip__head p { color: var(--tx2); margin: 0; max-width: 28em; }
.csx-strip__rail { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px clamp(16px, 4vw, 48px) 26px; scrollbar-width: thin; scrollbar-color: var(--c) transparent; cursor: grab; }
.csx-strip__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.csx-strip__rail figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.csx-strip__rail img { height: clamp(300px, 52vh, 520px); width: auto; border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07); user-select: none; -webkit-user-drag: none; }
.csx-strip__rail figure.is-phone img { border-radius: 26px; }
.csx-strip__rail figcaption { margin-top: 12px; color: var(--tx2); font-size: .88rem; max-width: 36ch; }

/* ---------- BUILT WITH ---------- */
.csx-built { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--ln); }
.csx-built__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.csx-built__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.csx-built__list li { padding: 14px 0; border-bottom: 1px solid var(--ln); font-weight: 600; display: flex; gap: 12px; }
.csx-built__list li::before { content: "→"; color: var(--c); }
@media (max-width: 860px) { .csx-built__grid, .csx-built__list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.csx-faq { padding: clamp(60px, 8vw, 100px) 0; background: var(--bg2); }
.csx-faq details { border-bottom: 1px solid var(--ln); padding: 20px 0; max-width: 900px; }
.csx-faq summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.csx-faq summary::-webkit-details-marker { display: none; }
.csx-faq summary::after { content: "+"; color: var(--c); font-size: 1.5rem; line-height: 1; }
.csx-faq details[open] summary::after { content: "–"; }
.csx-faq details p { color: var(--tx2); margin: 12px 0 0; }

/* ---------- NEXT STUDY ---------- */
.csx-next { position: relative; display: block; min-height: 70vh; overflow: hidden; text-decoration: none; isolation: isolate; }
.csx-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: -2; transform: scale(1.06); transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.7) brightness(.45); }
.csx-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,10,28,.95), rgba(12,10,28,.35)); }
.csx-next:hover img, .csx-next:focus-visible img { transform: scale(1); filter: saturate(1) brightness(.6); }
.csx-next__in { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px); max-width: 1500px; margin: 0 auto; }
.csx-next__k { font-family: var(--mono); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tx2); }
.csx-next__name { display: block; font-family: var(--display); font-size: clamp(3.4rem, 11vw, 10rem); line-height: .85; color: #fff; margin-top: 10px; }
.csx-next__name i { font-style: normal; color: var(--c2, var(--c)); transition: margin .3s var(--ease-out); }
.csx-next:hover .csx-next__name i { margin-left: .15em; }

/* ============================================================
   /work/ hub — 9 immersive panels linking to the case studies
   (re-uses the .nu-wf reel; adds the link + accent)
   ============================================================ */
.nu-wf__go { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 15px 26px; border-radius: 999px; background: var(--wfc, var(--accent)); color: var(--wfci, #fff); font-weight: 800; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.nu-wf__go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--wfc, var(--accent)); }
.nu-wf__go::after { content: "→"; transition: transform .2s; }
.nu-wf__go:hover::after { transform: translateX(4px); }
.nu-wf__facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nu-wf__facts li { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.nu-wf__media a { display: block; }
.nu-wf__media--shot .nu-wf__shot { border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }

@media (prefers-reduced-motion: reduce) {
  .csx-scr, .csx-step, .csx-hot, .csx-next img { transition: none !important; animation: none !important; }
  .csx-hot { transform: scale(1); }
}

/* ---------- 2026-10-16: fit the viewport (Adam) ---------- */
/* hero: type scales with height too, so it never spills past one screen */
.csx-hero { min-height: 100svh; }
.csx-hero__in { padding-top: clamp(92px, 13vh, 140px); padding-bottom: clamp(24px, 5vh, 64px); }
.csx-hero__name { font-size: clamp(3.4rem, min(15vw, 22vh), 15rem); }
.csx-hero__sub { font-size: clamp(1.15rem, min(2.6vw, 3.6vh), 2.2rem); margin-bottom: clamp(14px, 3vh, 32px); }
.csx-hero .csx-k { margin-bottom: clamp(8px, 1.6vh, 16px); }
@media (max-height: 700px) and (min-width: 761px) { .csx-hero .nx-crumbs { display: none; } }
/* walkthrough: the device is sized by the screen height as well as the column width */
.csx-stage__pin { top: clamp(84px, calc(50svh - 340px), 220px); }
.csx-dev--browser, .csx-dev--board { width: 100%; max-width: min(100%, calc((100svh - 230px) * 1.6)); }
.csx-dev--phone { max-width: min(330px, calc((100svh - 210px) * 0.462 + 24px)); }
.csx-ctl { margin-top: clamp(10px, 2vh, 18px); }
@media (max-width: 900px) {
  .csx-dev--browser, .csx-dev--board { max-width: min(100%, calc((42svh - 30px) * 1.6)); }
  .csx-dev--phone { max-width: min(46vw, calc(42svh * 0.462)); }
}
@media (max-width: 760px) {
  .csx-hero { min-height: 0; }
  .csx-hero__name { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .csx-hero__sub { font-size: 1.15rem; }
  .csx-hero__meta { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 12px; }
  .csx-hero__meta dd { font-size: .9rem; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .csx-hero .nx-crumbs { display: none; }
  .csx-hero__name { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .csx-hero__sub { font-size: 1.05rem; }
  .csx-hero__meta div:nth-child(n+3) { display: none; }
}

@media (max-width: 760px) and (max-height: 720px) { .nu-wf__facts { display: none; } .nu-wf__go { margin-top: 14px; padding: 12px 20px; } }

/* ---------- Next case study v2 (Adam 2026-10-16: clearer, better image, lighten on hover) ---------- */
.csx-nx { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); background: radial-gradient(900px 500px at 80% 50%, color-mix(in srgb, var(--nc) 22%, transparent), transparent 70%), var(--bg2); border-top: 1px solid var(--ln); }
.csx-nx__card { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; text-decoration: none; color: #fff; }
.csx-nx__txt { display: flex; flex-direction: column; align-items: flex-start; }
.csx-nx__k { font-family: var(--mono); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tx2); }
.csx-nx__k b { color: var(--nc); font-weight: 700; margin-left: .6em; }
.csx-nx__name { display: block; margin: .2em 0 .12em; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .88; color: #fff; }
.csx-nx__cat { font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nc); margin-bottom: 14px; }
.csx-nx__line { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.32; color: rgba(245,244,250,.88); max-width: 28em; margin-bottom: clamp(20px, 3vw, 30px); }
.csx-nx__btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 999px; border: 2px solid var(--nc); color: #fff; font-weight: 800; transition: background .25s, color .25s, box-shadow .25s; }
.csx-nx__btn::after { content: "→"; transition: transform .25s; }
.csx-nx__media { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.csx-nx__media img { display: block; width: 100%; height: auto; filter: brightness(.92) saturate(.95); transform: scale(1.0); transition: transform 1s var(--ease-out), filter .5s; }
.csx-nx__card:hover .csx-nx__media img, .csx-nx__card:focus-visible .csx-nx__media img { transform: scale(1.04); filter: brightness(1.08) saturate(1.05); }
.csx-nx__card:hover .csx-nx__btn, .csx-nx__card:focus-visible .csx-nx__btn { background: var(--nc); color: var(--nci); box-shadow: 0 16px 36px -14px var(--nc); }
.csx-nx__card:hover .csx-nx__btn::after { transform: translateX(5px); }
.csx-nx__card:focus-visible { outline: 3px solid var(--nc); outline-offset: 8px; border-radius: 20px; }
@media (max-width: 860px) {
  .csx-nx__card { grid-template-columns: minmax(0, 1fr); }
  .csx-nx__media { order: -1; }
}
/* keep the phone in frame: crop from the dark left side, never the device side (Adam 2026-10-16) */
@media (min-width: 761px) { .csx-hero__shot { object-position: 100% 50%; } }
