/* Outreachable Solutions — v2. Design tokens measured from the reference site's
   computed styles: DM Sans, 60/40/24px headings at 500 weight and -2px tracking,
   1105px container with 80px gutters and 96px section rhythm, 16px card radius,
   pill buttons, light greys alternating with near-black. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Bodoni+Moda:opsz,wght@6..96,800&display=swap');

:root {
  --bg:        #f7f7f8;
  --white:     #ffffff;
  --grey:      #f0f0f2;
  --dark:      #0a0a0c;
  --dark-2:    #111113;
  --ink:       #000000;
  --muted:     #5c5c63;
  --muted-dark:#a1a1aa;
  --line:      rgba(0,0,0,.09);
  --line-dark: rgba(255,255,255,.12);
  --accent:    #b68235;

  --container: 1105px;
  --gutter:    80px;
  --section:   96px;
  --radius:    16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; padding: 0 var(--gutter); }
.inner { max-width: var(--container); margin: 0 auto; }
section { padding: var(--section) 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1 { font-size: 60px; line-height: 1.05; letter-spacing: -2px; }
h2 { font-size: 40px; line-height: 1.1;  letter-spacing: -2px; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.4px; }
h4 { font-size: 18px; line-height: 1.3;  letter-spacing: -.2px; }
p  { margin: 0; }

.center { text-align: center; }
.measure { max-width: 768px; margin-left: auto; margin-right: auto; }
.measure-800 { max-width: 800px; }
.lede { font-size: 17px; line-height: 1.6; color: var(--muted); }
.eyebrow {
  font-size: 12.8px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }

/* ---------- buttons: black pill, small text, arrow chip ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 26px; padding: 4px 4px 4px 18px;
  font-size: 13px; font-weight: 500; line-height: 1;
  border: 0; cursor: pointer; transition: opacity .18s ease;
}
.btn:hover { opacity: .82; }
.btn .chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 13px;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light .chip { background: var(--ink); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,248,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 0; }
.nav .row > .brand { justify-self: start; }
.nav .row > .btn   { justify-self: end; }
.navlinks { display: flex; align-items: center; gap: 30px; justify-self: center; }
/* The wordmark is set in the mark's own face: the OS monogram is Bodoni Moda
   ExtraBold (its O and S overlay the 800 weight at 99% and 98%). The mark leads:
   type is .68 of the mark's height, the 17px-beside-25px proportion the header
   has always used. line-height .80 puts the baseline .7656em below the text's
   top (ascent 1.13, descent .40), and the top margin drops it so the baseline
   lands where the mark's O ends, .766 of the way down; the S hangs below. */
.brand {
  --mark: 25px;
  display: inline-flex; align-items: flex-start; gap: calc(var(--mark) * .36);
  text-decoration: none; color: var(--ink);
  font-family: "Bodoni Moda", "DM Sans", serif; font-weight: 800;
  font-size: calc(var(--mark) * .68); letter-spacing: -.01em; line-height: .80; white-space: nowrap;
}
.brand img { height: var(--mark); width: calc(var(--mark) * 204 / 182); display: block; }
.brand span { margin-top: calc(var(--mark) * .766 - .7675em); }
.brand-light { color: #fff; }
.footer .brand { --mark: 32px; }
.nav .btn { white-space: nowrap; }
/* Below 760px the links can't sit between the wordmark and the button; on
   phones the lockup and button shrink to share the row. */
@media (max-width: 760px) {
  .nav .row { grid-template-columns: 1fr auto; gap: 14px; }
  .navlinks { display: none; }
}
@media (max-width: 620px) {
  .nav .btn { padding-left: 14px; gap: 8px; }
  .brand { --mark: 21px; }
  .footer .brand { --mark: 28px; }
}
@media (max-width: 380px) {
  .nav .row { gap: 10px; }
  .brand { --mark: 18px; }
}
@media (max-width: 340px) {
  .brand { --mark: 17px; }
  .nav .btn { padding-right: 14px; } .nav .btn .chip { display: none; }
}
.nav a.link { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a.link:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 64px; }
.hero h1 { margin: 0 auto 26px; max-width: 768px; }
.hero .lede { margin: 0 auto; max-width: 620px; }
.hero .cta { margin-top: 40px; display: flex; justify-content: center; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin: 52px auto 0; max-width: var(--container);
}
.stat { text-align: center; }
.stat .fig {
  font-size: 34px; font-weight: 500; letter-spacing: -1.4px; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat .cap { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- signal strip (stands in for a client-logo bar) ---------- */
.strip { background: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }


/* ---------- capability marquee ----------
   Track holds two identical runs and travels -50%, so the loop is seamless.
   Mask fades both edges; hover pauses; reduced-motion stops it entirely. */
.marquee { display: flex; align-items: center; gap: 30px; padding: 24px 0; }
.marquee .lbl {
  flex: none; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.marquee-viewport {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 93%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track span { font-size: 14px; color: rgba(0,0,0,.5); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-viewport { overflow-x: auto; }
}
@media (max-width: 620px) {
  .marquee .lbl { display: none; }
  .marquee { gap: 0; }
}

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
}
.card h4 { margin-bottom: 8px; }
.card p  { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card .idx { font-size: 12.8px; color: var(--muted); margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- dark sections ---------- */
.dark  { background: var(--dark);   color: #fff; }
.dark2 { background: var(--dark-2); color: #fff; }
.dark p, .dark2 p { color: var(--muted-dark); }
.dark .card, .dark2 .card { background: rgba(255,255,255,.06); }
.dark .card p, .dark2 .card p { color: var(--muted-dark); }
.dark .eyebrow, .dark2 .eyebrow { color: var(--accent); }

/* ---------- feature row ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; border-radius: var(--radius); display: block; }

/* ---------- example rows ---------- */
.example { background: var(--white); border-radius: var(--radius); padding: 28px; }
.example .top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.example h3 { margin-bottom: 10px; }
.example .pain { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.example .lab { font-size: 12.8px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.example .built { font-size: 15px; font-weight: 500; line-height: 1.45; margin-bottom: 16px; }
.example .sigs { display: flex; flex-wrap: wrap; gap: 7px; }
.example .sig { font-size: 12.5px; background: var(--grey); border-radius: 999px; padding: 5px 11px; color: var(--muted); }

/* ---------- steps ---------- */
.step .n { font-size: 12.8px; color: var(--muted); margin-bottom: 12px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.gate { margin-top: 14px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 72px 0 36px; }
.footer a { color: var(--muted-dark); text-decoration: none; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { margin: 0 0 14px; font-size: 12.8px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .base {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: var(--muted-dark);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  :root { --gutter: 40px; --section: 72px; }
  h1 { font-size: 44px; letter-spacing: -1.4px; }
  h2 { font-size: 32px; letter-spacing: -1.2px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats  { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .feature, .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --gutter: 22px; --section: 56px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 27px; letter-spacing: -.8px; }
  h3 { font-size: 21px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
}

/* ---------- segment tiles (icon + name + what gets built + signal chips) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.tile .name { font-size: 15.5px; font-weight: 500; letter-spacing: -.2px; margin-bottom: 9px; color: var(--ink); }
.tile .desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; flex: 1; }
.tile .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tile .chip2 {
  font-size: 11.5px; line-height: 1; padding: 6px 9px; border-radius: 6px;
  background: var(--grey); color: var(--muted); white-space: nowrap;
}
/* The video's ground is the band's colour to the pixel, edge to edge, so it has no
   visible frame: no border, no radius, no player chrome until someone presses play. */
.band-video { background: var(--dark); padding: 24px 0; }
.video-frame { position: relative; }
.band-video .explainer {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--dark);
  /* Feather the edges into the band as well, so a decoder a shade off still leaves
     no line. The bottom feathers less to keep the player controls clear. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 97%, transparent);
  mask-composite: intersect;
}
.video-frame .play {
  position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%);
  font-size: 14px; padding-left: 20px;
}
.video-frame .play .chip { font-size: 10px; padding-left: 2px; }
.video-frame.playing .play { display: none; }
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr; }
  .band-video { padding: 8px 0; }
  .video-frame .play { top: 80%; font-size: 12px; }
}

/* ---------- section grounds: alternate so cards always have contrast ----------
   .wrap must never be applied to <section> itself: a class selector beats the
   `section` element selector and silently removes the vertical rhythm. */
.sec-grey  { background: var(--grey); }
.sec-white { background: var(--white); }
.sec-white .card,
.sec-white .tile { background: var(--bg); }
.sec-grey  .card,
.sec-grey  .tile { background: var(--white); }
