/* =========================================================
   Infusion Partners — "Datum"
   One unbroken vertical line holds the page in registration.
   Left of it: what exists. Right of it: what it becomes.
   One typeface. Two grounds. No third colour.
   ========================================================= */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #17595d;
  --teal-deep: #0a2b2e;
  --paper: #f1f2ef;
  --white: #ffffff;
  --ink: #272727;
  --ink-soft: #566160;

  --datum: rgba(23, 89, 93, 0.3);
  --datum-light: rgba(255, 255, 255, 0.32);
  --rule: rgba(23, 89, 93, 0.15);

  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: 1.5rem;
  --rail: 10.5rem;
  --gap: 2.5rem;
  --body-max: 46rem;
  --content: calc(var(--rail) + var(--gap) + var(--body-max));
  --edge: max(var(--gutter), (100% - var(--content)) / 2);

  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
}

@media (min-width: 60em) {
  :root { --gutter: clamp(2rem, 5vw, 5rem); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.hero :focus-visible, .masthead :focus-visible, .colophon :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--white);
  color: var(--teal);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- the first screen ---------- */

.masthead {
  background: var(--teal);
  padding: 1.5rem var(--edge) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 72px; }

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem clamp(1rem, 1.9vw, 1.875rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.masthead-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.masthead-nav a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  padding: clamp(4rem, 3rem + 8vw, 9rem) var(--edge) clamp(2rem, 3vw, 3rem);
  min-height: min(82svh, 46rem);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
  align-content: space-between;
  row-gap: clamp(3rem, 8vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--edge) + var(--rail));
  width: 1px;
  background: var(--datum-light);
}

.hero-inner { grid-column: 2; }

h1 {
  font-size: clamp(2.35rem, 1.1rem + 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 19ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 48ch;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.hero-link {
  display: inline-block;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.3s ease;
}

.hero-link:hover { border-bottom-color: var(--white); }

.hero-foot {
  grid-column: 2;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
}

/* one orchestrated moment, on load, once */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s cubic-bezier(0.2, 0.72, 0.28, 1) forwards;
}
.hero-inner .reveal:nth-child(1) { animation-delay: 0.12s; }
.hero-inner .reveal:nth-child(2) { animation-delay: 0.26s; }
.hero-inner .reveal:nth-child(3) { animation-delay: 0.38s; }
.hero-foot { animation-delay: 0.5s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- bands hung off the datum ---------- */

.band {
  position: relative;
  padding: clamp(4.5rem, 3rem + 7vw, 8.5rem) var(--edge);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: start;
}

.band::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--edge) + var(--rail));
  width: 1px;
  background: var(--datum);
}

.band--paper { background: var(--paper); }
.band--close { background: var(--white); }

/* the argument that carries the most weight gets the only inverted band */
.band--accent {
  background: var(--teal);
  color: var(--white);
}

.band--accent::before { background: var(--datum-light); }
.band--accent .band-label { color: rgba(255, 255, 255, 0.68); }
.band--accent .lead { color: rgba(255, 255, 255, 0.82); }
.band--accent .prose { color: rgba(255, 255, 255, 0.72); }
.band--accent .terms > div { border-top-color: rgba(255, 255, 255, 0.22); }
.band--accent .terms > div:last-child { border-bottom-color: rgba(255, 255, 255, 0.22); }
.band--accent .terms dt { color: var(--white); }
.band--accent .terms dd { color: rgba(255, 255, 255, 0.76); }

/* the closing qualifier under a list */
.mandate-foot {
  grid-column: 2;
  max-width: 60ch;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.band--accent .mandate-foot { color: rgba(255, 255, 255, 0.62); }

/* status qualifier on an investment */
.status {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.terms dt a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.terms dt a:hover { border-bottom-color: var(--teal); }

.band-label {
  grid-column: 1;
  text-align: right;
  padding-right: var(--gap);
  padding-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--teal);
}

.band-body { grid-column: 2; }

h2 {
  font-size: clamp(1.6rem, 1.05rem + 2.3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 24ch;
  text-wrap: pretty;
}

.lead {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 60ch;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}

.prose {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 60ch;
  display: grid;
  gap: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- the ledger: the datum earns its keep ---------- */

.ledger,
.terms {
  grid-column: 1 / -1;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.ledger li,
.terms > div {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: clamp(1.125rem, 1.8vw, 1.5rem);
  border-top: 1px solid var(--rule);
}

.ledger li:last-child,
.terms > div:last-child { border-bottom: 1px solid var(--rule); }

.from,
.terms dt {
  grid-column: 1;
  text-align: right;
  padding-right: var(--gap);
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.to,
.terms dd {
  grid-column: 2;
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact-link {
  display: inline-block;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  font-size: clamp(1.375rem, 0.95rem + 1.7vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--teal);
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--datum);
  transition: border-color 0.3s ease;
  overflow-wrap: anywhere;
}

.contact-link:hover { border-bottom-color: var(--teal); }

/* people, and where the capital already sits */

.firm-extras {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.listing { font-size: 0.9375rem; color: var(--ink-soft); }

.listing-head {
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.listing li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.listing a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.listing a:hover { border-bottom-color: var(--teal); }

.not-a-fit {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  max-width: 44ch;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.not-a-fit-head {
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.not-a-fit li {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- colophon ---------- */

.colophon {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  font-size: 0.875rem;
}

.colophon img { width: auto; height: 78px; }
.colophon-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

/* ---------- narrow screens: the line moves to the margin ---------- */

@media (max-width: 56em) {
  .masthead { padding-top: 1.125rem; }
  .brand img { height: 60px; }
  .masthead-nav { display: none; }

  .hero,
  .band {
    grid-template-columns: minmax(0, 1fr);
    padding-left: calc(var(--gutter) + 1.5rem);
    padding-right: var(--gutter);
  }

  .hero::before,
  .band::before { left: var(--gutter); }

  .hero-inner,
  .hero-foot,
  .band-body,
  .ledger,
  .terms,
  .mandate-foot { grid-column: 1; }

  .band-label {
    grid-column: 1;
    text-align: left;
    padding: 0 0 1rem;
  }

  .ledger li,
  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.35rem;
  }

  .firm-extras { grid-template-columns: minmax(0, 1fr); }

  .from,
  .to,
  .terms dt,
  .terms dd { grid-column: 1; text-align: left; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
