/* The front page: an insight platform with a dark menu on the left, a search bar, and white cards on sky blue. */

.has-app .foot { margin-top: 0; }
.has-app .foot-in { padding-top: 46px; }
.has-app .foot-cta { top: 0; margin-bottom: 0; }

.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--sky-soft); }

/* ----------------------------------------------------------- dark menu */
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; z-index: 10;
  display: flex; flex-direction: column; gap: 2px; padding: 20px 14px 18px;
  background: var(--navy-deep);
}
.side-brand { display: block; padding: 4px 12px 22px; text-decoration: none; }
.side-brand .wordmark { color: #fff; font-size: 25px; }
.side-nav { display: grid; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: #b4c6d2; text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.2;
}
.side-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.side-link.is-on { color: #fff; background: #24495f; }
.side-link.is-on .ico { color: var(--orange); }
.side-gap { flex: 1; }
.side-nav--docs p { padding: 0 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #6f8ea3; }

/* -------------------------------------------------------------- main area */
.app-main { min-width: 0; width: 100%; max-width: 1400px; margin-inline: auto; padding: 0 32px 76px; }
.app-bar { display: flex; align-items: center; gap: 14px; height: 80px; }
.app-search {
  flex: 1; max-width: 700px; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px;
  background: #fff; border: 1.5px solid #5b93b8; border-radius: 10px; box-shadow: 0 0 0 4px rgba(91, 147, 184, 0.14);
  color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden;
}
.app-search .ico { color: #5b93b8; }
.app-query { overflow: hidden; text-overflow: ellipsis; }
.app-query.is-typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--ink);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.app-ai { padding: 5px 9px; border-radius: 6px; background: rgba(253, 123, 65, 0.16); color: var(--orange-ink); font-size: 12px; font-weight: 700; line-height: 1; }
.app-me { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #fff; color: var(--navy); }
.bell i {
  position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; display: grid; place-items: center;
  background: var(--orange); color: #fff; border-radius: 10px; font: 700 11px/1 var(--sans); font-style: normal;
}
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; }

/* ------------------------------------------- the presentation: the search result */
.me { scroll-margin-top: 20px; }
.hits { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.hits b { padding: 5px 11px; border-radius: 7px; background: var(--teal-tint); color: #007a62; font-weight: 700; font-size: 13.5px; }
.me-grid {
  margin-top: 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 390px;
  grid-template-areas: "head head card" "photo body card"; gap: 0 44px; align-items: start;
  padding: 34px 36px 38px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-soft);
}
.me-head { grid-area: head; }
.me-photo { grid-area: photo; padding-top: 104px; padding-right: 20px; }
.me-body { grid-area: body; margin-top: 36px; }
.me .status { grid-area: card; margin: 0; width: auto; position: sticky; top: 20px; box-shadow: 0 24px 60px -30px rgba(19, 43, 57, 0.45), 0 0 0 1px var(--line); }
.me .title { font-size: 46px; }
.me .facts { gap: 24px; }
.me .facts span:not(.fact-ico) { white-space: normal; }
.me .fact-ico { background: var(--sky-soft); box-shadow: none; }
.me-intro { font-size: 16px; line-height: 1.62; }
.me-intro strong { color: var(--ink); }
.me-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.me-btns .btn { padding: 15px 22px; font-size: 16px; }
.me-btns .btn--white { box-shadow: inset 0 0 0 1.5px var(--line); }

/* the film, when there is one */
.vframe { position: relative; margin: 0; aspect-ratio: 16 / 9; }
.vframe-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy-deep); border-radius: 18px; }
.vframe-play { position: absolute; inset: 0; width: 100%; padding: 16px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; font: inherit; }
.vframe-play[hidden] { display: none; }
.vframe-go { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px 12px 16px; color: #fff; background: var(--orange); border-radius: 999px; font-size: 16px; font-weight: 600; }
.vframe-len { padding: 5px 11px; background: rgba(255, 255, 255, 0.92); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--navy); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.kpis li { padding: 18px 22px 17px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); }
.kpis b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--navy); }
.kpis span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* ---------------------------------------- the challenges, on a dark band */
.pains {
  margin-top: 56px; padding: 62px 56px 50px; border-radius: 28px; text-align: center; color: #fff; scroll-margin-top: 20px;
  background: radial-gradient(900px 520px at 100% 0%, rgba(59, 100, 120, 0.85), transparent 65%), linear-gradient(140deg, #132b39 0%, #1e4055 58%, #27556e 100%);
}
.pains h2 { color: #fff; font-size: 50px; line-height: 1.05; letter-spacing: -0.035em; }
.pains-lead { max-width: 740px; margin: 16px auto 0; font-size: 17.5px; line-height: 1.6; color: #a3bac9; }
.pains-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 42px; text-align: left; }
.pains-cards li { padding: 24px 24px 26px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.pains-cards h3 { color: #fff; font-size: 17.5px; line-height: 1.25; }
.pains-cards p { margin-top: 12px; font-size: 14.5px; line-height: 1.62; color: #a3bac9; }
.pains-end { margin-top: 38px; font-size: 19px; color: #a3bac9; }
.pains-end b { color: #fff; }

/* ----------------------------------------------------------- the projects */
.block { margin-top: 70px; scroll-margin-top: 20px; }
.block-head h2 { font-size: 42px; line-height: 1.05; letter-spacing: -0.035em; }
.block-head p { margin-top: 8px; font-size: 16.5px; color: var(--muted); }
.shelf-h { display: flex; align-items: center; gap: 18px; margin-top: 36px; font-size: 21px; line-height: 1.2; }
.shelf-h::after { content: ""; flex: 1; height: 1px; background: #c9dae6; }
.shelf-h + .cards { margin-top: 18px; }
.name-arrow { margin-top: -3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 20px;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-soft); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pcard:not(.pcard--still):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky); }
.pcard-pic img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; }
.pcard-draw { display: grid; place-items: center; width: 100%; height: 100%; }
.pcard-draw--sky { background: var(--sky); }
.pcard-draw--orange { background: var(--orange); }
.pcard-draw--navy { background: var(--navy); background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 2px); background-size: 22px 22px; }
.pcard-draw--peach { background: var(--peach); }
.pcard-draw--orange { background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 2px); background-size: 22px 22px; }
.pcard-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 20px 22px 18px; }
.pcard-tag { font-size: 13px; font-weight: 600; color: var(--orange-ink); }
.pcard h3 { margin-top: 3px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.pcard h3 a { text-decoration: none; }
/* the name's link is stretched over the whole lower half, so a click anywhere on the card leads to the project */
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pcard-text { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.pcard-foot b { font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.pcard-go { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--sky); color: var(--navy); transition: background-color 0.15s ease, color 0.15s ease; }
.pcard:hover .pcard-go { background: var(--orange); color: #fff; }
/* a venture that has closed: the picture fades, and it gets a stamp */
.pcard--closed .pcard-pic img { filter: grayscale(1); opacity: 0.5; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 8px 18px 7px; background: rgba(255, 255, 255, 0.94); color: var(--orange-ink); white-space: nowrap;
  border: 3px solid var(--orange); border-radius: 10px; font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ------------------------------------------------------ match and next steps */
.card { padding: 30px 30px 26px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-soft); scroll-margin-top: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-head h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.card-head p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.card-head > a { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pair { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 70px; }
.match { display: grid; gap: 15px; margin-top: 20px; }
.match li { display: flex; align-items: flex-start; gap: 12px; }
.match .tick { margin-top: 1px; }
.match b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.match span:not(.tick) { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; }
.actions { margin-top: 12px; }
.actions a { display: flex; align-items: center; gap: 14px; margin: 0 -10px; padding: 11px 10px; border-radius: 12px; text-decoration: none; }
.actions li + li { border-top: 1px solid var(--line); }
.actions a:hover { background: var(--sky-soft); }
.actions b { display: block; font-weight: 600; line-height: 1.3; color: var(--ink); }
.actions small { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ------------------------------------------------------------ why me */
.why { margin-top: 70px; padding: 58px 48px 54px; background: var(--sky); border-radius: 28px; text-align: center; scroll-margin-top: 20px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); }
.why h2 { margin-top: 10px; font-size: 54px; line-height: 1.05; letter-spacing: -0.035em; }
.why-lead { max-width: 760px; margin: 16px auto 0; font-size: 18px; line-height: 1.6; }
.why-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.why-cards li { padding: 34px 24px 32px; background: var(--navy); border-radius: 26px; color: #fff; box-shadow: 0 24px 44px -26px rgba(19, 43, 57, 0.7); }
.why-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--orange); }
.why-cards h3 { margin-top: 18px; color: #fff; font-size: 20px; line-height: 1.2; }
.why-cards p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #c3d2dc; }
.why-end { margin-top: 36px; font-size: 19px; font-weight: 600; color: var(--ink); }
.why-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ------------------------------------------------------------ narrower */
@media (max-width: 1360px) {
  .me-grid { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "head head" "photo body" "card card"; }
  .me .status { position: static; width: min(520px, 100%); margin-top: 34px; }
  .why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .pains-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .me-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "head" "body" "card"; }
  .me-photo { width: min(260px, 72%); margin: 0 auto 30px; padding-right: 0; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .app-main { padding: 0 14px 56px; }
  .app-bar { height: auto; padding: 14px 0 12px; flex-wrap: wrap; }
  .app-search { order: 2; flex-basis: 100%; max-width: none; height: 46px; font-size: 14px; padding: 0 14px; }
  .app-ai { display: none; }
  .app-me { margin-left: auto; }
  .hits { flex-direction: column; align-items: flex-start; gap: 6px; }
  .me-grid { padding: 22px 18px 26px; border-radius: 20px; }
  .me-photo { padding-top: 0; }
  .me .title { font-size: 36px; }
  .me .facts { gap: 10px; justify-content: space-between; }
  .me .facts li { min-width: 0; flex: 1; }
  .me .status { width: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpis li { padding: 14px 14px 13px; }
  .kpis b { font-size: 30px; }
  .kpis span { font-size: 13px; }
  .pains { margin-top: 40px; padding: 40px 18px 34px; border-radius: 22px; }
  .pains h2 { font-size: 36px; }
  .pains-lead { font-size: 16px; }
  .pains-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .pains-end { font-size: 16.5px; }
  .block { margin-top: 52px; }
  .block-head h2 { font-size: 34px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .pcard-body { padding: 18px 18px 16px; }
  .stamp { font-size: 22px; }
  .card { padding: 22px 18px 20px; }
  .card-head h2 { font-size: 26px; }
  .pair { margin-top: 52px; }
  .why { margin-top: 52px; padding: 40px 16px 36px; border-radius: 22px; }
  .why h2 { font-size: 38px; }
  .why-lead { font-size: 16.5px; }
  .why-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .why-cards li { padding: 26px 20px 24px; border-radius: 20px; }
  .has-app .foot-in { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .btn { transition: none; }
  .app-query.is-typing::after { animation: none; }
}
