/* Inter, latin subset only (the one maxscale.ai preloads). Variable weight
   100-900, so one 47 KB file covers every weight used here. Self-hosted, so
   still no third-party request and nothing to add to the CSP.
   Metric-matched Arial fallback avoids a reflow while it loads. */
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter fallback';
  src: local('Arial');
  font-display: swap;
  font-weight: 100 900;
  size-adjust: 107.1194%;
  ascent-override: 90.4365%;
  descent-override: 22.518%;
  line-gap-override: 0%;
}

/* Scale Company — scale-company.com
   Hand-written, no build step. Shares the brand mint with maxscale.ai and
   diverges on the secondary: indigo and magenta rather than navy and gold.
   Inter is self-hosted (same file maxscale.ai serves) — no third-party
   request, nothing to allow in the CSP, and no cookies anywhere. */

:root {
  --indigo-900: #14093d;
  --indigo-800: #1a0c50;
  --indigo-700: #232874;
  --indigo-500: #3b2ea7;
  --mint: #3cf59f;
  --magenta: #f345f5;
  --paper: #f5fffe;
  --muted: #b9b4d8;
  --radius: 14px;
  --sans:
    Inter, 'Inter fallback', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Sticky footer: these pages are short, so without this the footer floats
     mid-screen on a tall viewport with dead space beneath it. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: var(--indigo-900);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60% 50% at 20% 0%, rgb(59 46 167 / 45%), transparent 70%),
    radial-gradient(50% 40% at 90% 10%, rgb(243 69 245 / 14%), transparent 70%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}
.site-header img {
  height: 1.6rem;
  width: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--mint);
  color: #0c2a1c;
}
.btn-primary:hover {
  background: #63f7b3;
}
.btn-outline {
  border: 1px solid rgb(255 255 255 / 28%);
  color: var(--paper);
}
.btn-outline:hover {
  border-color: var(--mint);
}

/* hero + banners */
.lede {
  padding-block: 3rem 1rem;
}
.lede h1 {
  /* A sentence, not a display title — the header wordmark already says who we
     are, so this introduces rather than repeats. */
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 48rem;
  /* Keeps "Helsinki-based" from splitting across lines. */
  text-wrap: balance;
}
.lede p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.banners {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem 4rem;
}
@media (min-width: 48rem) {
  .banners {
    grid-template-columns: 1fr 1fr;
  }
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.banner:hover {
  border-color: var(--mint);
  background: rgb(255 255 255 / 8%);
}
.banner h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.banner .go {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mint);
}

main {
  /* Vertically centred. `safe` matters on phones: with plain `center`, content
     taller than the viewport is clipped off the top with no way to scroll to
     it. The footer still pins to the bottom via the body flex column. */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding-block: 1rem 3rem;
}

/* prose pages */
.prose {
  padding-block: 2rem 4rem;
  max-width: 44rem;
}
.prose h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}
.prose p {
  color: var(--muted);
}
/* Not .btn: a button inside prose carries its own colour, and `.prose a`
   would outrank `.btn-primary` and paint mint text on a mint background. */
.prose a:not(.btn) {
  color: var(--mint);
}
.prose ul {
  color: var(--muted);
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}
.prose li {
  margin-bottom: 0.75rem;
}
.prose .signoff {
  margin-top: 2rem;
}

/* The aspect-ratio holds the box before metadata loads, so the poster does
   not shift the copy below it. */
.clip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-block: 1.75rem 2rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
}

.people {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem 0;
  padding-inline: 0;
  list-style: none;
  margin: 0;
}
@media (min-width: 40rem) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
}
.people li {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 12%);
}
.people .name {
  display: block;
  font-weight: 600;
}
.people .role {
  display: block;
  font-size: 0.875rem;
  color: var(--mint);
  margin-top: 0.15rem;
}

/* footer */
.site-footer {
  position: relative;
  padding-block: 2rem 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* The rule is drawn as a pseudo-element inset to the .wrap padding: a
   border-top sits at the padding edge and would overhang the content by
   24px on each side. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
}

:where(a, .btn):focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* founder portraits */
.people img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  display: block;
  margin-bottom: 0.85rem;
  background: rgb(255 255 255 / 8%);
}

/* the Max Scale wordmark inside its banner */
.banner .wordmark {
  /* Sized by optical weight, not by height: the Scale Platform mark is 7.7:1
     against Max Scale's 4.9:1, so matching heights would make it far wider. */
  height: 2.1rem;
  width: auto;
  max-width: 100%;
  display: block;
}
.banner .wordmark[alt='Scale Platform'] {
  height: 1.6rem;
}
.banner h2:has(.wordmark) {
  line-height: 0;
}

.people .li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  margin-left: -0.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: var(--muted);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.people .li svg {
  width: 1.3rem;
  height: 1.3rem;
}
.people .li:hover {
  color: var(--mint);
  background: rgb(255 255 255 / 8%);
}

/* Visually hidden, still read by screen readers — the three "LinkedIn" links
   need distinguishable accessible names. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
