/* Conifer company page.
   Structure: product bar, header, hero, what we do, backers, footer.
   Everything sits on one centred column, so every edge on the page lines up. */

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.woff2") format("woff2");
  font-weight: 200 600;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;

  --white: #ffffff;
  --black: #000000;
  --night: #07090f;
  --panel: #101216;
  --ink: oklch(0.24 0.055 262);
  --ink-2: oklch(0.46 0.03 262);
  --line: oklch(0.24 0.055 262 / 0.16);
  --on-dark-2: oklch(1 0 0 / 0.72);
  --signal: oklch(0.44 0.095 168);

  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --gutter: 32px;
  --inset: clamp(20px, 3vw, 44px);
  --header-height: 72px;
  --product-bar-height: 30px;
  --section-gap: clamp(80px, 11vw, 168px);
  --heading-gap: clamp(32px, 4.2vw, 64px);
  --grid-gap: 16px;
  --logo-mark: 32px;
  --column: min(calc(100vw - var(--gutter) * 2), 1452px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, figure { margin: 0; padding: 0; font-weight: inherit; }
ul { list-style: none; }

/* 100vw includes a classic scrollbar and 100% does not, so this centres the column in
   the whole window while the black bar still runs edge to edge. */
.column {
  width: var(--column);
  margin-left: calc((100vw - var(--column)) / 2);
  margin-right: 0;
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.product-bar :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
}

.skip-link:focus { top: 8px; }

/* Product bar */
.product-bar { background: var(--black); color: var(--white); }

.product-bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--product-bar-height);
  font-size: 13px;
}

.product-bar a { display: inline-flex; align-items: center; height: var(--product-bar-height); color: inherit; text-decoration: none; }
.product-bar a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product-bar-label { font-weight: 600; }
.product-bar-rule { width: 1px; height: 13px; margin-inline: -14px; background: oklch(1 0 0 / 0.55); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line); /* a shadow, so the header keeps its exact height */
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  height: var(--header-height);
}

.site-nav { display: flex; gap: 32px; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Logo lockup: every proportion is its value on the conifer.build hero, at a 95.04px
   mark (gap 20, rule 63.36 x 1 at 45%, word 72px), scaled from --logo-mark. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: calc(var(--logo-mark) * 20 / 95.04);
  color: var(--ink);
  text-decoration: none;
}

.logo-on-dark { color: var(--white); }

.logo-mark {
  display: block;
  flex: 0 0 auto;
  width: var(--logo-mark);
  height: var(--logo-mark);
}

.logo-rule {
  flex: 0 0 auto;
  width: 1px;
  height: calc(var(--logo-mark) * 2 / 3);
  background: currentColor;
  opacity: 0.45;
}

.logo-word {
  font-size: calc(var(--logo-mark) * 72 / 95.04);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.site-header .logo { margin-left: calc(var(--logo-mark) * -0.047); } /* optical: the outer scales sit inside their box */

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms linear;
}

.pill:hover { background: oklch(0.9 0.01 262); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  height: min(calc((100svh - var(--product-bar-height) - var(--header-height) - 16px) * 1.1), 61.9vw, 816px);
  min-height: 594px;
  padding: 40px var(--inset);
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero::after { /* a calm ground for the copy, in the lower half only */
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, oklch(0.12 0.02 262 / 0.82));
}

.hero-copy, .hero-cards { position: relative; z-index: 1; }
.hero-copy { max-width: 780px; margin-left: -12px; }

h1 {
  font-size: clamp(37px, 3.85vw, 57px);
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.14;
  text-wrap: balance;
}

.hero-copy .pill { margin-top: 28px; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
  margin-top: 22px;
  color: oklch(1 0 0 / 0.78);
  font-size: 13px;
  text-decoration: none;
}

.scroll-cue span { display: block; width: 1px; height: 36px; background: oklch(1 0 0 / 0.6); }
.scroll-cue:hover { color: var(--white); }

.hero-cards {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  width: 384px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  padding: 8px 8px 8px 4px;
  background: var(--panel);
  color: var(--white);
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
}

.hero-card img { display: block; width: 100%; height: 104px; object-fit: contain; }
.hero-card span { padding-block: 8px; padding-right: 10px; }
.hero-card small { display: block; margin-bottom: 8px; padding-right: 26px; color: var(--on-dark-2); font-size: 13px; }
.hero-card:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.card-arrow {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 120ms linear, stroke 120ms linear;
}

.card-arrow circle { stroke-opacity: 0.45; }
.hero-card:hover .card-arrow { fill: var(--white); }
.hero-card:hover .card-arrow path { stroke: var(--panel); }

/* What we do */
.what {
  padding-top: var(--section-gap);
  text-align: center;
}

.what-label { color: var(--black); font-size: 17px; font-weight: 600; }

.what-title {
  margin-top: 20px;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.024em;
  line-height: 1.08;
  text-wrap: balance;
}

.what-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--heading-gap);
}

.what-images figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); }
.what-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.what-images .what-image-art { padding: 7% 7% 13%; object-fit: contain; }

.what-images figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to bottom, transparent, rgb(5 8 18 / 0.82));
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

/* A black frame around a sharp white box */
.statement-frame { margin-top: var(--grid-gap); padding: clamp(10px, 2.2vw, 32px); background: var(--black); }
.statement { padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px); background: var(--white); }

.statement p {
  max-width: 38em;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(20px, 1.75vw, 24px);
  font-style: italic;
  line-height: 1.42;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* Home sections below What we do */
.what-lead { max-width: 44em; margin: clamp(20px, 2.4vw, 32px) auto 0; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; text-wrap: pretty; }
.home-section { padding-top: var(--section-gap); }
.home-backers { padding-bottom: var(--section-gap); text-align: center; }
@media (min-width: 900px) and (max-width: 1320px) { .home-backers .backers { --s: 0.84; gap: 8px 24px; } }
.section-title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; letter-spacing: -0.024em; line-height: 1.08; }
.numbers { text-align: center; }
.numbers .what-title { margin-top: 0; }
.numbers .stat-note { text-align: left; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); margin-top: var(--heading-gap); }
.stat-grid > li { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 32px); background: var(--night); color: var(--white); text-align: left; }
.stat-grid img { display: block; width: 100%; height: auto; }
.stat-grid strong { display: block; margin-top: clamp(20px, 2.4vw, 36px); font-size: clamp(44px, 4.8vw, 72px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-grid span { display: block; margin: 12px 0 0; color: var(--on-dark-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.35; text-wrap: pretty; }
.stat-note { max-width: 62em; margin-top: 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.stat-note a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.home-backers { padding-top: var(--section-gap); }
@media (max-width: 899px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* Backers: the funds carry it, the angels are one quiet line */
.backers-title { font-size: 18px; font-weight: 600; }

.backers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 40px;
  margin-top: clamp(20px, 2.2vw, 30px);
}

.backers li { display: flex; align-items: center; }

.backers a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  transition: opacity 120ms linear;
}

.backers a:hover { opacity: 0.65; }
.backers img { display: block; width: auto; height: calc(var(--h) * var(--s, 1)); }
.backers span { color: #111111; font-size: calc(22px * var(--s, 1)); font-weight: 500; letter-spacing: -0.015em; }

.angels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
  margin-top: clamp(18px, 2vw, 26px);
  color: var(--ink-2);
  font-size: 14px;
}

.angel-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; }
.angel-logos li { display: flex; align-items: center; gap: 6px; }
.angel-logos img { display: block; }
.angel-logos span { letter-spacing: 0; }

/* Footer: a full-width black band, closing the page the way the product bar opens it */
.site-footer { background: var(--black); color: var(--white); }

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: clamp(40px, 5vw, 72px);
  font-size: 14px;
}

.site-footer-inner p { color: var(--on-dark-2); }

/* Below 1100px: the cards would run into the banner, so copy and cards stack under it,
   the photo zooms past the exit sign, and the scroll cue goes because the cards follow. */
@media (max-width: 1099px) {
  .backers { justify-content: center; }
  .scroll-cue { display: none; }
  .hero-copy { margin-left: 0; }
}

@media (min-width: 810px) and (max-width: 1099px) {
  .hero { display: block; height: auto; min-height: 0; padding: calc(var(--column) * 0.42) 32px 32px; }
  .hero-image { inset: calc(var(--column) * -0.14) auto auto -15%; width: 130%; height: auto; object-fit: fill; }
  .hero::after { inset: calc(var(--column) * 0.3) 0 0; background: linear-gradient(to bottom, transparent, var(--night) 26%); }
  .hero-cards { flex-direction: row; width: 100%; margin-top: 28px; }
  .hero-card { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 809px) {
  :root { --gutter: 20px; --header-height: 64px; --logo-mark: 30px; --product-bar-height: 36px; }

  .product-bar-inner { gap: 20px; }
  .product-bar-rule { margin-inline: -10px; }
  .site-header-inner { gap: 20px; }

  .hero { display: block; height: auto; min-height: 0; padding: 286px 16px 16px; }
  .hero-image { inset: -64px auto auto -40%; width: 180%; height: auto; object-fit: fill; } /* keeps the banner readable above the copy */
  .hero::after { inset: 220px 0 0; background: linear-gradient(to bottom, transparent, var(--night) 34%); }
  h1 { font-size: clamp(24px, 7.4vw, 34px); } /* holds "critical AI operations" on one line, down to 320px */
  .hero-cards { width: 100%; margin-top: 28px; }
  .hero-card { grid-template-columns: clamp(104px, 34vw, 132px) 1fr; }
  .hero-card img { height: 93px; }

  .what-images { grid-template-columns: minmax(0, 1fr); }
  .what-images figure { aspect-ratio: 16 / 10; }

  .backers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; justify-items: center; }
  .backers li, .backers a { min-width: 0; max-width: 100%; }
  .backers img { max-width: 100%; height: calc(var(--h) * 0.8); object-fit: contain; }
  .backers span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .card-arrow, .backers a { transition: none; }
}

/* Subpages */
.page-head { padding-block: clamp(64px, 8vw, 120px) var(--heading-gap); }
.page-label { font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 16px; }
.page-head h1 { max-width: 20em; color: var(--ink); font-size: clamp(38px, 5vw, 72px); letter-spacing: -0.028em; line-height: 1.05; }
.page-line a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-line { max-width: 34em; margin-top: 20px; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.dark-pill { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; padding-inline: 22px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 16px; font-weight: 500; text-decoration: none; }
.dark-pill:hover { background: oklch(0.33 0.06 262); }
.block { padding-block: 0 clamp(56px, 7vw, 112px); }
.block:last-of-type { padding-bottom: var(--section-gap); }
.block > h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.02em; }
.block-line { max-width: 44em; margin-top: 18px; font-size: 18px; line-height: 1.45; }
.block a, .rows a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rows { margin: clamp(20px, 2vw, 28px) 0 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-size: 18px; font-weight: 500; }
.rows dd { margin: 0; max-width: 44em; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.rows code { font-size: 0.92em; }
.block .backers { margin-top: 20px; }
.block .angels { justify-content: flex-start; }






@media (max-width: 809px) {
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
}



.page-head h1 + .page-line { margin-top: 20px; }

/* Short pages: the footer sits at the bottom of the window. */
body { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1 0 auto; }

/* One row while it fits; on phones, two rows, so every item stays visible. */
.site-nav-right { margin-left: auto; }
@media (max-width: 899px) {
  .site-header-inner { gap: 24px; }
  .site-nav { gap: 20px; }
  .site-nav a, .nav-dropdown summary { font-size: 15px; }
}
@media (max-width: 679px) {
  .site-header-inner { flex-wrap: wrap; gap: 0 12px; height: auto; padding-block: 8px 4px; }
  .site-nav-right { gap: 14px; }
  .site-nav-left { order: 3; flex-basis: 100%; gap: 20px; }
  .site-nav a, .nav-dropdown summary { min-height: 36px; }
}
@media (max-width: 379px) {
  .site-header .logo-rule, .site-header .logo-word { display: none; }
}

/* Page map */
.doc-map { columns: 3 260px; column-gap: 32px; margin-top: 20px; }
.doc-map li { break-inside: avoid; padding-block: 7px; font-size: 16px; }
.doc-map span { display: block; color: var(--ink-2); font-size: 13px; }

/* Products dropdown */
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-size: 16px; cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-dropdown svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 120ms linear; }
.nav-dropdown[open] svg { transform: rotate(180deg); }
.nav-dropdown-panel { position: absolute; top: calc(100% + 14px); left: -14px; z-index: 30; display: flex; flex-direction: column; width: max-content; min-width: calc(100% + 28px); padding: 8px 0; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 12px 28px rgb(0 0 0 / 0.1); }
.site-nav .nav-dropdown-panel a { min-height: 36px; padding-inline: 14px; }
.site-nav .nav-dropdown-panel a:hover { background: oklch(0.97 0.004 262); text-decoration: none; }
@media (max-width: 809px) {
  .nav-dropdown summary { font-size: 15px; }
  .nav-dropdown-panel { top: calc(100% + 10px); }
}
@media (max-width: 679px) {
  .nav-dropdown-panel { top: calc(100% + 4px); }
}
@media (prefers-reduced-motion: reduce) { .nav-dropdown svg { transition: none; } }

/* News */
.news-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; color: inherit; text-decoration: none; }
.news-feature img { display: block; width: 100%; height: auto; }
.news-date { color: var(--ink-2); font-size: 16px; }
.news-feature h2 { margin-top: 10px; color: var(--ink); font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; letter-spacing: -0.024em; line-height: 1.08; }
.news-feature:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.news-line { margin-top: 14px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }

/* Careers */
.roles { margin-top: 0; }
.roles > div { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding-block: 26px; }
.roles dt { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.015em; }
.roles dd { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.careers-apply { margin-top: 32px; font-size: 18px; line-height: 1.45; }

/* Investors: a sharp wall of cells, one per fund */
.backer-wall .backers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; padding: 1px; background: var(--line); }
.backer-wall .backers li { justify-content: center; min-height: clamp(120px, 12vw, 172px); background: var(--white); }
.backer-wall .backers a { padding: 16px; }
.block .angels { margin-top: 24px; }

/* Forms: contact and investor login */
.form-row input, .form-row select, .form-row textarea { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid oklch(0.24 0.055 262 / 0.34); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.4; }
.form-row textarea { resize: vertical; }
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; }
.form-row [aria-invalid] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.form-row label { color: var(--ink); font-size: 17px; font-weight: 500; }
.form-error { margin-top: 6px; color: var(--ink); font-size: 15px; font-weight: 500; }
.form-hint { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.form-status { color: var(--ink); font-size: 16px; line-height: 1.4; }
button.dark-pill { border: 0; font-family: inherit; cursor: pointer; }
button.dark-pill:disabled { opacity: 0.6; cursor: default; }
.contact-form { display: block; }
.topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.topics legend { padding: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.02em; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 24px; padding: 1px; background: var(--line); }
.topic-grid label { position: relative; display: block; background: var(--white); cursor: pointer; }
.topic-grid input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.topic-grid span { display: flex; align-items: center; min-height: clamp(72px, 7vw, 96px); padding: 12px clamp(16px, 2vw, 28px); font-size: clamp(17px, 1.5vw, 20px); }
.topic-grid label:hover span { background: oklch(0.97 0.004 262); }
.topic-grid input:checked + span { background: var(--black); color: var(--white); }
.topic-grid input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-fields { margin-top: clamp(32px, 4vw, 48px); }
.contact-fields .form-row, .form-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); gap: 8px 24px; padding-block: 14px; }
.contact-fields .form-row[hidden], .contact-fields[hidden] { display: none; }
.contact-fields .form-row label { padding-top: 12px; }
.contact-fields .form-row > div { max-width: 680px; }
.form-actions { align-items: center; padding-top: 18px; }
.form-actions button { grid-column: 2; justify-self: start; margin-top: 0; }
.form-actions .form-status { grid-column: 2; max-width: 680px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login-form { display: grid; gap: 20px; width: min(100%, 440px); }
.login-form .form-row label { display: block; margin-bottom: 8px; }
.login-form button { justify-self: start; margin-top: 4px; }
.login-help { color: var(--ink-2); font-size: 16px; }

@media (max-width: 809px) {
  .news-feature { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-fields .form-row, .form-actions { grid-template-columns: 1fr; }
  .contact-fields .form-row label { padding-top: 0; }
  .form-actions button, .form-actions .form-status { grid-column: 1; }
  .backer-wall .backers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backer-wall .backers li { min-height: 104px; }
}

/* Footer legal links */
.site-footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-footer-meta nav { display: flex; gap: 20px; }
.site-footer-meta a { color: inherit; text-decoration: none; }
.site-footer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Legal documents */
.legal { padding-block: clamp(64px, 8vw, 120px) var(--section-gap); }
.legal-kicker { margin-bottom: 16px; color: var(--black); font-size: 17px; font-weight: 600; }
.legal-title { color: var(--ink); font-size: clamp(38px, 5vw, 72px); font-weight: 400; letter-spacing: -0.028em; line-height: 1.05; }
.legal-meta { margin-top: 18px; color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.legal-summary { max-width: 34em; margin-top: 14px; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; text-wrap: pretty; }
.legal-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 88px); margin-top: var(--heading-gap); padding-top: var(--heading-gap); border-top: 1px solid var(--line); }
.legal-body:not(:has(.legal-toc)) { grid-template-columns: minmax(0, 1fr); }
.legal-preamble, .legal-sec { grid-column: -2 / -1; min-width: 0; }
.legal-toc { position: sticky; top: calc(var(--header-height) + 24px); grid-column: 1; grid-row: 1 / span 40; align-self: start; max-height: calc(100dvh - var(--header-height) - 48px); overflow-y: auto; font-size: 14.5px; }
.legal-toc ol { padding: 0; list-style: none; }
.legal-toc-title { margin-bottom: 10px; color: var(--black); font-weight: 600; }
.legal-toc li { padding-block: 5px; line-height: 1.3; }
.legal-toc a { display: flex; gap: 8px; color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-sec { margin-top: clamp(40px, 4.4vw, 64px); scroll-margin-top: calc(var(--header-height) + 24px); }
.legal-h { display: flex; gap: 0.5em; color: var(--ink); font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.018em; line-height: 1.2; }
.legal-h .legal-num { color: var(--ink-2); }
.legal-sub { margin-top: 26px; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.3; }
.legal-prose { max-width: 46em; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.legal-body:not(:has(.legal-toc)) .legal-prose { max-width: none; }
.legal-prose > * + *, .legal-sec > .legal-prose { margin-top: 14px; }
.legal-prose strong { color: var(--ink); font-weight: 500; }
.legal-prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-prose ul, .legal-prose ol { padding-left: 1.25em; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li { margin-top: 6px; }
.legal-prose code { color: var(--ink); font-size: 0.9em; overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; }
.legal-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal-table-wrap th { padding: 10px 16px 10px 0; color: var(--ink); font-weight: 500; text-align: left; vertical-align: bottom; border-bottom: 1px solid oklch(0.24 0.055 262 / 0.34); }
.legal-table-wrap td { padding: 12px 16px 12px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
@media (max-width: 899px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); }
  .legal-preamble, .legal-sec, .legal-toc { grid-column: 1; grid-row: auto; }
  .legal-toc { position: static; max-height: none; margin-top: 28px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
}
