/* Photo magazine (Yash, 10 Oct): real company photos with captions, varied sizes, text under the
   picture, typographic cards where a company has no photo. No slabs, no chips, no repeated links. */
.m-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 28px; }
.m-item { min-width: 0; display: flex; }
.m-item.lead { grid-column: 1 / -1; }
.m-item.wide { grid-column: span 2; }
.m-card { display: flex; flex-direction: column; gap: 16px; width: 100%; color: var(--ink, #111); text-decoration: none; }
.m-photo { position: relative; margin: 0; }
.m-photo img { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; border-radius: 14px;
  background: #ececea; transition: filter .25s ease; }
.m-photo figcaption { margin-top: 8px; font-size: 12.5px; color: var(--quiet, #5a5a5a); }
.m-type { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1200 / 630;
  padding: 22px 24px; border-radius: 14px; background: #f1f1ef; box-sizing: border-box; }
.m-type b { font-family: var(--display, inherit); font-size: clamp(40px, 4.4vw, 58px); font-weight: 500; line-height: .95;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.m-type small { margin-top: 8px; font-size: 13.5px; color: var(--quiet, #5a5a5a); }
.m-logo { position: absolute; top: 20px; left: 22px; width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: #fff; padding: 4px; box-sizing: border-box; }
.m-text { display: grid; gap: 8px; }
.m-kicker { font-size: 13px; font-weight: 500; color: var(--quiet, #5a5a5a); }
.m-card .m-title { margin: 0; font-family: var(--display, inherit); font-size: 21px; line-height: 1.18; letter-spacing: -.02em;
  font-weight: 500; text-wrap: balance; }
.m-dek { margin: 0; font-size: 15px; line-height: 1.5; color: var(--quiet, #5a5a5a); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.m-card:hover .m-title, .m-card:focus-visible .m-title { text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; }
.m-card:hover .m-photo img { filter: brightness(1.05) saturate(1.05); }
.m-card:focus-visible { outline: 2px solid var(--ink, #111); outline-offset: 6px; border-radius: 14px; }

/* The cover story: picture left, headline right, set large. */
.m-item.lead .m-card { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.m-item.lead .m-photo img, .m-item.lead .m-type { aspect-ratio: 16 / 10; }
.m-item.lead .m-type b { font-size: clamp(56px, 7vw, 96px); }
.m-item.lead .m-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.m-item.lead .m-dek { font-size: 17px; -webkit-line-clamp: 4; }
.m-item.wide .m-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.m-item.wide .m-photo img { aspect-ratio: 16 / 8.4; }

/* Companies inside one raises post. */
.r-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px; align-items: start; }
@media (max-width: 640px) { .r-grid { grid-template-columns: 1fr 1fr; } }
.r-item { min-width: 0; }
.r-card { display: grid; gap: 12px; color: var(--ink, #111); text-decoration: none; }
.r-card .m-photo img { border-radius: 12px; }
.r-item:not(.has-photo) .r-card { padding-top: 14px; border-top: 2px solid var(--ink, #111); }
.r-body { display: grid; gap: 6px; }
.r-name { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; line-height: 1.25; }
.r-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line, #e4e4e4); flex: none; }
.r-amount { font-family: var(--display, inherit); font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.r-meta { font-size: 13px; color: var(--quiet, #5a5a5a); }
.r-hiring { justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: var(--ink, #111); color: #fff;
  font-size: 12px; font-weight: 600; }
.r-card:hover .r-name { text-decoration: underline; text-underline-offset: 3px; }

/* Homepage carousel. */
.feed-band { width: min(1180px, calc(100% - 32px)); margin: 56px auto 24px; }
.feed-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.feed-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.035em; font-weight: 400; }
.feed-head p { margin: 10px 0 0; color: var(--quiet); font-size: 16px; max-width: 46ch; }
.feed-ctrl { display: flex; gap: 8px; flex: none; }
.feed-ctrl button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; margin: 0; }
.feed-ctrl button:hover { border-color: var(--ink); }
.feed-ctrl button::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.feed-prev::before { transform: translateX(2px) rotate(-135deg); }
.feed-next::before { transform: translateX(-2px) rotate(45deg); }
.feed-track { list-style: none; margin: 0 -16px; padding: 4px 16px 18px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feed-track::-webkit-scrollbar { display: none; }
.feed-track > li { scroll-snap-align: start; display: flex; }
.feed-track .m-card { width: 100%; }
.feed-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }

/* The carousels' links, styled here because the homepage doesn't load the blog's chip styles. */
.feed-cta .chip { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.feed-cta .chip.solid { background: var(--ink, #111); border-color: var(--ink, #111); color: #fff; }
.feed-cta .chip:hover { opacity: .88; }
.feed-band + .feed-band { margin-top: 24px; }

@media (max-width: 900px) {
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-item.wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .m-grid { grid-template-columns: 1fr; gap: 36px; }
  .m-item.lead .m-card { grid-template-columns: 1fr; gap: 18px; }
  .feed-head { align-items: start; flex-direction: column; }
  .feed-ctrl { display: none; }
}
@media (prefers-reduced-motion: reduce) { .m-photo img { transition: none; } }

/* Funding history header: the company's picture, logo, name and the numbers that matter. */
/* The picture whole on top, the numbers in a band below: never written over (Yash, 10 Oct). */
.story-hero { overflow: hidden; margin: 0 0 32px; border-radius: var(--r, 22px); background: #111; color: #fff; }
.story-img { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.story-hero > .story-id, .story-hero > .story-stats { padding-left: 26px; padding-right: 26px; }
.story-hero > .story-id { padding-top: 24px; }
.story-hero > .story-stats { padding-top: 22px; padding-bottom: 26px; }
.story-id { display: flex; align-items: center; gap: 14px; }
.story-id b { font-family: var(--display, inherit); font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -.03em; }
.story-logo { position: relative; display: block; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #fff; flex: none; }
.story-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.story-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 22px; margin: 0; }
.story-stats dt { font-size: 12px; opacity: .7; }
.story-stats dd { margin: 4px 0 0; font-family: var(--display, inherit); font-size: 24px; letter-spacing: -.02em; }

/* "Who just raised" mosaic: one large tile in the middle, a tall and a short one each side. */
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(6, 76px); }
.bento > li { display: flex; min-width: 0; }
.bento-1 { grid-column: 2; grid-row: 1 / 7; }
.bento-2 { grid-column: 1; grid-row: 1 / 5; }
.bento-3 { grid-column: 3; grid-row: 3 / 7; }
.bento-4 { grid-column: 1; grid-row: 5 / 7; }
.bento-5 { grid-column: 3; grid-row: 1 / 3; }
.b-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; padding: 22px; border-radius: 22px; background: #f1f1ef; color: var(--ink, #111); text-decoration: none; box-sizing: border-box; }
/* A company's picture is shown whole at its own banner shape, never cropped or written on; the raise
   sits in a solid band underneath (Yash, 10 Oct: pictures didn't fit the tiles). */
.b-tile.has-photo { padding: 0; color: #fff; background: #111; justify-content: flex-start; }
.b-img { display: block; width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; flex: none;
  transition: filter .3s ease; }
.b-tile.has-photo .b-text { flex: 1; align-content: end; padding: 18px 22px 20px; }
.b-big { font-family: var(--display, inherit); font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.04em;
  line-height: 1; }
.bento-1 .b-big { font-size: clamp(48px, 5.6vw, 76px); }
.b-tile:hover .b-img { filter: brightness(1.06); }
.b-tile:focus-visible { outline: 2px solid var(--ink, #111); outline-offset: 4px; }
.b-text { display: grid; gap: 5px; }
.b-title { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.bento-1 .b-title { font-size: clamp(22px, 2.2vw, 28px); }
.b-meta { font-size: 13px; opacity: .78; }
.b-amount { margin-bottom: auto; font-family: var(--display, inherit); font-size: clamp(38px, 4vw, 56px); font-weight: 500;
  letter-spacing: -.045em; line-height: 1; padding-top: 4px; }
.b-logo { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 9px; object-fit: contain;
  background: #fff; padding: 3px; box-sizing: border-box; }
.bento-4 .b-amount, .bento-5 .b-amount { font-size: 30px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 190px; }
  .bento > li { grid-column: auto !important; grid-row: auto !important; }
  .bento-1 { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
}
@media (prefers-reduced-motion: reduce) { .b-img { transition: none; } }

/* Every raise in one ranked table. */
.r-table td, .r-table th { white-space: normal; }
.r-table .r-rank { width: 28px; color: var(--quiet, #5a5a5a); font-variant-numeric: tabular-nums; }
.r-co { display: inline-flex; align-items: center; gap: 10px; color: var(--ink, #111); text-decoration: none; font-weight: 500; }
.r-co:hover span { text-decoration: underline; text-underline-offset: 3px; }
.r-dot { width: 26px; height: 26px; border-radius: 7px; background: #f1f1ef; flex: none; }
.r-table .r-amt { font-family: var(--display, inherit); font-size: 18px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.r-table .r-hiring { margin-left: 8px; vertical-align: middle; }
@media (max-width: 640px) { .r-table th:nth-child(5), .r-table td:nth-child(5), .r-table th:nth-child(6), .r-table td:nth-child(6) { display: none; } }
.post .r-co, .live .r-co { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink, #111); }
.post .r-co .r-logo, .post .r-co .r-dot { width: 26px; height: 26px; }
.post .r-card { text-decoration: none; }

/* Newsletter sign-up. */
.news-signup { margin: 56px 0 8px; padding: 28px; border-radius: 22px; background: #111; color: #fff; }
.news-signup h2 { margin: 0 0 6px; color: #fff; font-size: 24px; }
.news-signup p { margin: 0 0 16px; color: #cfcfcb; }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input, .news-form select { height: 46px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; font-size: 15px; }
.news-form input { flex: 1 1 240px; min-width: 0; }
.news-form button { height: 46px; margin: 0; padding: 0 22px; border-radius: 999px; border: 0; background: var(--signal, #ffe14a);
  color: #111; font: inherit; font-weight: 600; cursor: pointer; }
.news-note { margin: 12px 0 0 !important; min-height: 1.2em; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
