:root {
  --paper: #f4f1ea;
  --ink: #141a2c;
  --muted: #555d70;
  --rule: #d3cfc4;
  --accent: #1f3c96;
  --deep: #1a3180;
  --tint: rgba(31, 60, 150, .06);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1400px;
}

* { 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(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* top bar */
.top {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { height: 34px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-size: 15px; }
.navlink { text-decoration: none; color: var(--muted); padding: 8px 0; }
.navlink:hover { color: var(--ink); }
.navcta { text-decoration: none; border: 1px solid var(--ink); padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.navcta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 4.5vw, 72px) var(--gutter) clamp(4px, 1vw, 16px); }
.eyebrow, .label {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 7.07vw, 6.3rem); line-height: 1.03; letter-spacing: -0.02em;
  max-width: 100%; margin-top: 22px; text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent); }

.join {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin-top: clamp(24px, 3vw, 44px); font-size: 14px; color: var(--muted);
}
.line { position: relative; display: block; height: 9px; }
.rule { position: absolute; left: 4px; right: 4px; top: 4px; height: 1px; background: var(--ink); transform-origin: left center; }
.dot { position: absolute; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.dot.a { left: 0; }
.dot.b { right: 0; background: var(--accent); }

.lede {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; align-items: end; justify-content: space-between;
  gap: 28px; margin-top: clamp(28px, 4vw, 44px);
}
.lede p:first-child { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 999px; font-weight: 500; transition: background .2s;
}
.btn { background: var(--accent); }
.btn:hover { background: var(--ink); }
.textlink { text-underline-offset: 5px; text-decoration-thickness: 1px; padding: 10px 0; }
.textlink:hover { color: var(--accent); }

/* blocks */
.block {
  max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 80px) var(--gutter);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 24px clamp(24px, 4vw, 64px);
}
.block > .label { padding-top: 6px; }
.block > :not(.label) { grid-column: 2; }
.num { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; margin: 10px 0 12px; }
.steps p { color: var(--muted); }
.pays { max-width: 44rem; padding-top: 28px; border-top: 1px solid var(--rule); margin-top: 12px; }
.pays strong { font-weight: 600; }

.block.wide { grid-template-columns: 1fr; }
.block.wide > :not(.label) { grid-column: 1; }
.ledger { border-bottom: 1px solid var(--rule); }
.ledger li {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3.5rem minmax(11rem, 17rem) 1fr; gap: 6px 24px; align-items: baseline;
  padding: 20px 14px; border-top: 1px solid var(--rule);
}
/* hover: a soft tint wipes across and a thin line draws under the row. Nothing moves. */
.ledger li::before, .ledger li::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  transform: scaleX(0); transform-origin: left center;
}
.ledger li::before { top: 0; bottom: 0; z-index: -1; background: linear-gradient(90deg, var(--tint), rgba(31, 60, 150, .015)); transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.ledger li::after { bottom: -1px; height: 1px; background: var(--accent); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.sector { font-size: 14px; color: var(--muted); transition: color .3s ease; }
.ledger p { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.005em; transition: color .3s ease; }
@media (hover: hover) {
  .ledger li:hover::before, .ledger li:hover::after { transform: scaleX(1); }
  .ledger li:hover p, .ledger li:hover .sector { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { .ledger li::before, .ledger li::after { transition: none; } }
.fine { font-size: 14px; color: var(--muted); }

/* contact */
.inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.contact { background: var(--deep); color: var(--paper); padding: clamp(64px, 10vw, 136px) 0; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -0.015em; }
.contact p { margin-top: 18px; color: #c9d2ee; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--serif); font-size: clamp(1.5rem, 4.4vw, 3rem); line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: #a9bcf5;
  overflow-wrap: anywhere; transition: color .2s;
}
.mail:hover { color: #a9bcf5; }
.contact a:focus-visible { outline-color: #a9bcf5; }

.foot { background: var(--deep); color: #b4c0e4; font-size: 14px; border-top: 1px solid #33499a; padding: 22px 0 30px; }
.foot .inner { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; }
.footbrand { display: inline-flex; align-items: center; gap: 10px; }
.footbrand img { height: 26px; width: auto; }
.foot a { text-underline-offset: 4px; }

/* motion: only when JS is on and the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .js .rule { transform: scaleX(0); animation: draw 1.1s .35s cubic-bezier(.6, 0, .2, 1) forwards; }
  .js .dot.b { opacity: 0; animation: appear .4s 1.35s ease-out forwards; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  @keyframes draw { to { transform: scaleX(1); } }
  @keyframes appear { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* narrower screens */
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; }
  .block > :not(.label) { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 22px; border-top: 1px solid var(--rule); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  .lede { grid-template-columns: 1fr; }
  h1 { max-width: 100%; }
  .block.about { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 600px) {
  .navlink { display: none; }
  .ledger li { grid-template-columns: 2.4rem 1fr; padding-left: 0; padding-right: 0; }
  .ledger p { grid-column: 2; }
  .join { gap: 10px; font-size: 13px; }
}

/* strategic introductions */
.block.about { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.block.about > * { grid-column: auto; }
.about-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 26px; }
.about-text p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 34rem; }
.about-text p + p { margin-top: 16px; color: var(--muted); }
.about-text .textlink { display: inline-block; margin-top: 22px; }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 380px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 4px; }
.portrait figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* cursor ring */
.cursor-ring {
  position: fixed; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: transparent; pointer-events: none; z-index: 50;
  opacity: 0; transition: opacity .3s ease, background-color .25s ease, border-color .25s ease; will-change: transform;
}
.cursor-ring.on { opacity: .7; }
.cursor-ring.active { background: rgba(31, 60, 150, .1); }
.cursor-ring.light { border-color: #c9d4f8; }
.cursor-ring.light.active { background: rgba(201, 212, 248, .16); }

@media (max-width: 900px) {
  .block.about { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 300px; }
}

/* numbers strip */
.stats { border-top: 1px solid var(--rule); }
.stats-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; }
.stat { padding: clamp(26px, 3.4vw, 44px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; border-left: 0; }
.figure { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.lead .figure { color: var(--accent); }
.cap { margin-top: 12px; font-size: 15px; color: var(--muted); }
.plus { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .stats.counting .plus { opacity: 0; transform: translateY(6px); }
  .js .stats .plus { transition: opacity .45s ease, transform .45s ease; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: clamp(16px, 4vw, 32px); border-left: 1px solid var(--rule); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* arrows travelling along the hero line */
.line .arrow { position: absolute; left: 0; top: -1.5px; width: 12px; height: 12px; pointer-events: none; }
.line .arrow path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 420px) { .figure { font-size: 1.7rem; } }


.fine a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fine a:hover { color: var(--ink); }


/* pencil ring drawn around the speed figure */
.ringed { position: relative; display: inline-block; }
.pencil-ring {
  position: absolute; left: -22%; top: -36%; width: 152%; height: 176%;
  overflow: visible; pointer-events: none; z-index: 2; transform: rotate(-5deg);
}
.pencil-ring path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .85; }
.pencil-ring path.second { stroke-width: 1.3; opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .js .stats:not(.circled) .pencil-ring path { stroke-dashoffset: 1; }
  .js .stats.circled .pencil-ring path { transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .25, 1); }
  .js .stats.circled .pencil-ring path.second { transition-delay: .18s; }
}

@media (max-width: 900px) { .pencil-ring { left: -14%; width: 128%; top: -30%; height: 162%; } }

/* numbers strip now sits inside the hero, under the caption and buttons */
.hero .stats { margin-top: clamp(28px, 3.6vw, 52px); border-top: 1px solid var(--ink); }
.hero .stats-grid { max-width: none; padding: 0; }
.hero .stat { padding-top: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(20px, 2.4vw, 32px); }

/* large monitors: everything a step bigger so the page holds its presence */
@media (min-width: 1500px) {
  body { font-size: 18px; }
  .top { padding-top: 26px; padding-bottom: 26px; }
  .brand { font-size: 19px; }
  .brand img { height: 38px; }
  nav { font-size: 16px; }
  .eyebrow, .label { font-size: 14px; }
  .lede { grid-template-columns: minmax(0, 40rem) auto; }
  .lede p:first-child { font-size: 1.45rem; }
  .figure { font-size: 3.7rem; }
  .cap { font-size: 16px; }
  .join { font-size: 15px; }
  .portrait { max-width: 460px; }
}
