/* MSP Superintelligence: an editorial long read */

:root {
  --navy: #0B1F3A;
  --steel: #5B6B7C;
  --teal: #00C2A8;

  /* neutrals, tinted toward the navy */
  --paper: #F3F5F8;
  --paper-2: #E7ECF1;
  --ink: #0B1F3A;
  --ink-soft: #33465D;
  --line: rgba(11, 31, 58, 0.14);
  --on-dark: #E8EDF2;
  --on-dark-soft: #A3B0BE;
  --navy-deep: #081830;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --space: clamp(88px, 12vw, 184px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; }

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

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 6.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 0.75em;
  text-wrap: balance;
}
.h2--wide { max-width: 18ch; font-size: clamp(36px, 5vw, 76px); line-height: 1; }
.h2--dark { color: #fff; }

.h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2em 0 0.6em;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.h4::before { content: ""; width: 8px; height: 8px; background: var(--teal); }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 14px;
}
.kicker--dark { color: var(--on-dark-soft); }
.rule { display: inline-block; width: 40px; height: 2px; background: var(--teal); flex: none; }

.lede {
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.5;
  color: var(--ink);
}
.muted { color: var(--steel); }

.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 700;
  float: left;
  font-size: 4.1em;
  line-height: 0.82;
  margin: 0.08em 0.1em 0 0;
  color: var(--navy);
}

.caption {
  font-size: 15px;
  line-height: 1.45;
  font-style: italic;
  color: var(--steel);
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
  max-width: 52ch;
}
.caption--dark { color: var(--on-dark-soft); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 248, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .masthead { background: rgba(243, 245, 248, 0.86); backdrop-filter: saturate(1.2) blur(10px); }
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}
.wordmark__msp { font-weight: 800; }
.nav { display: none; gap: 36px; }
.nav a {
  font-family: var(--display);
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--navy); border-color: var(--teal); }
.masthead__cta {
  font-family: var(--display);
  font-size: 15px; font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 18px;
  border: 1.5px solid var(--navy);
  transition: background .2s, color .2s;
}
.masthead__cta:hover { background: var(--navy); color: #fff; }

/* ---------- button ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 18px 28px;
  white-space: nowrap;
  transition: background .25s, transform .25s;
}
.btn::after {
  content: ""; width: 22px; height: 2px; background: currentColor;
  transition: width .25s;
}
.btn:hover { background: #1ad3ba; }
.btn:hover::after { width: 32px; }

/* ---------- hero ---------- */

.hero { padding: clamp(32px, 5vw, 64px) 0 var(--space); }
.hero__kicker { margin-bottom: 22px; }
.hero__figure { margin: 0; }
.hero__frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: slowzoom 18s ease-out both;
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__caption { margin-top: 14px; }

.hero__cover { margin-top: 40px; }
.hero__foot { margin-top: 32px; }
.standfirst {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-bottom: 32px;
}

/* ---------- spreads ---------- */

.spread { padding: 0 0 var(--space); }
.spread__grid { display: grid; gap: 40px; }
.spread__photo { margin: 0; }
.spread__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.spread__text { max-width: 34em; }

/* ---------- pull quotes ---------- */

.pull { padding: 0 0 var(--space); }
.pull__quote { margin: 0; border-top: 1px solid var(--line); padding-top: 40px; }
.pull__quote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 16ch;
  color: var(--navy);
  text-wrap: balance;
}
.pull__quote p::before {
  content: "\201C";
  display: block;
  font-size: 1.3em;
  line-height: 0.6;
  height: 0.42em;
  color: var(--teal);
  margin-bottom: 0.1em;
}
.pull__cite {
  margin-top: 28px;
  font-family: var(--display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
}
.pull--alt .pull__quote p { color: var(--steel); }

/* ---------- dark spread ---------- */

.dark {
  background: var(--navy);
  color: var(--on-dark);
  padding: var(--space) 0;
  margin-bottom: var(--space);
  position: relative;
}
.dark__grid { display: grid; gap: 56px; }
.dark__photo figure { margin: 0; }
.dark__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.dark__text p { color: var(--on-dark-soft); }

.story { list-style: none; margin: 16px 0 0; padding: 0; }
.story__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(232, 237, 242, 0.14);
}
.story__step:last-child { border-bottom: 1px solid rgba(232, 237, 242, 0.14); }
.story__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
  padding-top: 2px;
}
.story__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 10px;
}
.story__step p { margin: 0; max-width: 46ch; }

/* ---------- why ---------- */

.why { padding: 0 0 var(--space); }
.why__head { margin-bottom: 56px; }
.why__grid { padding: 0; }

/* ---------- faq ---------- */

.faq {
  background: var(--paper-2);
  padding: var(--space) 0;
}
.faq__grid { display: grid; gap: 40px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: translateY(-4px) rotate(45deg);
  transition: transform .25s, border-color .25s;
}
.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--teal); }
.qa summary:hover { color: var(--ink-soft); }
.qa p { max-width: 62ch; color: var(--ink-soft); padding: 0 0 28px; margin: 0; }

/* ---------- contact ---------- */

.contact { padding: var(--space) 0; }
.contact__grid { display: grid; }
.display--contact { max-width: 14ch; margin-bottom: 48px; font-size: clamp(44px, 7.4vw, 120px); }
.contact__note { max-width: 36em; border-left: 2px solid var(--teal); padding-left: 24px; }
.contact__note p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.footer {
  background: var(--navy-deep);
  color: var(--on-dark-soft);
  padding: 56px 0;
}
.footer__inner { display: grid; gap: 10px; }
.wordmark--footer { color: #fff; margin: 0 0 6px; }
.footer__line { margin: 0; font-size: 16px; }

/* ---------- reveal motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn::after, .qa summary::after { transition: none; }
}

/* ---------- tablet and up ---------- */

@media (min-width: 760px) {
  .hero__frame { aspect-ratio: 16 / 10; }
  .hero__cover { width: min(88%, 980px); }
  .hero__foot { display: flex; align-items: flex-end; gap: 48px; }
  .hero__foot .standfirst { margin-bottom: 0; }
  .story__step { grid-template-columns: 96px 1fr; }
  .story__num { font-size: 40px; }
}

/* ---------- desktop ---------- */

@media (min-width: 1040px) {
  .nav { display: flex; }
  .hero__frame { aspect-ratio: 2 / 1; }
  .hero__img { object-position: 55% 60%; }
  .hero .wrap { position: relative; }
  .hero__kicker { margin-bottom: 36px; }
  .hero__caption {
    position: absolute; top: 0; right: var(--gutter);
    margin: 0; max-width: 40ch; text-align: right;
    border-left: 0; border-right: 2px solid var(--teal);
    padding: 0 14px 0 0;
  }
  .hero__cover {
    position: relative;
    z-index: 2;
    margin-top: -210px;
    width: min(80%, 1000px);
    background: var(--paper);
    padding: 56px 72px 0 0;
  }

  .spread__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    align-items: end;
  }
  .spread--wide-left .spread__photo { grid-column: 1 / span 8; }
  .spread--wide-left .spread__text { grid-column: 9 / span 4; padding-bottom: 40px; }
  .spread--wide-right .spread__text { grid-column: 1 / span 4; grid-row: 1; align-self: center; }
  .spread--wide-right .spread__photo { grid-column: 6 / span 7; grid-row: 1; }
  .spread--wide-right .spread__photo img { aspect-ratio: 4 / 5; object-position: 40% 50%; }

  .spread--wide-left#what .spread__photo img { aspect-ratio: 16 / 11; }

  .pull .wrap { padding-left: calc(var(--gutter) + (100% - 2 * var(--gutter)) / 12); }
  .pull--alt .wrap { padding-left: var(--gutter); display: flex; justify-content: flex-end; }
  .pull__quote--right { width: min(100%, 1000px); }

  .dark__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
    align-items: start;
  }
  .dark__photo { grid-column: 1 / span 5; position: sticky; top: 108px; }
  .dark__text { grid-column: 7 / span 6; }

  .why__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: start; }
  .why__grid .spread__photo { grid-column: 1 / span 7; }
  .why__grid .spread__text { grid-column: 9 / span 4; padding-top: 8px; }

  .faq__grid { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .faq__head { grid-column: 1 / span 4; }
  .faq__list { grid-column: 6 / span 7; }

  .contact__grid { grid-template-columns: repeat(12, 1fr); column-gap: 32px; }
  .contact__grid > .kicker { grid-column: 1 / -1; }
  .display--contact { grid-column: 1 / span 9; }
  .contact__note { grid-column: 7 / span 6; }

  .footer__inner { grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 48px; }
  .wordmark--footer { margin: 0; }
}
