/* Five North: bold white site
   Palette: white ground, ink type, coral for the chevron, needle and actions,
   aurora reserved for Bearings. One family, Jost, using the wordmark's
   light/semibold contrast as the headline voice. */
:root {
  --white: #FFFFFF;
  --ink: #1A1F2E;
  --ink-70: #4A4F5C;
  --ink-50: #767981;
  --rule: rgba(26, 31, 46, 0.14);
  --coral: #F07F68;
  --coral-text: #C2492F;
  --aurora: #46C2AE;
  --mist: #F4F5F7;
  --pad: clamp(22px, 6vw, 96px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .chev { width: 30px; height: auto; }
.brand-word { font-size: 18px; font-weight: 300; letter-spacing: 0.12em; white-space: nowrap; }
.brand-word b { font-weight: 600; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink-70); }
.nav-link:hover { color: var(--ink); }
.nav-cta { font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; }
.nav-cta:hover { background: var(--ink); color: var(--white); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); transition: background .2s ease, color .2s ease; }
.btn-coral { background: var(--coral); }
.btn-coral:hover { background: var(--ink); color: var(--white); }
.btn-aurora { background: var(--aurora); }
.btn-aurora:hover { background: var(--white); }
.link { font-size: 16px; font-weight: 600; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid var(--coral); }
.link:hover { border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92svh, 920px);
  display: flex; align-items: center;
  padding: clamp(40px, 6vw, 96px) var(--pad) clamp(72px, 8vw, 120px);
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.instrument { display: block; }
.hero .instrument {
  position: absolute; z-index: 0;
  width: clamp(560px, 62vw, 980px); height: auto;
  right: clamp(-360px, -16vw, -140px); top: 50%;
  transform: translateY(-50%);
}
.hero-copy { position: relative; z-index: 1; max-width: 860px; display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 36px); }
.hero h1 { font-size: clamp(54px, 8.6vw, 148px); line-height: 0.96; letter-spacing: -0.035em; }
.h-light { display: block; font-weight: 300; }
.h-strong { display: block; font-weight: 600; }
.hero-lede { max-width: 34ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-70); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* one orchestrated arrival, then the needle keeps settling */
.dial, .needle { transform-box: view-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero .dial { animation: dial-in 2.6s var(--ease) both; }
  .hero .needle { animation: needle-in 2.6s var(--ease) both, settle 18s ease-in-out 2.6s infinite; }
}
@keyframes dial-in { from { transform: rotate(-38deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes needle-in { from { transform: rotate(70deg); } to { transform: rotate(-10deg); } }
@keyframes settle {
  0%, 100% { transform: rotate(-10deg); }
  20% { transform: rotate(7deg); }
  38% { transform: rotate(-4deg); }
  55% { transform: rotate(3deg); }
  72% { transform: rotate(-8deg); }
  88% { transform: rotate(4deg); }
}

/* ---------- Two ways we help ---------- */
.how { padding: clamp(80px, 9vw, 140px) var(--pad) clamp(40px, 5vw, 80px); border-top: 1px solid var(--rule); }
.how-title, .who h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; max-width: var(--max); margin: 0 auto; }
.how-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.bearing-panel { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 560px; opacity: 0.35; transition: opacity .6s ease; }
.bearing-panel.is-active { opacity: 1; }
.numeral {
  font-size: clamp(96px, 13vw, 200px); font-weight: 600; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.bearing-panel.is-active .numeral { -webkit-text-stroke-color: var(--coral); }
.bearing-panel h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--coral-text); }
.promise { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.bearing-panel p:not(.numeral):not(.promise):not(.aside) { font-size: 19px; line-height: 1.6; color: var(--ink-70); max-width: 46ch; }
.aside { font-size: 16px; color: var(--ink-50); padding-left: 14px; border-left: 2px solid var(--coral); }
.how-compass { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; --b: 0deg; }
.instrument--small { width: min(100%, 560px); height: auto; }
.how-compass .needle { transform: rotate(var(--b)); transition: transform 1.6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .how-compass .needle { transition: none; } .bearing-panel { opacity: 1; } }

/* ---------- Who we work with ---------- */
.who { padding: clamp(64px, 8vw, 120px) var(--pad); background: var(--mist); }
.sectors { max-width: var(--max); margin: clamp(28px, 3vw, 44px) auto 0; border-top: 1px solid var(--rule); }
.sector { border-bottom: 1px solid var(--rule); }
.sector summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0;
}
.sector summary::-webkit-details-marker { display: none; }
.sector-name { font-size: clamp(26px, 3vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; transition: color .2s ease; }
.sector summary:hover .sector-name { color: var(--coral-text); }
.sector-who { font-size: 17px; color: var(--ink-50); }
.sector-toggle { position: relative; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%; justify-self: end; transition: transform .35s var(--ease), background .2s ease; }
.sector-toggle::before, .sector-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.sector-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.sector[open] .sector-toggle { transform: rotate(45deg); background: var(--coral); border-color: var(--coral); }
.sector p { max-width: 60ch; padding: 0 0 clamp(22px, 2.4vw, 30px); font-size: 20px; line-height: 1.55; color: var(--ink-70); }

/* ---------- Bearings ---------- */
.bearings { padding: clamp(72px, 8vw, 128px) var(--pad); background: var(--ink); color: var(--white); overflow: hidden; }
.masthead {
  display: flex; align-items: flex-start; justify-content: center;
  font-size: clamp(60px, 14.2vw, 232px); font-weight: 600; line-height: 0.85; letter-spacing: 0.08em;
  margin: 0 auto; max-width: var(--max); padding-left: 0.08em;
}
.masthead-deg { width: 0.36em; height: 0.36em; margin-top: -0.06em; margin-left: 0.02em; flex-shrink: 0; }
.bearings-row { max-width: var(--max); margin: clamp(36px, 4vw, 56px) auto 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.bearings-sub { font-size: clamp(18px, 1.6vw, 22px); color: #C3C8D3; }
.edition { display: flex; align-items: center; gap: 28px; }
.cover { width: 132px; height: 186px; flex-shrink: 0; display: flex; flex-direction: column; padding: 14px 13px; border-radius: 4px; background: #242A3B; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.cover-mast { display: flex; align-items: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; }
.cover-deg { width: 6px; height: 6px; margin-left: 2px; }
.cover-title { margin-top: auto; font-size: 15px; line-height: 1.15; font-weight: 600; }
.cover-date { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--aurora); }
.edition-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.edition-label { font-size: 15px; font-weight: 500; color: var(--aurora); }
.edition-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 600; max-width: 16ch; margin-bottom: 8px; }

/* ---------- Close ---------- */
.close { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(80px, 9vw, 140px) var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.close h2 { font-size: clamp(40px, 5.6vw, 92px); line-height: 0.98; letter-spacing: -0.03em; }

/* ---------- Footer ---------- */
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-50); }
.foot p { flex: 1; }
.foot a { color: var(--ink-70); }
.brand--small .chev { width: 22px; }
.brand--small .brand-word { font-size: 14px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .instrument { width: 620px; right: -300px; top: auto; bottom: -260px; transform: none; opacity: 0.55; }
  .how-grid { grid-template-columns: 1fr; }
  .how-compass { display: none; }
  .bearing-panel { min-height: 0; padding: 48px 0 8px; opacity: 1; }
  .bearing-panel .numeral { -webkit-text-stroke-color: var(--coral); }
  .sector summary { grid-template-columns: minmax(0, 1fr) 40px; }
  .sector-who { grid-column: 1; grid-row: 2; margin-top: -10px; }
  .sector-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .bearings-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .nav-link { display: none; }
  .nav-cta { font-size: 14px; padding: 8px 14px; }
  .brand-word { font-size: 16px; }
  .hero { min-height: 0; padding-bottom: 300px; }
  .hero .instrument { width: 520px; right: -170px; bottom: -250px; }
  .edition { gap: 18px; }
  .cover { width: 104px; height: 146px; }
}

/* ---------- Two ways we help, side by side ---------- */
.ways { max-width: var(--max); margin: clamp(36px, 4vw, 56px) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.way { display: flex; flex-direction: column; gap: 14px; padding: clamp(32px, 3.6vw, 52px) clamp(24px, 3.6vw, 56px) 8px 0; }
.way + .way { padding-left: clamp(24px, 3.6vw, 56px); padding-right: 0; border-left: 1px solid var(--rule); }
.way-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.way .numeral { margin: 0; font-size: clamp(76px, 8.4vw, 136px); -webkit-text-stroke-color: var(--coral); }
.way-dial { width: clamp(96px, 9vw, 136px); flex-shrink: 0; }
.instrument--dial { width: 100%; height: auto; }
.instrument--dial text { display: none; }
.way .needle { transform: rotate(calc(var(--b) + 60deg)); transition: transform 1.8s var(--ease); }
.ways.is-set .way .needle { transform: rotate(var(--b)); }
.ways.is-set .way + .way .needle { transition-delay: .25s; }
@media (prefers-reduced-motion: reduce) { .way .needle { transform: rotate(var(--b)); transition: none; } }
.way h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--coral-text); }
.way .promise { font-size: clamp(28px, 2.8vw, 42px); }
.way-desc { font-size: 18.5px; line-height: 1.6; color: var(--ink-70); max-width: 46ch; }
.aside a { color: var(--ink-70); }
.how { padding-bottom: clamp(64px, 7vw, 104px); }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 36px 0 8px; border-left: 0; }
  .way + .way { border-top: 1px solid var(--rule); }
}

/* ---------- Bearings page ---------- */
.page-bearings .bearings { min-height: calc(100svh - 160px); display: flex; flex-direction: column; justify-content: center; }
.bearings-intro { max-width: 52ch; margin: clamp(28px, 3vw, 40px) auto 0; text-align: center; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #C3C8D3; }
.page-bearings .bearings-row { justify-content: center; }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--aurora); padding-bottom: 2px; }
.bearings-intro { text-wrap: balance; }

/* ---------- Tighter lower half ---------- */
.how { padding: clamp(56px, 6vw, 92px) var(--pad) clamp(40px, 4.4vw, 64px); }
.how-title, .who h2 { font-size: clamp(32px, 3.6vw, 52px); }
.ways { margin-top: clamp(24px, 2.6vw, 36px); }
.way { gap: 10px; padding-top: clamp(24px, 2.6vw, 36px); }
.way-head { margin-bottom: 2px; }
.way .numeral { font-size: clamp(64px, 6.6vw, 108px); }
.way-dial { width: clamp(80px, 7vw, 108px); }
.way .promise { font-size: clamp(26px, 2.4vw, 36px); }
.who { padding: clamp(48px, 5.4vw, 84px) var(--pad); }
.sectors { margin-top: clamp(20px, 2.2vw, 32px); }
.sector summary { padding: clamp(14px, 1.6vw, 20px) 0; }
.sector-name { font-size: clamp(24px, 2.4vw, 34px); }
.hero-copy { gap: clamp(20px, 2.2vw, 30px); }

/* ---------- Text pages: privacy and 404 ---------- */
.text-page { max-width: 820px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--pad) clamp(64px, 7vw, 104px); box-sizing: content-box; }
.text-page h1 { font-size: clamp(44px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.03em; }
.text-lede { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-70); }
.prose { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.prose > p:first-child { font-size: 19px; color: var(--ink-70); }
.prose h2 { margin: 36px 0 12px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.prose p { font-size: 17.5px; line-height: 1.7; color: var(--ink-70); margin-bottom: 12px; max-width: 66ch; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { font-size: 17.5px; line-height: 1.65; color: var(--ink-70); margin-bottom: 10px; max-width: 64ch; }
.prose li::marker { color: var(--coral); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.text-page--404 { min-height: calc(100svh - 240px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.text-page--404 .btn { margin-top: 28px; }
.foot a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--coral); }

/* ---------- What we do: two balanced columns, no numerals ---------- */
.offers { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.offer { display: flex; flex-direction: column; gap: 14px; padding-right: clamp(28px, 4vw, 64px); }
.offer + .offer { padding-right: 0; padding-left: clamp(28px, 4vw, 64px); border-left: 1px solid var(--rule); }
.offer h2 { font-size: clamp(40px, 4.4vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.offer-promise { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 300; }
.offer-desc { font-size: 18.5px; line-height: 1.6; color: var(--ink-70); max-width: 46ch; text-wrap: pretty; }
.offer-start { margin-top: auto; padding-top: 14px; font-size: 16px; line-height: 1.5; color: var(--ink-50); max-width: 46ch; border-top: 2px solid var(--coral); width: fit-content; }
@media (max-width: 860px) {
  .offers { grid-template-columns: 1fr; gap: 44px; }
  .offer, .offer + .offer { padding: 0; border-left: 0; }
}

/* ---------- Who we work with, on ink ---------- */
.who--ink { background: var(--ink); color: #FFFFFF; }
.who--ink h2 { color: #FFFFFF; }
.who--ink .sectors, .who--ink .sector { border-color: rgba(255, 255, 255, 0.16); }
.who--ink .sector-who { color: #9098A8; }
.who--ink .sector summary:hover .sector-name { color: var(--coral); }
.who--ink .sector-toggle { border-color: rgba(255, 255, 255, 0.7); }
.who--ink .sector-toggle::before, .who--ink .sector-toggle::after { background: #FFFFFF; }
.who--ink .sector[open] .sector-toggle { background: var(--coral); border-color: var(--coral); }
.who--ink .sector[open] .sector-toggle::before, .who--ink .sector[open] .sector-toggle::after { background: var(--ink); }
.who--ink .sector p { color: #C3C8D3; }
.who--ink :focus-visible { outline-color: var(--coral); }
.sector p { text-wrap: balance; }

/* Bearings edition badge: the degree ring with the edition number */
.badge { position: relative; width: clamp(140px, 13vw, 190px); aspect-ratio: 1; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-no { position: relative; font-size: clamp(54px, 5vw, 74px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; }
.badge-q { position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--aurora); }
@media (max-width: 560px) { .badge { width: 116px; } .badge-no { font-size: 44px; } .badge-q { font-size: 11px; } }
