/* =====================================================================
   USE-CASE TEMPLATE — reusable sub-page for case studies.
   Structure: fixed canvas background (hero gradient + cross grid)
   → parallax decor layer (design / AI nodes, data-depth)
   → Figma-frame sections (.frame) joined by prototype connectors
   → footer.
   To make a new case: copy this file, swap the copy / images inside
   each .frame, keep the .slot / .frame / .el structure so the
   connector + parallax JS keeps working.
   ===================================================================== */
:root {
  --violet: #a259ff;
  --blue: #0d99ff;
  --pale: #9cc6ff;
  --fg: #ffffff;
  --frame-w: 780px;
  --gutter: 40px;
  --gx: 0px;
  --gy: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.font-display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Canvas background: hero gradient + "+" cross grid ---------- */
.canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(162, 89, 255, 0.07), transparent 70%),
    linear-gradient(to bottom, #1c1c1c 0%, #0e0e0f 50%, #050505 100%);
}
.canvas-bg::before {
  content: "";
  position: absolute;
  inset: -88px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><g stroke='rgba(255,255,255,0.18)' stroke-width='0.6' stroke-linecap='round'><line x1='22' y1='18' x2='22' y2='26'/><line x1='18' y1='22' x2='26' y2='22'/></g></svg>");
  background-size: 44px 44px;
  background-repeat: repeat;
  transform: translate3d(var(--gx), var(--gy), 0);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, rgba(0,0,0,0.35) 100%);
          mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, rgba(0,0,0,0.35) 100%);
}
@media (max-width: 767px) {
  .canvas-bg::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'><g stroke='rgba(255,255,255,0.18)' stroke-width='0.6' stroke-linecap='round'><line x1='17' y1='13.5' x2='17' y2='20.5'/><line x1='13.5' y1='17' x2='20.5' y2='17'/></g></svg>");
    background-size: 34px 34px;
  }
}

/* ---------- Nav pill (same liquid-glass recipe as index.html) ---------- */
#nav-pill {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}
.glass-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(10, 10, 14, 0.55), rgba(8, 8, 12, 0.42) 50%, rgba(10, 10, 14, 0.55));
  -webkit-backdrop-filter: blur(3px) saturate(180%);
          backdrop-filter: url(#liquid-glass-strong) blur(1px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -8px 14px rgba(0, 0, 0, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.glass-nav > * { position: relative; z-index: 4; }
.glass-rim {
  position: absolute; inset: 0; border-radius: 999px; padding: 1.6px; pointer-events: none; z-index: 5;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
          mask-composite: exclude;
  -webkit-backdrop-filter: brightness(1.15) saturate(1.2);
          backdrop-filter: url(#spectral-rim);
}
.glass-sheen {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none; z-index: 6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 60%);
}
@supports not (backdrop-filter: url(#liquid-glass-strong)) {
  .glass-nav { -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); }
}
.nav-brand {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 17px; color: #fff;
}
.nav-brand img { height: 20px; width: auto; }
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-chat {
  color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: 999px; transition: color 200ms ease;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
}
.nav-links a:hover, .nav-chat:hover { color: #fff; }
.nav-chat { display: inline-flex; padding: 4px; }
@media (max-width: 767px) {
  .nav-links, .nav-sep.desk { display: none; }
  .nav-brand { font-size: 15px; }
}

/* ---------- Click blink (site-wide rule: ring on press) ---------- */
.blink { animation: blink 500ms ease-out; }
@keyframes blink {
  from { box-shadow: 0 0 0 0 rgba(162, 89, 255, 0.55); }
  to   { box-shadow: 0 0 0 8px rgba(162, 89, 255, 0); }
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- Canvas layout ---------- */
.canvas { position: relative; z-index: 1; padding: 150px 0 120px; }
.frames { position: relative; }
.slot {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
}
.slot + .slot { margin-top: 150px; }
.slot--left  { justify-content: flex-start; }
.slot--right { justify-content: flex-end; }
@media (max-width: 1023px) {
  .canvas { padding-top: 120px; }
  .slot { padding: 0 24px; justify-content: center; }
  .slot + .slot { margin-top: 110px; }
}

/* ---------- Figma frame (one per section) ---------- */
.frame {
  --sel: var(--violet);
  position: relative;
  width: min(100%, var(--frame-w));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(70% 50% at 20% 0%, rgba(162, 89, 255, 0.07), transparent 60%),
    linear-gradient(160deg, rgba(22, 22, 25, 0.96), rgba(9, 9, 11, 0.97));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 44px 48px 48px;
}
.frame--wide { --frame-w: 980px; }
@media (max-width: 767px) { .frame { padding: 28px 22px 30px; } }
/* Selection bounds: Figma draws a rectangle around the bounds, no radius. */
.frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  outline: 1px solid rgba(162, 89, 255, 0.30);
  pointer-events: none;
  transition: outline-color 200ms ease;
}
.frame-name {
  position: absolute;
  top: -24px;
  left: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  pointer-events: none;
  transition: color 200ms ease;
}
.frame-name svg { width: 11px; height: 11px; opacity: 0.8; }
.frame-badge {
  position: absolute;
  top: -22px;
  right: -1px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--sel);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.fh {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1px solid var(--sel);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 200ms ease;
}
.fh.tl { top: -5px; left: -5px; }   .fh.tr { top: -5px; right: -5px; }
.fh.bl { bottom: -5px; left: -5px; } .fh.br { bottom: -5px; right: -5px; }
.fh.tm { top: -5px; left: 50%; transform: translateX(-50%); }
.fh.bm { bottom: -5px; left: 50%; transform: translateX(-50%); }
.fh.ml { top: 50%; left: -5px; transform: translateY(-50%); }
.fh.mr { top: 50%; right: -5px; transform: translateY(-50%); }
@media (max-width: 767px) { .fh.tm, .fh.bm, .fh.ml, .fh.mr { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .frame:hover::before { outline-color: var(--sel); }
  .frame:hover .frame-name { color: var(--sel); }
  .frame:hover .frame-badge, .frame:hover .fh { opacity: 1; }
}

/* ---------- Inner elements (text / image / video / metric blocks) ---------- */
.el { position: relative; }
.el::before {
  content: "";
  position: absolute;
  inset: -8px;
  outline: 1px solid rgba(162, 89, 255, 0);
  pointer-events: none;
  transition: outline-color 200ms ease;
  z-index: 2;
}
.el::after {
  content: attr(data-type);
  position: absolute;
  top: -24px;
  left: -8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--violet);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2;
}
.el--media::before { inset: 0; outline-color: rgba(162, 89, 255, 0.28); }
.el--media::after { top: -18px; left: 0; opacity: 0.55; }
@media (hover: hover) and (pointer: fine) {
  .el:hover::before { outline-color: var(--violet); }
  .el:hover::after { opacity: 1; }
}

/* ---------- Typography inside frames ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}
.eyebrow .idx { color: var(--violet); }
.frame h1 { font-size: clamp(44px, 6vw, 84px); margin: 0 0 18px; }
.frame h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 18px; }
.frame h3 { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 20px; line-height: 1.45; color: rgba(255,255,255,0.85); margin: 0 0 28px; max-width: 40rem; }
.frame p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.70); margin: 0 0 16px; }
.frame p:last-child { margin-bottom: 0; }
.frame ul { padding-left: 18px; margin: 0; color: rgba(255,255,255,0.70); line-height: 1.6; }
.frame li + li { margin-top: 6px; }
.cols { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* Meta grid (hero) */
.meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.meta dt { color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.85); }
@media (max-width: 767px) { .meta { grid-template-columns: repeat(2, 1fr); } }

/* Headline metric */
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-value { font-size: clamp(44px, 5vw, 64px); color: #fff; }
.metric-value em { font-style: normal; color: var(--violet); }
.metric-label { color: rgba(255,255,255,0.55); }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
@media (max-width: 767px) { .metric-row { grid-template-columns: 1fr; } }

/* Media blocks */
.media {
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0b;
  border: 1px solid rgba(255,255,255,0.08);
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--cover { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 4 / 3; }
.media--video { aspect-ratio: 16 / 9; position: relative; }
.media--video video { aspect-ratio: 16 / 9; }
.media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: end; margin-top: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Evidence / callout cards */
.card {
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}
.card .idx { display: block; color: var(--violet); margin-bottom: 10px; }
.card p { font-size: 15px; }
.quote { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.85); margin: 0 0 10px; }
.quote::before { content: "\201C"; color: var(--violet); }
.quote::after { content: "\201D"; color: var(--violet); }
.cite { font-size: 12px; color: rgba(255,255,255,0.45); }
.stack { display: grid; gap: 16px; }
.decision { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.decision:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.decision .idx { color: var(--violet); padding-top: 4px; }
@media (max-width: 767px) { .decision { grid-template-columns: 1fr; gap: 8px; } }

/* Pills (constraints, tags) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
  font-size: 13px; color: rgba(255,255,255,0.85);
}
.pill i { width: 6px; height: 6px; border-radius: 999px; background: var(--violet); }

/* Table (goals, results) */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; padding: 0 12px 12px 0; color: rgba(255,255,255,0.45); font-weight: 500; }
td { padding: 14px 12px 14px 0; border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); vertical-align: top; line-height: 1.45; }
td.num { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
td.num.up { color: var(--violet); }
.table-wrap { overflow-x: auto; }

/* Component states demo (design system section) */
.states { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.state { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.state span { font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.12em; text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.btn-demo {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff;
  background: var(--violet); border: 1px solid rgba(255,255,255,0.12); cursor: default; white-space: nowrap;
  font-family: inherit;
}
.btn-demo--hover { background: #b170ff; box-shadow: 0 6px 18px rgba(162,89,255,0.35); }
.btn-demo--press { background: #8f45ea; transform: translateY(1px); }
.btn-demo--focus { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--violet); }
.btn-demo--disabled { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.btn-demo--loading { display: inline-flex; gap: 8px; align-items: center; }
.btn-demo--loading::before { content: ""; width: 10px; height: 10px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Timeline (validation) */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,0.10); }
.t-item { position: relative; padding-top: 24px; }
.t-item::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 999px; background: #0b0b0c; border: 2px solid var(--violet); }
.t-item .idx { display: block; color: var(--violet); margin-bottom: 8px; }
@media (max-width: 767px) { .timeline { grid-template-columns: 1fr; } .timeline::before { display: none; } }

/* Ship / cut lists */
.ship li::marker { color: #22c55e; }
.cut li::marker { color: rgba(255,255,255,0.35); }
.cut li { color: rgba(255,255,255,0.5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85); transition: border-color 200ms ease, color 200ms ease;
  font-size: 14px;
}
.btn:hover { border-color: var(--violet); color: #fff; }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--primary:hover { background: #b170ff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Prototype connectors between frames ---------- */
.connectors {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 5;
}
.cx-path { fill: none; stroke: var(--pale); stroke-width: 1.5; opacity: 0.35; transition: opacity 200ms ease; }
.cx-dot { fill: #5f6874; stroke: #37526e; stroke-width: 1.5; transition: fill 200ms ease, stroke 200ms ease; }
.cx-arrow { fill: none; stroke: var(--pale); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.35; transition: opacity 200ms ease; }
.cx-label rect { fill: #16344d; transition: fill 200ms ease; }
.cx-label text { fill: rgba(255,255,255,0.55); font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; transition: fill 200ms ease; }
.cx-label .k { font-weight: 500; }
.cx.is-active .cx-path, .cx.is-active .cx-arrow { opacity: 1; }
.cx.is-active .cx-dot { fill: #fff; stroke: var(--pale); }
.cx.is-active .cx-label rect { fill: var(--blue); }
.cx.is-active .cx-label text { fill: #fff; }
@media (max-width: 1023px) { .cx-label { display: none; } }

/* ---------- Parallax decor (design + AI nodes) ---------- */
.decor { position: absolute; inset: 0; pointer-events: none; user-select: none; z-index: 0; }
.d {
  position: absolute;
  will-change: transform;
  white-space: nowrap;
}
.d[data-depth="0.25"] { opacity: 0.38; filter: blur(0.7px); }
.d[data-depth="0.55"] { opacity: 0.6; }
.d[data-depth="1"]    { opacity: 0.8; }
.d-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: #1e1e21; border: 1px solid #2f2f34;
  font-size: 11.5px; font-weight: 600; color: #e5e5e5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.d-chip i { width: 7px; height: 7px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.d-chip i.v { background: var(--violet); box-shadow: 0 0 6px rgba(162,89,255,0.7); }
.d-chip i.a { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.7); }
.d-chip i.b { background: var(--blue); box-shadow: 0 0 6px rgba(13,153,255,0.7); }
.d-chip small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; font-weight: 400; color: #7a7a7a; }
.d-chip .dia { color: var(--violet); font-size: 10px; }
.d-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}
.d-tag b { color: var(--violet); font-weight: 500; }
.d-swatches { display: flex; gap: 6px; }
.d-swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.12); }
.d-card {
  width: 236px; white-space: normal;
  background: #1c1c1e; border: 1px solid #2f2f32; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5); color: #e5e5e5; overflow: hidden; font-size: 11px;
}
.d-card-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #2b2b2e; font-size: 10.5px; color: #c9c9c9; }
.d-card-head b { font-weight: 600; }
.d-card-head small { margin-left: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9.5px; color: #7a7a7a; }
.d-card-body { padding: 8px 10px 10px; line-height: 1.45; color: #dedede; }
.d-tool { margin-top: 8px; background: #26262a; border: 1px solid #34343a; border-radius: 6px; padding: 6px 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: #cfcfcf; }
.d-tool div { display: flex; gap: 6px; align-items: center; margin-top: 3px; font-family: 'Inter', system-ui, sans-serif; color: #b6b6b6; }
.d-tool .ok { color: #86efac; }
.d-tool .run { color: #fde68a; }
.d-layers {
  width: 190px; padding: 8px 10px; border-radius: 8px;
  background: #1c1c1e; border: 1px solid #2f2f32; box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  font-size: 11px; color: #cfcfcf; white-space: normal;
}
.d-layers div { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.d-layers div.sel { color: #fff; background: rgba(162,89,255,0.22); margin: 0 -6px; padding: 3px 6px; border-radius: 4px; }
.d-layers svg { width: 10px; height: 10px; opacity: 0.7; flex: none; }
.d-layers .in1 { padding-left: 14px; } .d-layers .in2 { padding-left: 28px; }
.d-layers .in1.sel { padding-left: 20px; } .d-layers .in2.sel { padding-left: 34px; }
.d-pin { display: flex; align-items: flex-start; gap: 8px; }
.d-pin-mark {
  width: 30px; height: 30px; border-radius: 15px 15px 15px 2px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45); flex: none;
}
.d-pin-mark span { width: 22px; height: 22px; border-radius: 999px; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.d-pin-card { background: #fff; color: #111; border-radius: 10px; padding: 8px 10px; width: 200px; white-space: normal; font-size: 11.5px; line-height: 1.4; box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.d-pin-card b { display: block; font-size: 12px; }
.d-pin-card small { color: #777; font-size: 10.5px; }
.d-cluster { width: 300px; height: 120px; }
.d-cluster svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.d-cluster .d-chip { position: absolute; }
@media (max-width: 1023px) {
  .d { display: none; }
  .d.keep { display: inline-flex; }
  .d[data-depth="1"] { opacity: 0.5; }
}

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter) 60px;
}
.foot-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 40px; }
.foot-copy { color: rgba(255,255,255,0.35); text-align: center; }
@media (max-width: 767px) { .foot { padding: 0 24px 40px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d { transform: none !important; }
  .btn-demo--loading::before { animation: none; }
}

/* ---------- "Needs input" marker ----------
   Visible placeholder for content the case author still has to supply.
   Grep for class="todo" to find every open item on a page. */
.todo {
  display: inline-block;
  padding: 7px 11px;
  border: 1px dashed rgba(162, 89, 255, 0.6);
  border-radius: 6px;
  background: rgba(162, 89, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.45;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.todo::before {
  content: "Needs input · ";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.todo--block { display: block; }
.frame p.todo { color: rgba(255, 255, 255, 0.6); }
.media .todo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; text-align: center; }
.media--todo { position: relative; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px), #0a0a0b; }

/* ---- Mobile: no side-scroll (Igor, 2026-09-07: "case study page is not
   mobile friendly, whole page has a side-scroll"). The kept decor items
   (`.d.keep`, e.g. the Claude card at left: 79 % of the slot) ran ~160 px
   past a 375 px viewport and the browser widened the page to fit. Two
   guards: horizontal overflow is CLIPPED at the root (clip, not hidden:
   iOS ignores overflow-x: hidden for touch panning), and on small screens
   the kept decor is re-anchored inside the viewport. ---- */
html, body { overflow-x: clip; }
@media (max-width: 1023px) {
  .decor .d.keep {
    left: auto !important;
    right: 12px !important;
    max-width: min(60vw, 240px);
  }
  .decor .d-card.keep .d-card-body { white-space: normal; }
}
