/* ============================================================
   KLEAR INVESTMENTS — quiet private-capital aesthetic
   Fraunces (display) · Instrument Sans (body)
   ============================================================ */

:root {
  --ink: #14231d;
  --ink-soft: #3d4a44;
  --paper: #f6f2e9;
  --paper-deep: #ede7d8;
  --brass: #a8874e;
  --brass-soft: #c3a877;
  --line: rgba(20, 35, 29, 0.16);
  --line-strong: rgba(20, 35, 29, 0.32);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body.inverted {
  background: var(--ink);
  color: var(--paper);
}

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

/* ---------- type helpers ---------- */

.display {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.04;
}

.label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--brass);
}

.inverted .label { color: var(--brass-soft); }

/* ---------- shell ---------- */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.inverted header.site {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  border-bottom: 1px solid rgba(246, 242, 233, 0.14);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark .tick {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--brass);
  transform: translateY(-1px) rotate(45deg);
}

.wordmark small {
  font-family: "Instrument Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.inverted .wordmark small { color: rgba(246,242,233,.55); }

nav.primary { display: flex; gap: clamp(18px, 3vw, 40px); }

nav.primary a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.66;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s, border-color 0.25s;
}

nav.primary a:hover { opacity: 1; border-color: var(--brass); }
nav.primary a.active { opacity: 1; border-color: var(--brass); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(84px, 14vh, 160px) 0 clamp(60px, 9vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero .kicker {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero .kicker::after {
  content: "";
  height: 1px;
  width: 64px;
  background: var(--brass);
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 92px);
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--brass);
}

.hero .standfirst {
  margin-top: 36px;
  max-width: 54ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
}

.inverted .hero .standfirst { color: rgba(246,242,233,.72); }

/* staggered load-in */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.9s cubic-bezier(.2,.65,.25,1) forwards; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.34s; }
.rise.d4 { animation-delay: 0.48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- section scaffolding ---------- */

section.block {
  padding: clamp(56px, 9vh, 110px) 0;
  border-top: 1px solid var(--line);
}

.inverted section.block { border-top: 1px solid rgba(246,242,233,.14); }

.block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  margin-bottom: clamp(36px, 6vh, 64px);
}

.block-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
}

.block-head p { color: var(--ink-soft); max-width: 58ch; }
.inverted .block-head p { color: rgba(246,242,233,.72); }

@media (max-width: 760px) {
  .block-head { grid-template-columns: 1fr; }
}

/* ---------- division index (home) ---------- */

.divisions { border-top: 1px solid var(--line-strong); }

.division-row {
  display: grid;
  grid-template-columns: 72px minmax(0,1.15fr) minmax(0,1.6fr) auto;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding: clamp(26px, 4.5vh, 44px) 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, padding-left 0.3s;
}

.division-row:hover { background: var(--paper-deep); padding-left: 14px; }

.division-row .no {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--brass);
}

.division-row h3 {
  font-family: "Fraunces", serif;
  font-weight: 420;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
}

.division-row .gist {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.division-row .go {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  white-space: nowrap;
}

.division-row .go::after { content: " →"; transition: margin-left .25s; }
.division-row:hover .go::after { margin-left: 6px; }

@media (max-width: 760px) {
  .division-row { grid-template-columns: 40px 1fr; }
  .division-row .gist, .division-row .go { grid-column: 2; }
}

/* ---------- principle list (home) ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.principles article { border-top: 2px solid var(--ink); padding-top: 22px; }
.principles h3 { font-family: "Fraunces", serif; font-weight: 480; font-size: 21px; margin-bottom: 10px; }
.principles p { font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- entity grid (division pages) ---------- */

.entities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.entity {
  background: var(--paper);
  padding: 30px 26px 36px;
  transition: background 0.3s;
}

.entity:hover { background: var(--paper-deep); }

.entity .where {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}

.entity h3 {
  font-family: "Fraunces", serif;
  font-weight: 460;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.entity p { font-size: 14.5px; color: var(--ink-soft); }

.inverted .entities { background: rgba(246,242,233,.16); border-color: rgba(246,242,233,.16); }
.inverted .entity { background: var(--ink); }
.inverted .entity:hover { background: #1b2e26; }
.inverted .entity p { color: rgba(246,242,233,.66); }

/* ---------- footprint strip ---------- */

.footprint {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footprint span {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.footprint span::before { content: "◆ "; color: var(--brass); font-size: 9px; vertical-align: 2px; }

.inverted .footprint { border-color: rgba(246,242,233,.14); }
.inverted .footprint span { color: rgba(246,242,233,.6); }

/* ---------- big statement ---------- */

.statement {
  font-family: "Fraunces", serif;
  font-weight: 380;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.22;
  max-width: 26ch;
}

.statement em { font-style: italic; color: var(--brass); }

/* ---------- footer ---------- */

footer.site {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(60px, 10vh, 120px);
}

.inverted footer.site { border-top: 1px solid rgba(246,242,233,.14); margin-top: 0; }

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) clamp(20px, 4vw, 48px) 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246,242,233,.16);
}

.foot-grid .fm {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

.foot-grid h4 {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 14px;
}

.foot-grid a, .foot-grid p {
  color: rgba(246,242,233,.72);
  text-decoration: none;
  font-size: 15px;
  display: block;
  margin-bottom: 8px;
}

.foot-grid a:hover { color: var(--paper); }

.colophon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(246,242,233,.45);
}

@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- gaming (inverted) specifics ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.pillars article {
  border-top: 2px solid var(--brass);
  padding-top: 22px;
}

.pillars h3 { font-family: "Fraunces", serif; font-weight: 460; font-size: 21px; margin-bottom: 10px; }
.pillars p { font-size: 15.5px; color: rgba(246,242,233,.68); }

@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.discreet {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(246,242,233,.45);
}
