/* shared portfolio styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0c0c0c;
  --paper: #fafaf8;
  --line: #0c0c0c;
  --muted: #6b6b6b;
  --highlight: #e6ee4f;
  --soft: rgba(0,0,0,0.04);
  --c-yellow: #e6ee4f;
  --c-cyan: #2ec6d4;
  --c-magenta: #e8519a;
}
html, body { height: 100%; }
body {
  font-family: 'IBM Plex Mono', 'Menlo', 'Courier New', monospace;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  display: inline-block;
}
.nav a:hover { background: var(--ink); color: var(--paper); }
.nav .crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav .crumbs .sep { color: var(--muted); padding: 0 6px; }
.nav .crumbs .current { padding: 6px 10px; color: var(--muted); }
.nav .back-arrow { font-size: 16px; padding-right: 14px; }
.nav .switch { font-weight: 700; }

/* chooser */
.chooser-page { min-height: 100vh; padding: 80px 48px; display: flex; flex-direction: column; justify-content: center; }
.chooser-page .intro { max-width: 900px; margin-bottom: 56px; }
.kicker { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.chooser-page h1 { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.5px; margin-bottom: 14px; }
.chooser-page .sub { font-size: 16px; color: var(--muted); max-width: 600px; line-height: 1.6; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1200px; }
.door {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 38px 36px 36px 36px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  min-height: 290px;
  display: flex; flex-direction: column;
  font-family: inherit;
}
.door:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.door:hover .door-num { background: var(--paper); color: var(--ink); }
.door:hover .enter-mark { background: var(--highlight); color: var(--ink); }
.door-num {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  margin-bottom: 26px;
  align-self: flex-start;
}
.door h2 { font-size: 32px; line-height: 1.15; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }
.door p { font-size: 14px; line-height: 1.65; margin-bottom: 28px; opacity: 0.85; flex: 1; }
.door .enter { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.enter-mark { padding: 4px 8px; }

/* hubs */
.hub-page { padding: 48px 48px 100px 48px; }
.hub-intro { max-width: 900px; margin-bottom: 36px; }
.hub-intro h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 8px; }
.hub-intro .sub { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; max-width: 1280px; }
.tile {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 0;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: flex; flex-direction: column;
  min-height: 210px;
  font-family: inherit;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
/* colored band (uses the tile's existing meta line) */
.tile-meta {
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
  color: var(--ink); background: var(--c-yellow);
  padding: 11px 16px; border-bottom: 1.5px solid var(--ink); margin-bottom: 0;
}
/* a distinct color per box within a category (cycles after 10) */
.grid .tile:nth-child(10n+1) .tile-meta { background: #e6ee4f; color: var(--ink); }
.grid .tile:nth-child(10n+2) .tile-meta { background: #2ec6d4; color: var(--ink); }
.grid .tile:nth-child(10n+3) .tile-meta { background: #e8519a; color: #fff; }
.grid .tile:nth-child(10n+4) .tile-meta { background: #f5853f; color: var(--ink); }
.grid .tile:nth-child(10n+5) .tile-meta { background: #7bd148; color: var(--ink); }
.grid .tile:nth-child(10n+6) .tile-meta { background: #8b6df0; color: #fff; }
.grid .tile:nth-child(10n+7) .tile-meta { background: #ec5a4d; color: #fff; }
.grid .tile:nth-child(10n+8) .tile-meta { background: #4a8cf0; color: #fff; }
.grid .tile:nth-child(10n+9) .tile-meta { background: #0c0c0c; color: var(--paper); }
.grid .tile:nth-child(10n+10) .tile-meta { background: #15c39a; color: var(--ink); }
/* color tile bands by company (overrides the positional rotation) */
.grid .tile[data-co="zoominfo"] .tile-meta { background: #e6ee4f; color: var(--ink); }
.grid .tile[data-co="monday"] .tile-meta { background: #7bd148; color: var(--ink); }
.grid .tile[data-co="sagely"] .tile-meta { background: #8b6df0; color: #fff; }
.grid .tile[data-co="namogoo"] .tile-meta { background: #ec5a4d; color: #fff; }
.tile h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 18px 18px 10px; letter-spacing: -0.2px; }
.tile p { font-size: 13px; line-height: 1.55; flex: 1; opacity: 0.85; margin: 0 18px 16px; }
.tile .open {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  padding: 12px 18px; border-top: 1.5px solid var(--ink); background: var(--paper);
  transition: background 120ms ease;
}
.tile:hover .open { background: var(--highlight); color: var(--ink); }

/* agent case-study extras */
.agent-credit { display: inline-block; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 11px; margin-bottom: 18px; }
.case-shot { margin: 6px 0 10px; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: block; }
.case-shot img, .case-shot iframe { display: block; width: 100%; border: 0; }
.case-cap { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 30px; }
.shot-pair { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.shot-pair > div { flex: 1 1 320px; min-width: 280px; }
.shot-pair .case-cap { margin-bottom: 12px; }

/* larger by default: standalone shots break out of the text column */
.section > .case-shot, .project-inner > .case-shot, .section > .shot-pair, .project-inner > .shot-pair { width: clamp(100%, calc(100vw - 110px), 1100px); }

/* click-to-enlarge lightbox */
.case-shot img, .frame img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(12,12,12,0.95); display: none; z-index: 999; overflow-y: auto; padding: 34px 0 60px; cursor: zoom-out; }
.lightbox.on { display: block; }
.lightbox img { display: block; width: auto; height: auto; max-width: min(1500px, 96vw); max-height: none; margin: 0 auto; border: 1.5px solid var(--paper); box-shadow: 0 24px 90px rgba(0,0,0,0.65); background: #fff; cursor: default; }
.lightbox .lb-close { position: fixed; top: 12px; right: 22px; color: var(--paper); font-size: 32px; line-height: 1; cursor: pointer; }
.note-band { border-left: 3px solid var(--highlight); padding: 6px 0 6px 16px; font-size: 14px; line-height: 1.6; margin: 6px 0 4px; }

/* program stats (agents hub) */
.prog-eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.prog-stats .stats-bar { margin: 0 0 14px; }
.prog-stats .stat-num { font-size: 32pt; }
.disc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 38px; }
.disc-tags span { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 6px 11px; }
.disc-tags span:nth-child(1) { background: #e6ee4f; }
.disc-tags span:nth-child(2) { background: #2ec6d4; }
.disc-tags span:nth-child(3) { background: #e8519a; color: #fff; }
.disc-tags span:nth-child(4) { background: #f5853f; }

/* data-sources popover (agents hub) */
.ds-cta { position: relative; display: inline-block; margin: 12px 0 0; }
.ds-cta summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--ink); background: var(--paper); padding: 5px 10px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ds-cta summary::-webkit-details-marker { display: none; }
.ds-cta summary::after { content: '+'; font-size: 13px; line-height: 1; }
.ds-cta[open] summary { background: var(--highlight); }
.ds-cta[open] summary::after { content: '\2013'; }
.ds-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: 330px; max-width: 86vw; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 16px 18px; }
.ds-pop-h { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ds-pop ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 22px; }
.ds-pop li { font-size: 13px; padding: 5px 0; break-inside: avoid; display: flex; align-items: center; gap: 9px; }
.ds-pop li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); border: 1.5px solid var(--ink); flex: none; }

/* company filter tags (human hub) — colors match each company's card */
.co-filter span { cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.co-filter span:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.co-filter span.on { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.co-filter span.t-zi { background: #e6ee4f; color: var(--ink); }
.co-filter span.t-monday { background: #7bd148; color: var(--ink); }
.co-filter span.t-sagely { background: #8b6df0; color: #fff; }
.co-filter span.t-namogoo { background: #ec5a4d; color: #fff; }

/* project page */
.project-page { padding: 48px 48px 120px 48px; }
.project-inner { max-width: 880px; }
.project-page .kicker { margin-bottom: 14px; }
.project-page h1 { font-size: 42px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 14px; }
.project-page .project-sub { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 44px; max-width: 720px; }
.section {
  border-top: 1px solid var(--line);
  padding: 28px 0 22px 0;
}
.section:last-child { border-bottom: 1px solid var(--line); }
.section-num {
  display: inline-block;
  background: var(--highlight); color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  margin-right: 12px;
  vertical-align: middle;
}
.section h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}
.section p, .section li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 720px;
}
.section ul { padding-left: 18px; }
.section .placeholder {
  border: 1px dashed var(--muted);
  background: var(--soft);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.section .placeholder strong { color: var(--ink); }
.decision {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 18px 15px 24px;
  margin-bottom: 18px;
}
.decision::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: var(--ink);
}
.decision:nth-of-type(1)::before { background: #e6ee4f; }
.decision:nth-of-type(2)::before { background: #2ec6d4; }
.decision:nth-of-type(3)::before { background: #e8519a; }
.decision:nth-of-type(4)::before { background: #f5853f; }
.decision:nth-of-type(5)::before { background: #8b6df0; }
.decision h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.decision p { font-size: 14px; line-height: 1.6; color: #2a2a2a; margin-bottom: 0; max-width: none; }
mark {
  background-color: var(--highlight);
  padding: 1px 5px;
  font-weight: 700;
}

.viz {
  margin: 18px 0 22px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.viz h4 {
  font-size: 10pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}
.viz svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: 'IBM Plex Mono', 'Menlo', 'Courier New', monospace;
}

.frames {
  margin: 18px 0 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.frame {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.frame .frame-label {
  font-size: 10pt;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.frame .frame-label .tag {
  font-size: 9pt;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 1px;
}
.frame .frame-label.after { background: var(--highlight); }
.frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.frame .frame-caption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .frames { grid-template-columns: 1fr; }
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}
.cta-link:hover { background: var(--highlight); color: var(--ink); }
.cta-link .cta-arrow {
  font-size: 18px;
  line-height: 1;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 8px 0 36px 0;
}
.stat {
  padding: 20px 18px 18px 18px;
  background: var(--paper);
}
.stat-num {
  font-size: 26pt;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 10px;
}
.stat-num mark {
  background: var(--highlight);
  padding: 0 6px;
}
.stat-label {
  font-size: 9pt;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; }
  .chooser-page h1 { font-size: 38px; }
  .project-page h1 { font-size: 30px; }
  .nav { flex-wrap: wrap; gap: 10px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 22pt; }
}
