:root {
  --blue: #1F4BFF;
  --cream: #F3F1EA;
  --cream-deep: #EAE6DA;
  --ink: #12151D;
  --pad: clamp(20px, 5vw, 64px);
  --band: clamp(72px, 10vw, 128px);

  /* Per-surface colors; blue is the default surface */
  --fg-2: rgb(243 241 234 / .72);
  --rule: rgb(243 241 234 / .2);
  --accent: rgb(243 241 234 / .72);
}

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

html {
  background: var(--blue);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Surfaces */
.cream {
  background: var(--cream);
  color: var(--ink);
  --fg-2: rgb(18 21 29 / .7);
  --rule: rgb(18 21 29 / .12);
  --accent: var(--blue);
}
.deep { background: var(--cream-deep); }
.band { padding-block: var(--band); }
/* Follows a same-colored band, so its top spacing would double up */
.flush { padding-top: 0; }

/* Type */
.eyebrow {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h2 {
  max-width: 18em;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.big { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.big p + p { margin-top: 1em; }
.muted { color: var(--fg-2); }

/* Top navigation */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 20px;
}
.top .home { line-height: 0; }
.top .home svg { display: block; width: 104px; height: auto; }
.top ul { display: flex; gap: 4px; margin-left: auto; padding: 0; list-style: none; }
.top ul a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.top ul a:hover { background: rgb(243 241 234 / .1); color: var(--cream); }
.top ul a[aria-current="page"] { color: var(--cream); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(84vh, 880px);
  min-height: min(84svh, 880px);
}

/* Decorative mark, echoing the brand covers */
.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}
.decor svg {
  position: absolute;
  width: max(110svh, 52vw);
  height: auto;
  left: 74%;
  top: 55%;
  translate: 0 -50%;
  color: var(--cream);
  opacity: .08;
  animation: turn 90s linear infinite;
}
/* The mark is 90° symmetric, so a quarter turn loops seamlessly */
@keyframes turn { to { rotate: 90deg; } }

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: clamp(32px, 6vh, 80px) clamp(64px, 10vh, 120px);
}
.logo { line-height: 0; }
.logo svg { display: block; width: clamp(220px, 36vw, 480px); height: auto; }
.lede {
  margin-top: clamp(24px, 3.2vw, 40px);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}
/* Break between the two sentences, never inside one */
.lede span { display: inline-block; }
.intro .sub { max-width: 34em; margin-top: 16px; color: var(--fg-2); }

/* About */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}
.facts div { padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .8125rem; color: var(--fg-2); }
.facts dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }

/* What we do */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
}
.cards li {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 20px;
}
.cards .n {
  display: block;
  margin-bottom: 40px;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.cards p, .points p { margin-top: 8px; color: var(--fg-2); }

/* How we work */
.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
}
.points li { padding-top: 20px; border-top: 2px solid var(--blue); }

/* Our apps */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--blue);
  color: var(--cream);
  --fg-2: rgb(243 241 234 / .72);
  --accent: rgb(243 241 234 / .72);
}
.callout svg { width: clamp(56px, 8vw, 88px); height: auto; }
.callout h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.callout p:last-child { max-width: 36em; margin-top: 12px; color: var(--fg-2); }

/* Contact */
.note { max-width: 26em; margin-top: 16px; }
.lines { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.lines li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}
.lines .k { font-size: .875rem; color: var(--fg-2); padding-top: .15em; }
.lines .v { font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.lines .v a { text-decoration: none; }
.lines .v a:hover { text-decoration: underline; text-underline-offset: 4px; }
address { font-style: normal; }
.map {
  display: inline-block;
  margin-top: 6px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--fg-2);
  text-decoration: none;
}
.map:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.company { margin-top: clamp(56px, 7vw, 96px); }
.company .facts { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--fg-2);
}
.foot ul { display: flex; flex-wrap: wrap; padding: 0; list-style: none; }
.links { gap: 4px 24px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.social { gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--cream);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--cream); color: var(--blue); border-color: var(--cream); }
.social svg { width: 18px; height: 18px; }

/* Policy and support pages */
.doc { padding-block: clamp(56px, 8vw, 104px) var(--band); }
.prose { max-width: 44rem; }
.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.prose .meta { margin-top: 12px; font-size: .9375rem; color: var(--fg-2); }
.prose .intro-p { margin-top: 32px; font-size: 1.125rem; }
.prose h2 {
  max-width: none;
  margin-top: 48px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.prose h3 { margin-top: 28px; font-size: 1.0625rem; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 600; }
.box {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.box p:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .split, .points { grid-template-columns: 1fr; }
  .company .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top { gap: 12px; }
  .top .home svg { width: 84px; }
  .top ul a { padding: 10px; }

  /* Mark rises from the top edge; hero starts below its lowest point */
  .decor svg { width: 130vw; left: 50%; top: 0; translate: -50% -60%; }
  .intro { padding-top: calc(47vw - 48px); padding-bottom: 56px; }

  .facts, .company .facts { grid-template-columns: 1fr; }
  .lines li { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .foot { flex-direction: column; text-align: center; }
  .foot ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .decor svg { animation: none; }
  .top ul a, .social a { transition: none; }
}
