/* 10North Capital — site styles
   Layout: dark condensed-capital openings, light-weight type for everything read,
   full-width ruled rows, Midnight and white sections alternating. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --midnight: #0A1A33;
  --navy: #1D3359;
  --harbour: #34558F;
  --steel: #4F7FC0;
  --sky: #9DB7DE;
  --mist: #DCE5F3;
  --frost: #F1F4F9;
  --slate: #5B6675;
  --rule: #D9DDE3;
  --white: #FFFFFF;
  --oxide: #A63A2B;
  --font: "Archivo", Arial, Helvetica, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
[id] { scroll-margin-top: 90px; }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 20;
  padding: 12px 18px; background: var(--white); color: var(--midnight);
}
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.display {            /* condensed capitals: hero headlines and figures */
  font-stretch: 62%;
  font-weight: 600;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
}
.light {              /* light cut: section titles and large rows */
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--sky); }
.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
  font-weight: 300;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--midnight);
  background: var(--midnight); color: var(--white);
  font: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--white); color: var(--midnight); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--midnight); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--midnight); }
.btn--light:hover { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--midnight); color: var(--white);
  min-height: 100px; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px;
  transition: min-height .3s var(--ease), padding .3s var(--ease);
}
.site-header__logo img { height: 64px; width: auto; transition: height .3s var(--ease); }
/* After the first scroll the bar slims down. The logo file includes clear space, so 60px high keeps the mark itself near the 120px minimum width. */
.site-header.is-compact { min-height: 72px; padding-top: 6px; padding-bottom: 6px; }
.site-header.is-compact .site-header__logo img { height: 60px; }
.site-header[data-open="true"] { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
.nav a {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; line-height: 44px; color: var(--white);
  transition: color .25s;
}
.nav a:hover { color: var(--sky); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--steel); }
.nav-toggle {
  display: none;
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--white);
  font: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 1239px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 0 20px; border-top: 1px solid var(--harbour); margin-top: 14px;
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav a {
    font-size: clamp(26px, 6vw, 36px); font-weight: 300; letter-spacing: -.03em; text-transform: none;
    line-height: 1.15; padding: 12px 0; border-bottom: 1px solid var(--navy);
  }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--sky); }
}

/* ---------- Home hero ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes clip { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero {
  background: var(--midnight); color: var(--white);
  padding: 24px var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  text-align: center; overflow: hidden;
}
.hero__stack { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-bottom: 8px; }
.hero__symbol { width: clamp(120px, 13.5vw, 196px); height: auto; animation: rise 1.6s var(--ease) both; }
.hero__title { font-size: clamp(44px, 8.5vw, 124px); }
.hero__title .line { display: block; overflow: hidden; padding-top: .06em; }
.hero__title .line > span { display: block; animation: clip 1.2s var(--ease) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .4s; }
.hero .lead { max-width: 620px; color: var(--mist); animation: fade 1.4s .9s both; }
.hero .btn { animation: fade 1.4s 1.1s both; }
.offices {
  width: 100%; padding: 30px 0 34px; border-top: 1px solid var(--harbour);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px clamp(16px, 2.2vw, 32px);
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; font-weight: 300; letter-spacing: -.02em;
}
.offices i { width: clamp(24px, 3.4vw, 48px); height: 2px; background: var(--steel); }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--midnight); color: var(--white);
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; gap: 28px;
}
.page-hero__title { font-size: clamp(40px, 7vw, 104px); max-width: 21ch; text-wrap: balance; }
.page-hero__title--wide { max-width: 26ch; }
.page-hero .lead { max-width: 720px; color: var(--mist); }
.page-hero__title { animation: fade 1s .1s both; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 7.2vw, 104px) var(--gutter); }
.section--tint { background: var(--frost); }
.section--dark { background: var(--midnight); color: var(--white); }
.section--flush { padding-left: 0; padding-right: 0; }
.section__label { padding: 0 var(--gutter) 28px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.split__head { flex: 1 1 320px; min-width: 0; }
.split__body { flex: 2 1 520px; min-width: 0; }
.h2 { font-size: clamp(36px, 5.8vw, 84px); text-wrap: balance; }
.h2--sm { font-size: clamp(32px, 4.2vw, 60px); }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.prose--lg { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 300; }
.muted { color: var(--slate); }
.on-dark .muted { color: var(--sky); }

/* ---------- Client rows ---------- */
.row {
  min-height: 168px; padding: 32px var(--gutter);
  border-top: 1px solid var(--midnight);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 48px;
  text-decoration: none;
  transition: background .35s, color .35s, padding .45s var(--ease);
}
.row:last-of-type { border-bottom: 1px solid var(--midnight); }
.row__title { flex: 1.3 1 420px; min-width: 0; font-size: clamp(32px, 5vw, 72px); }
.row__text { flex: 1 1 320px; min-width: 0; color: var(--slate); transition: color .35s; }
.row__arrow { flex: 0 0 auto; font-size: 40px; line-height: 1; transition: transform .45s var(--ease); }
.row:hover, .row:focus-visible { background: var(--midnight); color: var(--white); padding-left: clamp(28px, 6.4vw, 92px); }
.row:hover .row__text, .row:focus-visible .row__text { color: var(--sky); }
.row:hover .row__arrow { transform: translateX(14px); }

/* ---------- Figures ---------- */
.kpis { display: flex; flex-direction: column; gap: 64px; }
.kpis__lead-figure {   /* figures are condensed but sentence case, unlike the page headlines */
  margin: 28px 0 0 -.02em; font-weight: 700; line-height: .9; white-space: nowrap;
  text-transform: none; letter-spacing: -.012em;
  font-size: clamp(52px, 16.8vw, 244px); color: var(--steel);
}
.kpis__lead-text { margin-top: 28px; font-size: clamp(20px, 2vw, 30px); line-height: 1.25; font-weight: 300; color: var(--mist); }
.kpis__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 64px; }
.kpis__item { padding-top: 24px; border-top: 1px solid var(--harbour); }
.kpis__figure { font-weight: 700; line-height: 1; white-space: nowrap; text-transform: none; letter-spacing: -.012em; font-size: clamp(52px, 7.8vw, 112px); }
.kpis__text { margin-top: 10px; font-size: 18px; color: var(--sky); }

/* ---------- Underwriting gates ---------- */
.section__head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.section__head .h2 { flex: 1 1 420px; }
.section__head p { flex: 1 1 320px; max-width: 460px; color: var(--slate); }
.gates { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 48px 32px; }
.gate__num {
  font-size: clamp(88px, 9.4vw, 136px); line-height: .9; font-weight: 300; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--midnight); transition: color .4s;
}
.gate:hover .gate__num { color: var(--midnight); }
.gate h3 { margin-top: 24px; font-size: 22px; line-height: 1.2; font-weight: 500; }
.gate p { margin-top: 10px; font-size: 16px; color: var(--slate); }
.after-note { margin-top: 56px; max-width: 760px; color: var(--slate); }

/* ---------- Definition rows ---------- */
.defs { border-bottom: 1px solid var(--rule); }
.defs > div {
  padding: 22px 0; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: baseline;
}
.defs > div:first-child { border-top-color: var(--midnight); }
.defs dt { flex: 0 0 230px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.defs dd { flex: 1 1 300px; min-width: 0; color: var(--slate); }
.defs--facts dt { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--slate); flex-basis: 160px; }
.defs--facts dd { color: var(--midnight); }

/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 48px 32px; }
.steps .gate__num { font-size: clamp(80px, 8vw, 120px); }

/* ---------- Team ---------- */
.people { border-bottom: 1px solid var(--midnight); }
.person {
  padding: 26px var(--gutter); border-top: 1px solid var(--midnight);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 40px; text-decoration: none;
  transition: background .35s, color .35s;
}
.person__name { flex: 1.2 1 340px; min-width: 0; font-size: clamp(26px, 3.2vw, 46px); }
.person__role { flex: 1 1 200px; }
.person__bg { flex: 1.4 1 280px; color: var(--slate); transition: color .35s; }
.person:hover, .person:focus-visible { background: var(--midnight); color: var(--white); }
.person:hover .person__bg { color: var(--sky); }
.bio { padding: clamp(56px, 6vw, 88px) var(--gutter); border-top: 1px solid var(--midnight); }
.bio__name { font-size: clamp(34px, 4.6vw, 66px); }
.bio__role { margin-top: 12px; }

/* ---------- Closing call to action ---------- */
.cta {
  background: var(--midnight); color: var(--white);
  padding: 60px var(--gutter) 52px;
}
.cta a {
  display: inline-block; color: var(--white); text-decoration: none;
  font-size: clamp(28px, 4.2vw, 60px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05;
  transition: color .4s, letter-spacing .6s var(--ease);
}
.cta a:hover { color: var(--sky); letter-spacing: -.015em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--sky); padding: 0 var(--gutter) 40px; font-size: 15px; }
.site-footer__top {
  padding: 40px 0; border-top: 1px solid var(--harbour);
  display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between;
}
.site-footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; color: var(--white); }
.site-footer__brand img { height: 64px; width: auto; align-self: flex-start; }
.site-footer__cols { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.site-footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--sky); margin-bottom: 10px; }
.site-footer li a, .site-footer li span { display: inline-block; line-height: 1.3; padding: 7px 0; color: var(--white); text-decoration: none; }
.site-footer li a:hover { color: var(--sky); }
.legal { padding-top: 32px; border-top: 1px solid var(--navy); display: flex; flex-direction: column; gap: 12px; max-width: 1040px; font-size: 13px; line-height: 1.55; }
.legal h2 { margin: 0; }
.copyright { margin-top: 28px; font-size: 13px; }

/* ---------- Contact form ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--midnight); border-radius: 0;
  background: transparent; color: var(--midnight); font: inherit; font-size: 19px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom: 3px solid var(--steel); padding-bottom: 10px; }
.hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; min-height: 1.5em; }
.form__status[data-state="error"] { color: var(--oxide); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
