/* Semper Equity — site styles. No framework, no third-party requests. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0f1215;          /* page dark */
  --ink-2: #161a1e;        /* raised dark */
  --paper: #f3efe7;        /* ivory */
  --paper-2: #ebe5da;
  --text-dark: #1b1e21;    /* on paper — 15.6:1 */
  --muted-dark: #565a5e;   /* on paper — 6.2:1 */
  --text-light: #ece8e1;   /* on ink — 15.9:1 */
  --muted-light: #a3a7ab;  /* on ink — 7.9:1 */
  --brass: #b39b72;        /* on ink — 7.2:1 (hairlines, labels) */
  --brass-deep: #6f5d3e;   /* on paper — 5.6:1 */
  --rule-dark: rgba(236, 232, 225, 0.14);
  --rule-light: rgba(27, 30, 33, 0.14);

  --serif: "Cormorant", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --max: 82rem;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--brass-deep); }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--paper); color: var(--text-dark);
  padding: .6rem 1rem; font-size: .8125rem; letter-spacing: .04em;
}
.skip:focus { top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Labels / small type ---------- */
.label {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
}
.paper .label { color: var(--brass-deep); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
}
.brand { display: inline-flex; align-items: center; gap: .9rem; color: var(--text-light); }
.brand-mark { width: 2rem; height: auto; color: var(--text-light); }
.brand-word {
  font-family: var(--sans); font-weight: 500; font-size: .75rem;
  letter-spacing: .34em; text-transform: uppercase; white-space: nowrap;
}
.nav a {
  font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted-light);
  padding: .5rem 0; border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav a:hover { color: var(--text-light); border-bottom-color: var(--brass); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 10%, #1a1f24 0%, rgba(15,18,21,0) 60%),
    var(--ink);
}
.hero-mark {
  position: absolute; z-index: -1;
  right: -6vw; top: 50%; transform: translateY(-52%);
  width: min(62vw, 54rem);
  color: var(--text-light); opacity: .045;
  pointer-events: none;
}
.hero .wrap { padding-bottom: clamp(4rem, 11vh, 8rem); padding-top: 9rem; }
.hero .label { display: block; margin-bottom: 2rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.75rem, 7.4vw, 6.75rem);
  line-height: .98; letter-spacing: -.012em;
  max-width: 11ch;
  color: var(--text-light);
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-sub {
  margin-top: 2.25rem; max-width: 30rem;
  color: var(--muted-light); font-size: 1rem; line-height: 1.7;
}
.hero-rule {
  display: block; width: 3.5rem; height: 1px; background: var(--brass);
  margin-top: 2.75rem; opacity: .8;
}

/* ---------- Image band (home) ---------- */
.arch-band { margin: 0; position: relative; background: var(--ink); overflow: hidden; }
.arch-band img {
  display: block; width: 100%; height: clamp(18rem, 52vw, 44rem);
  object-fit: cover; object-position: 62% 55%;
  filter: grayscale(1) contrast(1.02); opacity: .92;
}
.arch-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(15,18,21,0) 22%, rgba(15,18,21,0) 85%, rgba(243,239,231,.18) 100%);
}

/* ---------- Paper sections ---------- */
.paper { background: var(--paper); color: var(--text-dark); }
.paper .muted { color: var(--muted-dark); }

.approach { padding: clamp(5rem, 13vw, 10rem) 0; }
.approach-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem;
}
@media (min-width: 64rem) {
  .approach-grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; }
}
.statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  line-height: 1.22; letter-spacing: -.005em;
  max-width: 26ch; color: var(--text-dark); text-wrap: balance;
}
.approach-body { margin-top: 2.5rem; max-width: var(--measure); color: var(--muted-dark); }
.approach-links {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule-light);
  display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; max-width: 44rem;
}

.textlink {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .8125rem; letter-spacing: .04em;
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
  transition: opacity .3s ease, gap .3s ease;
}
.textlink:hover { gap: .9rem; }
.textlink .arrow { font-family: var(--sans); }
.textlink.quiet { border-bottom-color: var(--rule-light); }
.textlink.quiet:hover { border-bottom-color: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); font-size: .75rem; letter-spacing: .03em; }
.site-footer .wrap {
  padding-top: 3rem; padding-bottom: 3rem;
  display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; gap: 3rem; }
}
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text-light); }
.footer-brand .brand-mark { width: 1.35rem; }
.footer-meta { color: var(--muted-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer-links a { color: var(--muted-light); transition: color .3s ease; }
.footer-links a:hover { color: var(--text-light); }
.footer-legal {
  grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  color: #8c9095; /* 5.9:1 on ink */
}

/* ---------- Partners page ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 120% at 90% 0%, #1a1f24 0%, rgba(15,18,21,0) 60%),
    var(--ink);
}
.page-head .wrap { padding-top: clamp(9rem, 20vw, 13rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.page-head .label { display: block; margin-bottom: 1.75rem; }
.page-head h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -.01em;
  max-width: 18ch;
}
.page-head .lede { margin-top: 2rem; max-width: 34rem; color: var(--muted-light); }
.page-head .hero-mark { width: min(44vw, 34rem); right: -4vw; opacity: .04; }

.toc {
  margin-top: 3.5rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
}
.toc a { color: var(--muted-light); transition: color .3s ease; }
.toc a:hover { color: var(--text-light); }
.toc span { color: var(--brass); margin-right: .5rem; }

.sections { padding: clamp(2rem, 6vw, 4rem) 0 clamp(5rem, 10vw, 8rem); }
.section {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule-light);
  scroll-margin-top: 2rem;
}
.section:first-child { border-top: 0; }
@media (min-width: 64rem) {
  .section { grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; }
  .section-label { position: sticky; top: 2.5rem; align-self: start; }
}
.section-label { display: flex; align-items: baseline; gap: .9rem; }
@media (min-width: 64rem) { .section-label { display: block; } }
.section-label .num {
  display: block; font-family: var(--serif); font-size: 1.125rem; color: var(--brass-deep);
  margin-bottom: .4rem; letter-spacing: .02em;
}
.section h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15;
  max-width: 26ch; margin-bottom: 1.75rem; color: var(--text-dark);
}
.section .prose { max-width: var(--measure); color: var(--muted-dark); }
.section .prose p + p { margin-top: 1.1rem; }

.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 52rem; }
@media (min-width: 48rem) { .items.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; } }
.item { padding: 1.6rem 0; border-top: 1px solid var(--rule-light); }
.item h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.3;
  color: var(--text-dark); margin-bottom: .5rem;
}
.item p { color: var(--muted-dark); font-size: .9375rem; line-height: 1.65; }
.item .idx { font-family: var(--serif); color: var(--brass-deep); margin-right: .6rem; font-size: 1.125rem; }

.group + .group { margin-top: 3rem; }
.group-title { margin-bottom: .25rem; }

.sector-block + .sector-block { margin-top: 2.5rem; }
.sector-list {
  margin-top: 1rem; max-width: 46rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 2rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.7; color: var(--text-dark);
}
@media (min-width: 48rem) { .sector-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.materials {
  background: var(--ink); color: var(--text-light);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 5vw, 4rem);
  max-width: 52rem;
}
.materials h2 { color: var(--text-light); margin-bottom: 1.25rem; }
.materials p { color: var(--muted-light); max-width: 32rem; }
.materials .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.button {
  display: inline-flex; align-items: center; gap: .75rem;
  border: 1px solid var(--brass); color: var(--text-light);
  padding: .95rem 1.6rem; font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
.button:hover { background: var(--brass); color: var(--ink); }
.materials .email { color: var(--muted-light); font-size: .875rem; border-bottom: 1px solid var(--rule-dark); padding-bottom: .15rem; }
.materials .email:hover { color: var(--text-light); border-bottom-color: var(--brass); }

.disclaimer { margin-top: 3rem; max-width: 46rem; font-size: .75rem; line-height: 1.6; color: var(--muted-dark); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.notfound h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; margin: 1.5rem 0 2rem; }
.notfound p { color: var(--muted-light); max-width: 28rem; margin-bottom: 2.5rem; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero-mark, .toc, .skip { display: none !important; }
  .hero, .page-head, .materials, .site-footer { background: #fff !important; color: #000 !important; }
  .hero { min-height: auto; }
  .hero h1, .page-head h1, .materials h2 { color: #000; }
  .hero-sub, .lede, .materials p, .footer-meta, .footer-links a, .footer-legal { color: #333 !important; }
  .section { break-inside: avoid; }
  a.email::after { content: " (" attr(href) ")"; font-size: .8em; }
}
