/* 4 Milestones — shared styles.
   Logo: pages load assets/logo.svg (header, footer) — replace that file to change the logo site-wide. */

:root {
  --bone: #f2f1ee;
  --paper: #fbfaf8;
  --ink: #1c1819;
  --ink-soft: #4a4446;
  --oxblood: #4b0d12;
  --oxblood-hover: #6a1a21;
  --brass: #b38f4a;
  --brass-on-dark: #d2b274;
  --rule: #d9d6d0;
  /* the four strands of the logo, used once per page: the four lenses */
  --s-charcoal: #404140;
  --s-coral: #d98268;
  --s-teal: #296c66;
  --s-slate: #677478;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--oxblood); text-underline-offset: 3px; }
a:hover { color: var(--oxblood-hover); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--oxblood); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.3rem; line-height: 1.55; max-width: 58ch; color: var(--ink-soft); }
.measure { max-width: 62ch; }
.small { font-size: 0.95rem; color: var(--ink-soft); }

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 22px); flex-wrap: wrap; font-family: var(--display); font-size: 0.95rem; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--ink); }
.nav .btn { color: #fff; border-bottom: 0; padding: 9px 16px; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1rem;
  background: var(--oxblood); color: #fff; text-decoration: none;
  padding: 14px 26px; border: 0; border-radius: 2px; cursor: pointer;
}
.btn:hover { background: var(--oxblood-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--oxblood); box-shadow: inset 0 0 0 2px var(--oxblood); }
.btn.ghost:hover { background: var(--oxblood); color: #fff; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--oxblood); }
.hero .lede { margin-top: 32px; }

/* proof band */
.proof { background: var(--oxblood); color: #f4ece8; padding: clamp(48px, 6vw, 80px) 0; }
.proof-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 40px; max-width: 30ch; }
.proof-line span { white-space: nowrap; }
.proof-line em { font-style: normal; color: var(--brass-on-dark); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.proof-grid div { padding: 20px 20px 0 0; font-size: 0.98rem; line-height: 1.45; }
.proof-grid strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #fff; margin-bottom: 2px; }
.proof-note { margin-top: 36px; max-width: 70ch; color: #e6d9d3; }

/* section head */
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head p { margin-top: 20px; }
.tag { font-family: var(--display); font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.tag b { font-weight: 600; color: var(--oxblood); }

/* matchmaking: the one memorable element */
.lenses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lens { border-top: 6px solid var(--c); padding-top: 18px; }
.lens h3 { margin-bottom: 8px; }
.lens p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.lens.clinical { --c: var(--s-charcoal); }
.lens.users { --c: var(--s-coral); }
.lens.business { --c: var(--s-teal); }
.lens.scouting { --c: var(--s-slate); }

.converge { width: 100%; height: 150px; margin-top: 18px; overflow: visible; }
.converge path { fill: none; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.converge .a { stroke: var(--s-charcoal); }
.converge .b { stroke: var(--s-coral); }
.converge .c { stroke: var(--s-teal); }
.converge .d { stroke: var(--s-slate); }
.converge .join { stroke: var(--oxblood); stroke-width: 10; }
.js .converge path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .converge.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.5,.1,.2,1); }
.js .converge.in .join { transition-delay: 1.1s; transition-duration: .5s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .converge path { stroke-dashoffset: 0; transition: none; }
}
.fit { text-align: center; margin-top: 6px; }
.fit p { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.015em; max-width: 30ch; margin: 0 auto 8px; }
.fit p.small { margin: 0; font-family: var(--text); font-weight: 400; font-size: 0.95rem; letter-spacing: 0; max-width: 56ch; }

/* journey */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.six > div { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--rule); }
.six h3 { margin-bottom: 6px; }
.six p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split.reverse > :first-child { order: 2; }
.rule-top { border-top: 1px solid var(--rule); }
.band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.verbs { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 28px 0 14px; }
.verbs span:not(:last-child)::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--brass); vertical-align: middle; margin-left: 28px; }

.services { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* dark due-diligence strip */
.dark { background: var(--oxblood); color: #f4ece8; }
.dark h2 { color: #fff; }
.dark .lede { color: #e6d9d3; }
.dark a.btn { background: var(--brass-on-dark); color: var(--oxblood); }
.dark a.btn:hover { background: #e0c488; color: var(--oxblood); }

/* lists */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.plain li strong { font-family: var(--display); font-weight: 600; }
.dark .plain li { border-bottom-color: rgba(255,255,255,.2); }

/* exits */
.exits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.exit { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 22px; }
.exit .mark { height: 190px; display: flex; align-items: center; justify-content: center; }
.exit img { max-height: 170px; width: auto; }
.exit .type-tile { font-family: var(--display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; color: var(--oxblood); }
.exit p { margin: 14px 0 0; font-size: 1rem; line-height: 1.5; }
.exit p strong { font-family: var(--display); font-weight: 600; display: block; }

.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--rule); padding-top: 28px; }
.record strong { display: block; font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; color: var(--oxblood); margin-bottom: 8px; }
.record span { font-size: 1rem; line-height: 1.45; display: block; }

/* form */
form { display: grid; gap: 18px; max-width: 620px; }
label { font-family: var(--display); font-weight: 600; font-size: 0.97rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], textarea, input[type=file] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; background: var(--paper);
  border: 1px solid #b9b5ad; border-radius: 2px; color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-direct { margin-top: 28px; font-size: 1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 44px 0; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 46px; width: auto; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--display); }
.site-footer a { color: var(--ink); }

/* responsive */
@media (max-width: 900px) {
  .lenses, .six, .record, .exits { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .converge { display: none; }
  .fit { text-align: left; margin-top: 36px; }
  .fit p { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .lenses, .six, .record, .exits, .proof-grid { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
  .brand img { height: 34px; }
  .actions .btn { width: 100%; text-align: center; }
}
