/* Shared long-scroll case study styles (Realise, Saahas, TripLite).
   Each page sets its own --cs-accent on :root. */
/* ── Hero summary: everything a reader needs on the first screen ── */
.ph { color: #fff; margin-bottom: 40px; }
.ph-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.ph-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: clamp(32px, 4vw, 56px);
}
.ph-tagline { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.ph-tagline span[aria-hidden] { font-weight: 400; }
.ph-desc { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 640px; text-wrap: pretty; }
.ph-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.ph-outcome {
  max-width: 640px;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cs-accent, #8fcfc4);
}
.ph-outcome p { margin-top: 6px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255,255,255,0.9); }
.ph-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 4.4vw, 64px);
  border-top: 2px solid rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.ph-meta > div { padding: 20px 24px 28px; border-left: 1px solid rgba(255,255,255,0.14); }
.ph-meta > div:first-child { padding-left: 0; border-left: 0; }
.ph-meta dd { margin: 10px 0 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
.ph-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.ph-quick .ph-label { margin-right: 6px; }
.ph-jump {
  font: inherit;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ph-jump:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
.ph-jump:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .ph-row { grid-template-columns: 1fr; gap: 20px; }
  .ph-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ph-meta > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.14); }
}

/* ── LONG-SCROLL CASE STUDY: Problem → What I did → Decision → How it works → Flows → Visual → Impact ── */
.cs {
  --accent: var(--cs-accent, #4c7cf0);
  --card: #141414;
  --line: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.62);
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 120px;
  color: #fff;
}
.ph-jump { text-decoration: none; display: inline-block; }
.project-hero { overflow-x: clip; }   /* the carousel's side screens were widening the page */
.cs-sec { padding: clamp(64px, 8vw, 120px) 0 0; scroll-margin-top: 90px; }
.cs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 40px;
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.cs-head h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: 0.05em;   /* room between letters so each one reads as its own block */
  text-transform: uppercase;
}

/* 3D headings in whites and light greys, built in thin layers (front to back):
   1. the letter: a see-through white fill with a thin white line as its outer edge
   2. a copy of the letter filled the same, which blocks the extrusion from showing through
   3. a shallow extrusion (5 × 1px steps) in light grey
   Layers 2–3 are a copy of the text (data-text) drawn behind the real text.
   The see-through fill is mixed against the page background (--h-bg) and drawn on
   that back copy, so the extrusion behind the letter doesn't show through it. */
.h3d {
  --h-bg: #0a0a0a;
  --h-fill: color-mix(in srgb, #fff 16%, var(--h-bg));   /* white at ~16% over the page */
  --h-line: #ffffff;   /* pure white inline */
  --h-side: #8c8c8c;   /* light grey 3D side */
  position: relative;
  isolation: isolate;
  padding: 0 0.1em 0.1em 0.03em;
  color: transparent;
  -webkit-text-stroke: 0.02em var(--h-line);
}
.h3d::before {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0 0.1em 0.1em 0.03em;
  z-index: -1;
  color: var(--h-fill);
  -webkit-text-stroke: 0.01em var(--h-fill);   /* just enough to sit under the white line, no dark band */
  filter:
    drop-shadow(1px 1px 0 var(--h-side)) drop-shadow(1px 1px 0 var(--h-side))
    drop-shadow(1px 1px 0 var(--h-side)) drop-shadow(1px 1px 0 var(--h-side))
    drop-shadow(1px 1px 0 var(--h-side));
  pointer-events: none;
}
.cs-head p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.cs-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.cs-num {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.cs-cards { list-style: none; display: grid; gap: 16px; padding: 0; margin: 0; }
.cs-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-cards li {
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.cs-cards h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.cs-cards p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.cs-did h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.cs-did svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Problem diagram */
.cs-diagram {
  margin: 0 0 16px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.4px) 0 0 / 22px 22px, #0f0f0f;
  border: 1px solid var(--line);
}
.dg { display: grid; grid-template-columns: 1fr 70px 1.5fr 70px 1fr; align-items: center; }
.dg-node {
  padding: 18px;
  border-radius: 14px;
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,0.14);
}
.dg-node b { display: block; font-size: 16px; font-weight: 600; }
.dg-node small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.dg-node em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: #ef6a5a; }
.dg-kicker { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.dg-you { text-align: center; }
.dg-ico { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--accent); font-size: 22px; font-weight: 700; }
.dg-opts { display: grid; gap: 10px; }
.dg-end { background: transparent; border: 1.5px dashed rgba(239,106,90,0.6); }
.dg-end b { color: #ef6a5a; }
.dg-lines { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-around; }
.dg-lines i { display: block; height: 0; border-top: 1.5px dashed rgba(255,255,255,0.3); }
.dg-lines--x i { border-color: rgba(239,106,90,0.55); }
.dg-lines--x span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #0f0f0f; border: 1.5px solid #ef6a5a; color: #ef6a5a; font-size: 16px; line-height: 1;
}
.cs-diagram figcaption { margin-top: 26px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* Decision */
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dc-card { padding: clamp(22px, 2.6vw, 34px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.dc-card + .dc-card, .dc-grid + .dc-card { margin-top: 16px; }
.dc-card .dc-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #fff;
  max-width: none;
}
.dc-card :where(p) { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.dc-plan { border-style: dashed; }
.dc-plan .dc-big s { text-decoration-thickness: 0.1em; color: rgba(255,255,255,0.55); }
.dc-heard { background: #f2f2f2; color: #111; border: 0; }
.dc-heard .cs-label { color: rgba(0,0,0,0.5); }
.dc-heard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dc-heard li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.dc-heard li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.dc-tricky p { font-size: clamp(20px, 2vw, 28px); line-height: 1.35; color: #fff; }
.dc-decided { background: color-mix(in srgb, var(--accent) 72%, #000); border: 0; }   /* darkened so white text stays readable */
.dc-decided .cs-label { color: rgba(255,255,255,0.75); }
.dc-decided p { color: rgba(255,255,255,0.92); }
.dc-trade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.dc-trade div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.dc-trade dt { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.dc-trade dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Key flows */
.fl { padding: 36px 0; border-bottom: 1px solid var(--line); }
.fl:last-child { border-bottom: 0; }
.fl-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 24px; }
.fl-head .cs-num { margin: 8px 0 0; }
.fl-head h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}
.fl-head p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.fl-shot {
  display: block;
  width: 100%;
  padding: clamp(12px, 2vw, 28px);
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, #121212), #121212 60%);
  cursor: zoom-in;
}
.fl-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 586; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.fl-shot:hover img { transform: scale(1.01); }
.fl-shot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.fl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fl-pair figure { margin: 0; }
.fl-pair figcaption, .fl-note p { font-size: 14px; color: var(--muted); }
.fl-pair figcaption { margin-top: 10px; }
.fl-note { margin-top: 16px; padding: 18px 22px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 12px 12px 0; }
.fl-note .cs-label { margin-bottom: 4px; }
.lb { max-width: min(1400px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #111; overflow: auto; }
.lb::backdrop { background: rgba(0,0,0,0.82); }
.lb img { display: block; width: 100%; height: auto; }
.lb-close { position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 22px; cursor: pointer; z-index: 1; }

/* Visual language */
.vl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vl-card { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.vl-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.vl-stat {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  font-size: clamp(48px, 5vw, 76px) !important;
  line-height: 1 !important;
  color: #fff !important;
  margin-bottom: 10px;
}
.vl-word { font-family: 'Poppins', sans-serif !important; font-weight: 700; letter-spacing: -0.02em; }
.vl-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.vl-swatches span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: #1f1f1f; font-size: 13px; }
.vl-swatches span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--c); }

/* Impact */
.im-hero { padding: clamp(26px, 3vw, 40px); margin-bottom: 16px; border-radius: 22px; background: #f2f2f2; color: #111; }
.im-hero .cs-label { color: var(--accent); }
.im-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.im-hero p:last-child { font-size: 16px; line-height: 1.6; color: rgba(0,0,0,0.65); }
.im-learn { margin-top: 16px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); }
.im-learn ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.im-learn li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.im-learn li::marker { color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.im-learn b { color: #fff; font-weight: 600; }

/* Next case study */
.nx {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.nx:hover { border-color: rgba(255,255,255,0.3); }
.nx-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(44px, 6vw, 96px); line-height: 0.95; }
.nx-desc { max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.nx-meta { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 8px; font-size: 16px; }
.nx-meta small { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.nx-cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 18px; font-weight: 500; }
.nx-arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f2f2f2; color: #0a0a0a; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.nx:hover .nx-arrow { transform: rotate(45deg); }

@media (max-width: 1000px) {
  .cs { padding: 20px 24px 90px; }
  .cs-head { grid-template-columns: 1fr; gap: 14px; }
  .cs-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-cards--3, .vl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg { grid-template-columns: 1fr; gap: 0; }
  .dg-lines { height: 34px; flex-direction: row; justify-content: center; }
  .dg-lines i { display: none; }
  .dg-lines::before { content: ''; width: 0; height: 100%; border-left: 1.5px dashed rgba(255,255,255,0.3); }
  .dg-lines--x::before { border-color: rgba(239,106,90,0.55); }
  .dc-trade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-head { grid-template-columns: 40px minmax(0, 1fr); }
  .fl-head p { grid-column: 2; }
}
@media (max-width: 640px) {
  .cs-cards--4, .cs-cards--3, .vl, .dc-grid, .dc-trade, .fl-pair { grid-template-columns: 1fr; }
  .im-learn ol { grid-template-columns: 1fr; }
}

/* ── Extras used by Saahas and TripLite ── */
.ph-media { margin: 8px auto 0; }
.ph-media--laptop { max-width: 640px; margin-top: 24px; }   /* smaller, so the laptop doesn't leave a screen of empty space */
.ph-media--phones { max-width: 560px; }
.ph-visit { display: inline-flex; margin-top: 20px; }

/* Saahas: old navigation diagram */
.nv { display: grid; gap: 28px; justify-items: center; }
.nv-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; border-radius: 14px; background: #1b1b1b; border: 1px solid rgba(255,255,255,0.14); }
.nv-bar span { padding: 7px 12px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.nv-bar span.is-on { background: color-mix(in srgb, var(--cs-accent) 22%, transparent); color: #fff; }
.nv-bar span.is-new { background: var(--cs-accent); color: #0a0a0a; font-weight: 600; }
.nv-bar--sm { justify-content: flex-start; }
.nv-tree { display: grid; justify-items: center; gap: 0; }
.nv-tree > i { display: block; width: 0; height: 26px; border-left: 1.5px dashed rgba(255,255,255,0.3); }
.nv-level { padding: 14px 18px; border-radius: 14px; background: #1b1b1b; border: 1px solid rgba(255,255,255,0.14); text-align: center; }
.nv-level b { display: block; font-size: 15px; font-weight: 600; }
.nv-leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border-style: dashed; border-color: rgba(239,106,90,0.6); }
.nv-leaves .dg-kicker { flex-basis: 100%; }
.nv-leaves b { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); font-size: 13px; }

/* Saahas: before / after nav, goal cards, hours */
.ba { display: grid; gap: 16px; margin-bottom: 16px; }
.ba-col { padding: 22px; border-radius: 18px; background: #141414; border: 1px solid rgba(255,255,255,0.1); }
.gl .gl-was { color: rgba(239,106,90,0.9); font-size: 14px; margin-bottom: 8px; }
.dc-hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.dc-hours div { padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,0.16); }
.dc-hours dt { font-size: 13px; color: rgba(255,255,255,0.75); }
.dc-hours dd { margin: 4px 0; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); }
.dc-hours small { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.8); }

/* TripLite: journey map */
.jr { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.jr li { position: relative; padding: 18px; border-radius: 14px; background: #1b1b1b; border: 1px solid rgba(255,255,255,0.14); }
.jr li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -12px; width: 12px; border-top: 1.5px dashed rgba(255,255,255,0.3); }
.jr li.is-low { margin-top: 36px; border-color: rgba(239,106,90,0.6); border-style: dashed; }
.jr b { display: block; font-size: 15px; font-weight: 600; margin: 6px 0; }
.jr small { display: block; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.62); }
.jr-mood { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; background: color-mix(in srgb, var(--cs-accent) 22%, transparent); color: #fff; }
.jr li.is-low .jr-mood { background: rgba(239,106,90,0.2); color: #ef6a5a; }

/* TripLite: left-out ideas, five phones */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 7px 12px; border-radius: 99px; border: 1px dashed rgba(255,255,255,0.25); font-size: 13px; color: rgba(255,255,255,0.7); }
.ph5 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ph5 .fl-shot { padding: 14px; border-radius: 20px; margin-bottom: 14px; }
.ph5 .fl-shot img { border-radius: 14px; aspect-ratio: 293 / 633; object-fit: cover; }   /* reserve the phone shape before load */
.ph5 .cs-num { margin-bottom: 4px; }
.ph5 b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ph5 p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.62); }

@media (max-width: 1000px) {
  .jr { grid-template-columns: 1fr; }
  .jr li.is-low { margin-top: 0; }
  .jr li:not(:last-child)::after { top: auto; bottom: -12px; right: auto; left: 28px; width: 0; height: 12px; border-top: 0; border-left: 1.5px dashed rgba(255,255,255,0.3); }
  .ph5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dc-hours { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ph5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Heading glow: around the cursor, the white outline takes on a colour from a
   pink → purple → orange → yellow → teal band that runs across the heading.
   How: ::after is a colour band laid over the heading with mix-blend-mode: darken.
   Darken keeps whichever is darker, so the white outline turns the band's colour,
   while the dark letter fill and the page background stay as they are. The band is
   masked to a small circle at the cursor (--gx, --gy); case-study.js moves the circle
   and sets .is-lit while the pointer is over the heading. The heading gets the page
   background so the blend has something dark to sit on inside its isolated layer. */
.h3d { justify-self: start; width: fit-content; background: #0a0a0a; }
.h3d::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #ff5fa8 0%, #a86bff 28%, #ff9b3d 55%, #ffd84a 78%, #3fd8c8 100%);
  mix-blend-mode: darken;
  -webkit-mask-image: radial-gradient(circle 150px at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
  mask-image: radial-gradient(circle 150px at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.h3d.is-lit::after { opacity: 1; transition-duration: 0.15s; }
@media (hover: none) { .h3d::after { display: none; } }

/* ── Cursor grid behind the page (same as the homepage; drawn by assets/cursorGrid.js) ── */
.page-cursor-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.page-cursor-grid .cursor-grid__canvas { display: block; width: 100%; height: 100%; }
/* The hero had a solid background that would hide the grid; the page is the same colour */
body .project-hero { background: transparent; }   /* 'body' so it beats the page's own .project-hero rule */

/* Hero → first section: only the section's own top spacing, like the gap between
   any two sections (the hero padding, summary margin and page padding used to stack up) */
body .project-hero { padding-bottom: 0; }
.ph { margin-bottom: 0; }
main.cs { padding-top: 0; }
