/* ===========================================================
   Subpage components (fractional-cto, investors, work)

   Everything here extends the homepage system in
   components.css: same tokens, same hairline-and-mono
   language. Nothing in this file is loaded by the homepage.
   =========================================================== */

/* ===== Screen-reader-only text ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Breadcrumb ===== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.crumbs a { color: var(--faint); transition: color .2s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--contact-rule); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ===== Page hero ===== */
.page-hero__inner {
  padding-top: 48px;
  padding-bottom: 64px;
}
.page-hero .crumbs { margin-bottom: 34px; }
.page-hero__title {
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-size: clamp(34px, 4.8vw, 60px);
  margin: 22px 0 0;
  max-width: 22ch;
}
.page-hero__lead {
  margin: 26px 0 0;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.62;
  color: var(--body);
  max-width: 62ch;
}
.page-hero__inner--tight { padding-bottom: 40px; }

/* ===== Prose sections ===== */
.psec__inner { padding-top: 56px; padding-bottom: 64px; }
.psec .section-head { margin-bottom: 20px; }
.prose { max-width: 68ch; }
.prose p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
}
.prose p:last-child { margin-bottom: 0; }

/* In-copy links (also used by the homepage hero and cards) */
.prose a,
.faq__a a,
.rowlist a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(65, 56, 224, .35);
  transition: text-decoration-color .2s ease;
}
.prose a:hover,
.faq__a a:hover,
.rowlist a:hover { text-decoration-color: var(--accent); }

/* Pull quote / one-line summary */
.pull {
  font-family: var(--font-disp);
  margin: 26px 0 0;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 56ch;
}
blockquote.pull {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
blockquote.pull p { margin: 0; }

/* ===== Hairline row list (bullets, trigger lists) ===== */
.rowlist {
  margin: 8px 0 0;
  padding: 0;
  max-width: 70ch;
}
.rowlist li {
  list-style: none;
  position: relative;
  padding: 16px 0 16px 32px;
  border-top: 1px solid var(--divider);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.rowlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* ===== Comparison table ===== */
.comp-scroll {
  margin-top: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comp-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}
.comp-table th,
.comp-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px 16px 0;
  border-top: 1px solid var(--divider);
  font-size: 14.5px;
  line-height: 1.5;
}
.comp-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  border-top: none;
  padding-top: 0;
  padding-bottom: 14px;
}
.comp-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 132px;
  padding-right: 24px;
}
.comp-table td { color: var(--body); }
/* Highlighted (fractional) column */
.comp-table .comp-hl {
  background: rgba(65, 56, 224, .05);
  padding-left: 16px;
  padding-right: 16px;
}
.comp-table thead .comp-hl { color: var(--accent); }
.comp-table tbody .comp-hl { color: var(--body-alt); }
.comp-swipe {
  display: none;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 900px) {
  .comp-swipe { display: block; }
}

/* ===== FAQ ===== */
.faq { margin-top: 10px; }
.faq__item { padding: 26px 0 24px; border-top: 1px solid var(--divider); }
.faq__q {
  font-family: var(--font-disp);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0;
  max-width: 60ch;
}
.faq__a {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body);
  max-width: 66ch;
}

/* ===== Two-up mode cards (investors: before / after the cheque) ===== */
.psec .modes__grid { margin-top: 26px; }
.psec .steps { margin-top: 30px; }
.modes__grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .modes__grid--2 { grid-template-columns: 1fr; }
}

/* ===== CTA module (page end) ===== */
.ctamod__inner { padding-top: 72px; padding-bottom: 84px; }
.ctamod__lead {
  font-family: var(--font-disp);
  margin: 0;
  font-size: clamp(22px, 2.9vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: var(--ink);
  max-width: 32ch;
}
.ctamod__links {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin-top: 34px;
}
.ctamod__foot {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--footnote);
  max-width: 60ch;
}

/* ===== Case study figure ===== */
.cs-hero { padding-bottom: 64px; }
.cs-figure {
  margin: 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* Padded variant for artwork that isn't a full-bleed screenshot */
.cs-figure--pad {
  display: flex;
  justify-content: center;
  padding: 48px 24px 0;
}
.cs-figure--pad img {
  width: min(420px, 88%);
  height: auto;
}

/* Built-with + external links */
.builtwith { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--divider); max-width: 68ch; }
.builtwith__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faintest);
  margin-bottom: 14px;
}
.cs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 30px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.cs-links a { color: var(--accent); }
.cs-links a:hover .arr { transform: translate(3px, -3px); }
.cs-links__sep { color: var(--contact-rule); }

/* ===== Work index cards ===== */
.workcard {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  padding: 36px 0;
  border-top: 1px solid var(--divider);
  align-items: center;
}
.workcard__media {
  display: block;
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 16 / 10;
  transition: box-shadow .25s var(--ease);
}
.workcard__media:hover { box-shadow: var(--shadow-card); }
.workcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.workcard__media--contain img { object-fit: contain; padding: 6%; }
.workcard__result {
  font-family: var(--font-disp);
  margin: 12px 0 0;
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 30ch;
}
.workcard__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.workcard__link:hover .arr { transform: translate(3px, -3px); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .workcard { grid-template-columns: 1fr; gap: 22px; }
  .cs-figure--pad { padding: 32px 16px 0; }
}
