/* Every value in this file comes from DESIGN.md. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F3EC;
  --paper-2: #ECE7DB;
  --surface: #FFFFFF;
  --ink: #12203A;
  --ink-2: #4D5870;
  --ink-3: #7C8598;
  --line: #D9D3C4;
  --line-dark: #2C3A57;
  --signal: #CC3D0C;
  --signal-hover: #B0340A;
  --signal-soft: #F7DFD3;
  --signal-on-dark: #EE6A3C;
  --on-dark: #F6F3EC;
  --on-dark-2: #AEB6C6;

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: 32px;
  --section: 96px;
  --radius-card: 12px;
  --radius-tag: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, .display, .numeral {
  font-family: var(--font-display);
  font-weight: 300;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(36px, 5.1vw, 62px); line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(27px, 3.1vw, 37px); line-height: 1.16; letter-spacing: -0.025em; }
h3 { font-family: var(--font-body); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.lead { font-size: 20px; line-height: 1.5; max-width: 62ch; }
.small { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.measure { max-width: 62ch; }
.label {
  font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.10em; text-transform: uppercase;
}
.label--tag {
  display: inline-block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-tag); padding: 5px 9px;
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--signal); color: #FFFFFF; }
.btn--primary:hover { background: var(--signal-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }

.tlink { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 600; text-decoration: none; }
.tlink span { color: var(--signal); transition: transform 150ms ease; }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.tlink:hover span { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--paper);
  border-bottom: 1px solid transparent; transition: border-color 150ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color 150ms ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--signal); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--ruled > .wrap { position: relative; }
.section--ruled { padding-top: 0; }
.section--ruled > .wrap::before { content: ""; display: block; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: var(--section); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark .label--tag { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.band--dark p { color: var(--on-dark-2); }
.band--dark .tlink { color: var(--on-dark); }
.band--dark .tlink span { color: var(--signal-on-dark); }
.band--dark .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.band--dark .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
.band--soft { background: var(--paper-2); }

.sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec__label { grid-column: 1 / span 3; padding-top: 8px; }
.sec__body { grid-column: 4 / -1; }
.sec__body > h2 { max-width: 22ch; }
.sec__body > h2 + * { margin-top: 40px; }
.sec__intro { max-width: 62ch; color: var(--ink-2); font-size: 20px; line-height: 1.5; }
.sec__intro + * { margin-top: 40px; }
.sec__foot { margin-top: 40px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero__text > * + * { margin-top: 24px; }
.hero__text .display, .hero__text h1 { margin-top: 20px; }
.hero__core { font-size: 22px; line-height: 1.42; max-width: 30em; }
.hero__sub { color: var(--ink-2); max-width: 34em; }
.hero__text .btn-pair { margin-top: 32px; }
.hero__note { margin-top: 14px !important; }
.hero--inner { padding: 88px 0 var(--section); }
.hero--inner h1 { max-width: 20ch; }
.hero--inner .lead { color: var(--ink-2); }

/* ---------- schematic ---------- */
.schematic { width: 100%; height: auto; }
.schematic text { font-family: var(--font-body); fill: var(--ink); }
.schematic .s-head { font-size: 12.5px; font-weight: 600; }
.schematic .s-row { font-size: 14.5px; font-weight: 500; }
.schematic .s-lane { stroke: var(--line); stroke-width: 1.25; }
.schematic .s-rule { stroke: var(--line); stroke-width: 1; }
.schematic .s-mark { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.schematic .s-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.schematic .s-flow { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.schematic .s-end { fill: var(--signal); }
.js .schematic .s-flow { animation: draw 1800ms ease-out 200ms both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- rows ---------- */
.rows > li { border-top: 1px solid var(--line); padding: 24px 0; }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.band--dark .rows > li { border-color: var(--line-dark); }
.row--num { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
.row__num { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; color: var(--signal-on-dark); }
.row--num h3 + p { margin-top: 6px; max-width: 58ch; }
.row__answer { margin-top: 12px; max-width: 58ch; color: var(--on-dark) !important; }
.row__answer strong { font-weight: 600; color: var(--signal-on-dark); }
.sub-label { margin-top: 56px; margin-bottom: 16px; color: var(--ink-2); }
.display--long { font-size: clamp(33px, 4.3vw, 52px); }
.closing h2 { text-wrap: balance; }
.row--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 32px; align-items: baseline; }
.row--split p { color: var(--ink-2); }
.band--dark .row--split p { color: var(--on-dark-2); }
.row--split h2 { font-size: clamp(24px, 2.5vw, 30px); max-width: 16ch; }
.row--channel { padding: 36px 0 !important; }

.platforms { display: flex; flex-wrap: wrap; gap: 4px 0; }
.platforms li { padding: 0 18px; border-left: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.platforms li:first-child { padding-left: 0; border-left: 0; }

.facts > li { border-top: 1px solid var(--line); padding: 20px 0; font-size: 20px; line-height: 1.4; }
.facts > li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- option cards ---------- */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; }
.card h3 { font-size: 24px; }
.card > * + * { margin-top: 14px; }
.card p { color: var(--ink-2); }
.card .label { color: var(--ink-3); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.numeral { display: block; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--signal); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; color: var(--ink-2); }
.band--dark .step { border-color: var(--line-dark); }
.band--dark .step p { color: var(--on-dark-2); }
.band--dark .numeral { color: var(--signal-on-dark); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- problem and answer (why a partner) ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: start; border-top: 1px solid var(--line); padding: 32px 0; }
.vs:last-child { border-bottom: 1px solid var(--line); }
.vs h3 + p { margin-top: 10px; color: var(--ink-2); max-width: 54ch; }
.vs__answer { background: var(--signal-soft); border-radius: var(--radius-card); padding: 20px 22px; }
/* The label runs on into its sentence ("With a partner: the team is..."), so it stays inline and in sentence case. */
.vs__answer strong { font-weight: 600; color: var(--signal-hover); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--paper-2); font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.compare thead th:last-child { box-shadow: inset 0 2px 0 var(--signal); }
.compare tbody th { font-weight: 600; width: 24%; }
.compare tbody td { color: var(--ink-2); }
.compare tbody td:last-child { color: var(--ink); font-weight: 500; }

/* ---------- statement (dark, why a partner) ---------- */
.statement .sec__body h2 { max-width: 18ch; }
.statement .sec__body p { margin-top: 24px; font-size: 20px; line-height: 1.5; max-width: 52ch; }

/* ---------- contact ---------- */
.contact-value { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; color: var(--ink) !important; overflow-wrap: anywhere; }
.card .btn { margin-top: 22px; }

/* ---------- closing band ---------- */
.closing { padding: var(--section) 0; }
.closing__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.closing h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; max-width: 14ch; }
.closing p { color: var(--ink-2); font-size: 20px; line-height: 1.5; }
.closing .btn-pair { margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 56px; border-top: 1px solid var(--line-dark); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.site-footer p, .site-footer li { font-size: 15.5px; line-height: 1.6; color: var(--on-dark-2); }
.site-footer .foot-line { color: var(--on-dark); max-width: 30ch; font-size: 17px; }
.site-footer a { text-decoration: none; color: var(--on-dark-2); transition: color 150ms ease; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer li + li { margin-top: 6px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .schematic .s-flow { animation: none; }
  .btn, .tlink span, .nav a, .site-header { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav .btn { margin-top: 16px; border-bottom: 0; color: #FFFFFF; padding: 14px 26px; }
  .menu-btn { display: inline-flex; }
  .site-header__inner { position: relative; }
}
@media (min-width: 1041px) {
  .nav .btn { margin-left: 6px; color: #FFFFFF; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 64px; }
  body { font-size: 16px; }
  h3 { font-size: 19px; }
  .lead, .sec__intro, .closing p, .statement .sec__body p { font-size: 18px; }
  .hero { padding-top: 40px; }
  .hero--inner { padding-top: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__core { font-size: 19px; }
  .sec { display: block; }
  .sec__label { padding-top: 0; margin-bottom: 20px; }
  .sec__body > h2 + * { margin-top: 28px; }
  .row--split { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card { padding: 24px; }
  .steps, .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .vs { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .closing__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts > li { font-size: 18px; }
  .platforms li { font-size: 16.5px; padding: 0 12px; }
}
@media (max-width: 560px) {
  .hero__art { display: none; }
  .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .row--num { grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
  .btn-pair .btn { flex: 1 1 auto; }
  .brand { font-size: 18px; }
  .platforms { display: block; }
  .platforms li { border-left: 0; padding: 2px 0; }
}
