/* nOps case study, part 1: tokens, hero, brief and the cost curve.
   Part 2 (case-nops-2.css): compliance scene, credits results, responsive.
   Shared pieces: case-study.css, case-contact.css.
   Signature: a sticky SVG spend curve in .no-curve that draws down, pinning a note
   at each product area as it is read (case-nops.js). */

:root {
  --accent: #3a8dff;
  --no-mid: #070e22;
  --no-deep: #040817;
  --no-navy: #0d1a3d;
  --no-blue: #1f6bff;
  --no-cyan: #22d3ee;
  --no-ice: #bcd3f7;
  --no-text: rgb(220 232 255 / 74%);
  --no-line: rgb(188 211 247 / 14%);
  --cs-ink: #0e1a33;
  --cs-muted: #4b5873;
  --cs-faint: #7a869c;
  --cs-line: rgb(14 26 51 / 12%);
  --cs-bg: #f5f8fe;
  --cs-dark: var(--no-mid);
  --cs-dot-dark: var(--no-cyan);
  --cf-dots: rgb(14 26 51 / 9%);
  --cf-glow: rgb(31 107 255 / 16%);
  --cf-btn: #0e1a33;
  --cf-btn-icon: #3a8dff;
  --cf-btn-icon-fg: #fff;
  --cf-sent: #0e1a33;
  --cf-sent-fg: #22d3ee;
}

a:hover { color: var(--accent); }
.no-hero, .no-brief, .no-curve, .no-scene, .no-credits { color: #f2f6ff; }
.no-hero .cs-kicker, .no-brief .cs-kicker, .no-curve .cs-kicker { color: rgb(220 232 255 / 60%); }
.no-scene .cs-kicker, .no-credits .cs-kicker { color: rgb(220 232 255 / 60%); }

/* ---------- hero: titles over a full-bleed ribbon ---------- */
.no-hero { position: relative; overflow: hidden; padding: clamp(132px, 12vw, 176px) var(--gutter) 0; background: radial-gradient(60% 50% at 70% 100%, rgb(31 107 255 / 30%), transparent 70%), var(--no-mid); }
.no-hero__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 112px); align-items: end; }
.no-hero__copy { display: grid; gap: 26px; }
.no-reel { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.no-reel__mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.no-reel__mark i { width: 4px; border-radius: 2px; background: var(--accent); }
.no-reel__mark i:nth-child(1) { height: 9px; }
.no-reel__mark i:nth-child(2) { height: 20px; }
.no-reel__mark i:nth-child(3) { height: 14px; }
.no-reel__mark i:nth-child(4) { height: 18px; background: var(--no-cyan); }
.no-hero__title { max-width: 880px; font-weight: 600; font-size: clamp(38px, 4.8vw, 80px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.no-hero__side { display: grid; gap: 28px; padding-bottom: 8px; }
.no-hero__lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--no-text); }
.no-hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.no-hero__meta > div { padding-left: 14px; border-left: 2px solid var(--no-blue); }
.no-hero__meta dt { margin-bottom: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--no-cyan); }
.no-hero__meta dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.no-hero__ribbon { margin: clamp(48px, 5vw, 72px) calc(var(--gutter) * -1) 0; }
.no-hero__ribbon img { display: block; width: 100%; height: auto; mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%); }

/* ---------- brief ---------- */
.no-brief { background: linear-gradient(180deg, var(--no-mid), var(--no-navy)); }
.no-brief__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.no-brief__shot { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px rgb(34 211 238 / 25%), 0 40px 100px -40px rgb(31 107 255 / 70%); }
.no-brief__shot img { display: block; width: 100%; height: auto; }
.no-brief__copy { display: grid; gap: 22px; }
.no-brief__copy .cs-kicker { margin: 0; }
.no-brief__lead { max-width: 560px; margin: 0; font-size: 17px; line-height: 1.65; color: var(--no-text); }
.no-chapters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: no; }
.no-chapters li { counter-increment: no; }
.no-chapters a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgb(31 107 255 / 12%); box-shadow: inset 0 0 0 1px rgb(58 141 255 / 35%); font-size: 14px; font-weight: 500; white-space: nowrap; color: #f2f6ff; text-decoration: none; transition: background .3s; }
.no-chapters a::before { content: counter(no, decimal-leading-zero); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--no-blue); font-size: 11px; font-weight: 700; }
.no-chapters a:hover { background: rgb(31 107 255 / 30%); color: #fff; }

/* ---------- signature: the cost curve ---------- */
.no-curve { background: linear-gradient(180deg, var(--no-navy), var(--no-deep) 18%); }
.no-curve__head { display: grid; gap: 20px; max-width: 860px; }
.no-curve__head .cs-kicker { margin: 0; }
.no-curve__lead { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.65; color: var(--no-text); }
.no-curve__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 96px); margin-top: clamp(48px, 5vw, 80px); }
.no-chart { position: sticky; top: 112px; align-self: start; }
.no-chart__frame { position: relative; padding: 26px 28px 22px; border-radius: 26px; background: linear-gradient(160deg, rgb(31 107 255 / 14%), rgb(7 14 34 / 60%)); box-shadow: inset 0 0 0 1px var(--no-line), 0 50px 120px -60px rgb(31 107 255 / 70%); }
.no-chart__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--no-ice); }
.no-chart__title span { font-weight: 400; letter-spacing: .02em; text-transform: none; color: rgb(220 232 255 / 48%); }
.no-chart__plot { position: relative; }
.no-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.no-chart__grid line { stroke: var(--no-line); stroke-dasharray: 3 6; }
.no-chart__clip { transform: scaleX(var(--no-p, 1)); transform-origin: 20px 0; }
.no-chart__ghost { fill: none; stroke: rgb(188 211 247 / 12%); stroke-width: 3; }
.no-chart__line { fill: none; stroke: var(--no-cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--no-p, 1) * 1000); filter: drop-shadow(0 0 8px rgb(34 211 238 / 70%)); }
.no-chart__pins circle { fill: var(--no-deep); stroke: rgb(188 211 247 / 30%); stroke-width: 3; transition: fill .4s, stroke .4s; }
.no-chart__pins circle.is-on { fill: var(--no-blue); stroke: #fff; }
.no-chart__head { fill: #fff; stroke: var(--no-cyan); stroke-width: 4; filter: drop-shadow(0 0 10px var(--no-cyan)); }
.no-notes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.no-notes li { position: absolute; left: var(--x); top: var(--y); padding: 7px 12px; border-radius: 10px; background: rgb(7 14 34 / 88%); box-shadow: inset 0 0 0 1px rgb(58 141 255 / 50%); font-size: 13px; font-weight: 500; white-space: nowrap; color: #fff; opacity: 0; transform: translate(-50%, calc(-100% - 22px)) scale(.9); transition: opacity .4s, transform .5s var(--ease); }
.no-notes li:nth-child(n + 4) { transform: translate(-92%, calc(-100% - 22px)) scale(.9); }
.no-notes li.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)); }
.no-notes li:nth-child(n + 4).is-on { transform: translate(-92%, calc(-100% - 18px)); }
.no-chart__axis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 6px 0 0; padding: 0 0 0 3%; list-style: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgb(220 232 255 / 45%); }
.no-chart__axis li { text-align: center; }
.no-chart__now { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--no-line); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.no-chart__now::before { content: 'Now reading  '; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: pre; color: var(--no-cyan); }

.no-steps { display: grid; gap: clamp(72px, 9vw, 140px); margin: 0; padding: 0 0 8vh; list-style: none; }
.no-step { display: grid; gap: 28px; scroll-margin-top: 120px; }
.no-step__shot { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--no-line); }
.no-step__shot img { display: block; width: 100%; height: auto; }
.no-step__copy { display: grid; gap: 12px; padding-left: 20px; border-left: 2px solid var(--no-line); transition: border-color .4s; }
.no-step.is-on .no-step__copy { border-color: var(--no-cyan); }
.no-step__n { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--no-cyan); }
.no-step__title { margin: 0; font-size: clamp(24px, 2.1vw, 32px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.no-step__copy p:not(.no-step__n) { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--no-text); }

/* the client logo (from the site logo set) on a white pill, readable on light and dark heroes */
.no-brand { display: inline-flex; align-items: center; justify-self: start; margin: 0; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 10px 24px -14px rgb(0 0 0 / 35%); }
.no-brand img { display: block; width: auto; height: 30px; }
