/* Munte Capital — site styles. No external resources: fonts, images and scripts are all same-origin. */

@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/Spectral-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-var.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }

:root {
  /* brand (from the Munte Capital logo) */
  --graphite: #0E1116;
  --paper: #F2F2EF;
  --steel: #9EB3C8;
  --ink-2: #4E5259;
  /* scene */
  --night: #141B24;
  --slate: #1E2A38;
  --horizon: #33465C;
  --first-light: #E3B58C;
  --rule: rgba(14, 17, 22, .14);

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --p: 0; /* hero scroll progress 0..1, set by site.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--paper); color: var(--graphite);
  padding: .6rem 1rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: linear-gradient(180deg, var(--night) 0%, var(--slate) 48%, var(--horizon) 78%);
}
.hero :focus-visible { outline-color: var(--steel); }

.sky, .sky__dawn, .sky__glow { position: absolute; inset: 0; pointer-events: none; }
.sky { z-index: -1; }
.sky__dawn {
  background: linear-gradient(180deg, #1E2A38 0%, #3E5167 46%, #8C99A6 72%, #CDB9A3 86%);
  opacity: calc(var(--p) * 1.15);
}
.sky__glow {
  background: radial-gradient(60% 38% at 62% 74%, rgba(227, 181, 140, .55), rgba(227, 181, 140, 0) 70%);
  opacity: calc(.18 + var(--p) * .9);
  transform: translateY(calc(var(--p) * -6%));
}

.hero__bar {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) 0;
}
.brand { display: inline-block; text-decoration: none; }
.brand img { width: clamp(150px, 16vw, 216px); height: auto; }

.hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 18vh, 12rem) var(--gutter) 0;
  max-width: 64rem;
  transform: translateY(calc(var(--p) * -48px));
  opacity: calc(1 - var(--p) * 1.25);
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.4rem + 4.8vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__lede {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 36ch;
  font-weight: 300;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: rgba(242, 242, 239, .86);
}

.range {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 56%;
  z-index: 1;
  overflow: visible; /* the drawn range extends past the frame; wide screens reveal more of it */
}
.ridge--far   { fill: #44566C; fill: url(#g-far); }
.ridge--mid   { fill: #2C394A; fill: url(#g-mid); }
.ridge--near  { fill: #18202A; fill: url(#g-near); }
.ridge--front { fill: var(--paper); }
/* form: faces turned away from the dawn light, snow on the high peaks, hairline crests */
.shade--far  { fill: #2B3A4C; opacity: .55; }
.shade--mid  { fill: #172130; opacity: .55; }
.shade--near { fill: #0A0F15; opacity: .5; }
.snow { fill: #DCE4EB; fill: url(#g-snow); opacity: .92; }
.rim { fill: none; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.rim--far { stroke: #B4C5D6; stroke-width: 1.25; stroke-opacity: .42; }
.rim--mid { stroke: #9EB3C8; stroke-width: 1; stroke-opacity: .2; }
.layer--far  { transform: translateY(calc(var(--p) * 110px)); }
.layer--mid  { transform: translateY(calc(var(--p) * 72px)); }
.layer--near { transform: translateY(calc(var(--p) * 36px)); }
.crest {
  fill: none;
  stroke: var(--steel);
  stroke-width: 2.5;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.js .crest { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.45, .05, .2, 1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* -------------------------------------------------------------- content */
main { padding: clamp(2rem, 6vw, 5rem) 0 clamp(4rem, 9vw, 8rem); }

.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5rem) var(--gutter);
}
.block + .block { border-top: 1px solid var(--rule); }
@media (min-width: 52rem) {
  .block { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.2fr); gap: clamp(2rem, 6vw, 6rem); }
}
.block__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
  line-height: 1.15;
}
.block__body { max-width: var(--measure); }
.block__body p { color: #23272E; }

.principles { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.principle h3 {
  margin: 0 0 .35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .005em;
}

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem);
  line-height: 1.42;
  color: var(--graphite) !important;
}
.mail { font-weight: 500; }

/* reveal: content is visible without JS; .js opts into the entrance */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .principle.reveal:nth-child(2) { transition-delay: .12s; }
.js .principle.reveal:nth-child(3) { transition-delay: .24s; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--graphite); color: rgba(242, 242, 239, .78); font-size: .9375rem; }
.site-footer :focus-visible { outline-color: var(--steel); }
.site-footer__inner {
  max-width: 72rem; margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
}
.site-footer__mark { width: 48px; height: auto; }
.site-footer__copy { margin: 0; }
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.legal-links a { color: rgba(242, 242, 239, .9); }
@media (min-width: 52rem) { .site-footer nav { margin-left: auto; } }

/* ----------------------------------------------------------- legal pages */
.page-bar {
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.page-bar .brand img { width: clamp(140px, 14vw, 190px); }
.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.page h1 {
  margin: 0 0 .5rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.08;
}
.page .updated { color: var(--ink-2); font-size: .9375rem; margin-bottom: 2.5rem; }
.page h2 {
  margin: 2.5rem 0 .6rem;
  font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2;
}
.page p, .page li { color: #23272E; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: .4rem; }
.back { display: inline-block; margin-top: 3rem; font-weight: 500; }

/* ---------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
  :root { --p: 0 !important; }
  .js .crest { animation: none; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__copy, .layer--far, .layer--mid, .layer--near, .sky__glow { transform: none; }
}
@media (forced-colors: active) {
  .crest { stroke: CanvasText; }
  .shade, .snow, .rim { forced-color-adjust: none; }
  .ridge { forced-color-adjust: none; }
}
@media print {
  .hero { min-height: 0; color: #000; background: none; }
  .range, .sky { display: none; }
  .hero__copy { padding-top: 1rem; opacity: 1; transform: none; }
  .site-footer { background: none; color: #000; }
}

/* narrow screens: widen the range and keep the summit in view */
@media (max-width: 40rem) {
  .range { height: 46%; width: 260%; max-width: none; left: 50%; right: auto; transform: translateX(-65%); }
}
