/* ============================================================
   InferenceIM — Inference Investment Management, preview build
   Paper-and-ink academic minimalism, one dark contrast band.
   Newsreader (serif, text) · IBM Plex Mono (labels, figures)
   Accent: client blue #305393
   ============================================================ */

:root {
  --paper: #f7f6f2;
  --ink: #14161a;
  --ink-70: rgba(20, 22, 26, 0.7);
  --ink-45: rgba(20, 22, 26, 0.45);
  --hairline: rgba(20, 22, 26, 0.14);
  --accent: #305393;
  --dark: #10141f;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

section[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--serif);
  font-optical-sizing: auto;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nt { text-transform: none; }

/* ---------- field canvases ---------- */
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- notice bar ---------- */
.notice-bar {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px var(--pad);
  color: var(--paper);
  background: var(--ink);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wm-im { color: var(--accent); font-style: italic; font-weight: 400; }

.wordmark-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 2px;
  font-style: normal;
}

.site-nav { display: flex; gap: clamp(14px, 2.5vw, 36px); }

.site-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.site-nav .nav-cta { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 160px) var(--pad) 0;
  overflow: hidden;
}

.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 12em;
}

.hero-sub {
  margin-top: 36px;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-70);
}

.hero-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- mark interlude ---------- */
.interstitial { height: 240vh; position: relative; }

.interstitial-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  overflow: hidden;
  padding: 0 var(--pad);
}

.interstitial-logo {
  width: auto;
  height: auto;
  max-width: min(78vw, 760px);
  max-height: 56vh;
  opacity: 0;
  will-change: transform, opacity;
}

.interstitial-copy {
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  opacity: 0;
  will-change: transform, opacity;
}

.reduced-motion .interstitial { height: auto; }
.reduced-motion .interstitial-sticky { position: static; height: auto; padding: clamp(90px, 14vh, 170px) var(--pad); }
.reduced-motion .interstitial-logo,
.reduced-motion .interstitial-copy { opacity: 1 !important; transform: none !important; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }

.btn-ghost:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.hero-foot {
  position: relative;
  max-width: var(--max);
  margin: auto auto 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-45);
}

/* ---------- sections ---------- */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) var(--pad);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: clamp(32px, 5vw, 90px);
}

/* keep text above any field canvas */
.section-head, .section-body { position: relative; }

.rule {
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.section-head h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.lede {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 20em;
  margin-bottom: clamp(36px, 5vh, 60px);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  color: var(--ink-70);
}

/* ---------- method ---------- */
.method-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.method-grid li {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.method-no { display: block; color: var(--accent); margin-bottom: 40px; }

.method-grid h3 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.method-grid p { color: var(--ink-70); font-size: 17px; }

/* ---------- dark band (governance) ---------- */
.band-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  --ink: #f7f6f2;
  --ink-70: rgba(247, 246, 242, 0.72);
  --ink-45: rgba(247, 246, 242, 0.48);
  --hairline: rgba(247, 246, 242, 0.16);
}

/* ---------- governance ---------- */
.gov-list {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.gov-list > div {
  padding: 24px 24px 24px 0;
}

.gov-list > div + div { border-left: 1px solid var(--hairline); padding-left: 24px; }

.gov-list dt { color: var(--ink); margin-bottom: 10px; }

.gov-list dd { color: var(--ink-70); font-size: 16px; line-height: 1.55; }

/* ---------- team ---------- */
.team-grid {
  list-style: none;
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.team-grid li {
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}

.team-mark {
  width: 74px;
  height: 74px;
  margin-bottom: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.85;
}

.team-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.team-role { color: var(--ink-45); margin-bottom: 14px; }

.team-bio {
  font-style: italic;
  font-size: 16px;
  color: var(--ink-45);
}

/* ---------- contact form ---------- */
.contact-form { max-width: 560px; }

.form-row { margin-bottom: 26px; }

.form-row label {
  display: block;
  color: var(--ink-45);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-45);
  padding: 6px 0 10px;
  border-radius: 0;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-row textarea { resize: vertical; }

.form-note {
  font-size: 14px;
  color: var(--ink-45);
  margin-bottom: 28px;
  max-width: 32em;
}

.form-sent { margin-top: 16px; color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 246, 242, 0.75);
  padding: clamp(60px, 8vh, 100px) var(--pad) 40px;
  margin-top: clamp(60px, 10vh, 120px);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 6vh, 70px);
  border-bottom: 1px solid rgba(247, 246, 242, 0.18);
}

.footer-wordmark {
  font-size: 26px;
  font-weight: 400;
  color: var(--paper);
}

.footer-wordmark .wm-im { color: #7a9dd6; }

.footer-wordmark span:not(.wm-im) {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.5);
  margin-top: 4px;
  font-style: normal;
}

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

.footer-links a {
  color: rgba(247, 246, 242, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--paper); }

.footer-links .linkedin { display: inline-flex; line-height: 0; }

.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(36px, 5vh, 56px);
}

.footer-legal h2 {
  font-weight: 500;
  color: rgba(247, 246, 242, 0.5);
  margin-bottom: 20px;
}

.footer-legal p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 62em;
  margin-bottom: 16px;
  color: rgba(247, 246, 242, 0.6);
}

.footer-fine {
  margin-top: 36px;
  color: rgba(247, 246, 242, 0.4);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .section { grid-template-columns: 1fr; gap: 28px; }
  .site-header { flex-direction: column; gap: 14px; align-items: flex-start; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-foot { flex-wrap: wrap; gap: 12px; margin-top: 60px; }
  .interstitial { height: 180vh; }
}
