/* Project Intelligence: page-local styles (the kit owns everything else) */

.crumb { color: inherit; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.pi-h1 { max-width: 15em; }

/* (01) */
.scatter-pills { margin: 32px 0 26px; }

/* (02) beat captions: the visible, no-JS summary of the graph */
.beats { list-style: none; margin: clamp(48px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--ink); }
.beats li { padding: 18px 12px 0 0; }
.beats .num { display: block; margin-bottom: 10px; }
.beats p { font-size: 15px; line-height: 1.45; letter-spacing: -.005em; max-width: 19em; }
.sec--pregraph { padding-bottom: 0; }
.sec--graph { padding-top: 0; }
.graph-foot { margin-top: 28px; }

/* (03) */
.review-pills { margin-top: 36px; }

/* (04) one document, two projects */
.reuse { position: relative; margin: 0; height: clamp(300px, 26vw, 380px); align-self: center; }
.reuse__lines { position: absolute; left: 32%; top: 0; width: 34%; height: 100%; overflow: visible; }
.reuse__lines path { fill: none; stroke: #BEB8AD; stroke-width: 1; vector-effect: non-scaling-stroke; }
.reuse__doc, .reuse__p { position: absolute; background: var(--paper-2); border: 1px solid var(--hair-2); padding: 10px 12px 12px; font-size: 12px; }
.reuse__doc { left: 0; top: 50%; width: 32%; transform: translateY(-50%); }
.reuse__p { left: 66%; width: 34%; border-color: var(--accent); }
.reuse__p--1 { top: 18%; transform: translateY(-50%); }
.reuse__p--2 { top: 82%; transform: translateY(-50%); }
.reuse .rk { display: flex; align-items: center; gap: 7px; font: 500 9.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.reuse .rk--p { color: var(--accent); }
.reuse .ric { display: inline-block; width: 8px; height: 10px; border: 1px solid currentColor; border-radius: 1px; }
.reuse .ric--p { width: 11px; height: 8px; border-top-width: 2.5px; }
.reuse .rt { margin-top: 8px; font-weight: 500; font-size: 13.5px; line-height: 1.28; letter-spacing: -.01em; }
.reuse .rm { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.reuse .rm span:last-child { color: var(--ink); }
.reuse__chip { position: absolute; left: 54%; transform: translate(-50%, calc(-100% - 6px)); white-space: nowrap; font: 400 10.5px/1.1 var(--f-sans); color: var(--muted); }
.reuse__chip--1 { top: 18%; }
.reuse__chip--2 { top: 82%; }
.reuse .tag { position: absolute; left: 0; bottom: -36px; }

/* (05) */
.find-frame { margin-top: clamp(40px, 4vw, 64px); }


/* (07) the CTA sentence is long, so it runs one size smaller than the kit default */
.pi-cta { font-size: clamp(46px, 5.6vw, 108px); max-width: 15em; }
.cta-foot { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: 12px; }
.also { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.also .link { color: var(--ink); }

/* (06) AI discovery */
.dc { position: relative; margin: clamp(48px, 5vw, 72px) 0 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.dc__panel { background: var(--paper-2); border: 1px solid var(--hair-2); border-top: 2px solid var(--ink); padding: 20px 22px 22px; font-size: 13px; }
.dc__title { font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.dc__tabs { display: flex; margin-top: 14px; border-bottom: 1px solid var(--hair-2); }
.dc__tabs span { padding: 8px 12px 9px 0; margin-right: 14px; font-size: 12.5px; color: var(--muted); }
.dc__tabs .is-sel { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.dc__ex { position: relative; margin-top: 16px; min-height: 76px; display: grid; }
.dc__ex > * { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.dc__empty { align-self: center; justify-self: center; font: 400 12px/1.3 var(--f-mono); color: var(--muted); border: 1px dashed var(--hair-2); width: 100%; text-align: center; padding: 26px 0; opacity: 0; }
.dc__chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.dc__chip { display: inline-flex; align-items: center; padding: 6px 10px 5px; border: 1px solid var(--ink); background: var(--paper); font: 400 12px/1.2 var(--f-mono); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.dc__chip--2 { transition-delay: .18s; }
.dc__go { margin-top: 14px; }
.dc__go span { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; font-weight: 500; font-size: 12.5px; background: var(--ink); color: var(--paper); transition: background-color .45s var(--ease), transform .3s var(--ease); }
.dc__hint { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.dc__hint + .dc__hint { margin-top: 4px; }
.dc__res { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; min-height: 100%;
  background: radial-gradient(circle, #D3CDC2 1px, transparent 1.3px) 0 0 / 18px 18px; overflow: hidden; }
/* the section's one light: a soft scan passes over the results once */
.dc__scan { position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(194, 73, 46, 0), rgba(194, 73, 46, .14), rgba(194, 73, 46, 0)); }
.dc.s3:not(.s4) .dc__scan { animation: dc-scan 1.4s var(--ease) both; }
@keyframes dc-scan { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(440%); } }
.dc__card { position: relative; align-self: start; background: var(--paper-2); border: 1px solid var(--ink); padding: 14px 14px 14px; font-size: 12.5px; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .5s var(--ease); }
.dc__card--2 { border: 1px dashed var(--accent); margin-top: 44px; transition-delay: .25s; }
.dc__ai { position: relative; display: inline-grid; font: 500 10px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.dc__ai > b { grid-area: 1 / 1; justify-self: start; font-weight: 500; padding: 4px 7px 3px 18px; border: 1px solid var(--ink); transition: opacity .45s var(--ease); }
.dc__ai i { position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); z-index: 1; transition: transform .45s var(--ease); }
.dc__ai-a { color: var(--accent); border-style: dashed !important; border-color: var(--accent) !important; opacity: 0; }
.dc__card--1 .dc__ai i { transform: scale(0); }
.dc__card--1 .dc__ai-b { padding-left: 7px; }
.dc__card--2 .dc__ai-a { opacity: 1; }
.dc__t { margin-top: 12px; font-weight: 500; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
.dc__e { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc__lab { padding: 3px 7px; border: 1px solid var(--ink); font-size: 11px; background: var(--paper); }
.dc__card--2 .dc__lab { border: 1px dashed var(--accent); }
.dc__to { font: 400 11px/1.2 var(--f-mono); color: var(--muted); }
.dc__to::before { content: "→ "; color: var(--ink); }
.dc__btns { display: flex; gap: 6px; margin-top: 12px; }
.dc__btns span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-weight: 500; font-size: 11.5px; border: 1px solid var(--ink); transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease); }
.dc__acc { background: var(--accent); border-color: var(--accent) !important; color: var(--paper); }
.dc__acc--idle { background: var(--ink); border-color: var(--ink) !important; }
.dc__rej { color: var(--muted); border-color: var(--hair-2) !important; }
.dc .tag { grid-column: 1 / -1; }
.disc-small { margin-top: 28px; }
/* initial states while the sequence plays (final state is the default) */
.dc.seq:not(.s1) .dc__empty { opacity: 1; }
.dc.seq:not(.s1) .dc__chip { opacity: 0; transform: translateY(6px); }
.dc.seq.s2:not(.s3) .dc__go span { transform: scale(.96); background: var(--accent); }
.dc.seq:not(.s4) .dc__card { opacity: 0; transform: translateY(14px); }
.dc.seq:not(.s6) .dc__card--1 { border: 1px dashed var(--accent); }
.dc.seq:not(.s6) .dc__card--1 .dc__lab { border: 1px dashed var(--accent); }
.dc.seq:not(.s6) .dc__card--1 .dc__ai-a { opacity: 1; }
.dc.seq:not(.s6) .dc__card--1 .dc__ai-b { opacity: 0; }
.dc.seq:not(.s6) .dc__card--1 .dc__ai i { transform: none; }
.dc.seq:not(.s6) .dc__card--1 .dc__acc { background: var(--ink); border-color: var(--ink) !important; }
.dc.seq.s5:not(.s6) .dc__card--1 { box-shadow: 0 0 0 1.5px var(--accent); }
.dc.seq.s5:not(.s7) .dc__card--2 { opacity: .35; }

@media (max-width: 1300px) {
  .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 1000px) {
  .js .beats { display: none; }  /* with JS the list view narrates each connection; without JS the summary stays */
  .beats { grid-template-columns: 1fr; row-gap: 0; }
  .beats li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .reuse { margin-top: 48px; }
  .dc { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .reuse { height: 300px; margin: 40px 0 56px; }
  .reuse__doc { width: 38%; }
  .reuse__p { left: 56%; width: 44%; }
  .reuse__lines { left: 38%; width: 18%; }
  .reuse__chip { display: none; }
  .pi-cta { font-size: clamp(36px, 9.6vw, 48px); }
  .dc__res { grid-template-columns: 1fr; padding: 14px; }
  .dc__card--2 { margin-top: 0; }
  .dc__panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc * { transition: none !important; animation: none !important; }
}

/* accepted card: the decision buttons give way to a quiet recorded line */
.dc__end { display: grid; margin-top: 12px; }
.dc__end > * { grid-area: 1 / 1; margin-top: 0; transition: opacity .45s var(--ease); }
.dc__card--1 .dc__btns { opacity: 0; visibility: hidden; }
.dc__rec { display: flex; align-items: center; gap: 8px; align-self: center; font: 400 11px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dc__rec i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.dc__rec i::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 3px; height: 6px; border: solid var(--paper); border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); }
.dc.seq:not(.s6) .dc__card--1 .dc__btns { opacity: 1; visibility: visible; }
.dc.seq:not(.s6) .dc__card--1 .dc__rec { opacity: 0; }
