/* Albert Sans, self-hosted (SIL Open Font License, assets/fonts/OFL.txt) so the site loads nothing
   from third parties. Variable weight 300–600; subsets as Google Fonts cuts them. */
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/albert-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/albert-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5f5f2;
  --ink: #14283e;
  --muted: #5a6677;
  --rule: #dcddd8;
  --gold: #b39c66;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1624;
    --ink: #e8eaed;
    --muted: #97a1af;
    --rule: #223044;
    --gold: #c5ad78;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Masthead */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.wordmark { display: block; height: 1.05rem; width: auto; }
.w-ink { fill: var(--ink); }

.nav { display: flex; gap: 2rem; font-size: 0.9375rem; }
.nav a { color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

/* Hero: statement left, monogram right */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: center;
  column-gap: 4rem;
  min-height: min(44rem, calc(100vh - 7rem));
  padding-top: 2rem;
  padding-bottom: 6rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 30rem;
  font-size: 1.25rem;
  color: var(--muted);
}

.monogram { width: 100%; height: auto; }
.m-navy { fill: var(--ink); }
.m-gold { fill: var(--gold); }

/* Sections: label in the margin, body in the column */

.row {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  column-gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  scroll-margin-top: 1rem;
}

.row::before, .foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  border-top: 1px solid var(--rule);
}

/* Gold segment on each section rule, above the label */
.row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 2.5rem;
  width: 2.25rem;
  border-top: 2px solid var(--gold);
}

.label {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.body { max-width: 46rem; }
.body p { margin: 0; }

.big {
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); margin-top: 0.75rem !important; }

/* About: facts */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.75rem 0 0;
}
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: 1.125rem; }

/* Markets: a row of tiles stepping from the band's navy toward a lighter blue */

.tiles {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 3.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}
.tiles li {
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef0f2;
  background: var(--tile);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.tiles li:nth-child(1) { --tile: #1b324d; --i: 0; }
.tiles li:nth-child(2) { --tile: #21395a; --i: 1; }
.tiles li:nth-child(3) { --tile: #284266; --i: 2; }
.tiles li:nth-child(4) { --tile: #2f4b72; --i: 3; }
.tiles li:nth-child(5) { --tile: #37557e; --i: 4; }
.tiles li:nth-child(6) { --tile: #405f8a; --i: 5; }
.tiles li:hover { background: #c5ad78; color: #14283e; }

/* Approach */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.pillars h3 {
  margin: 0 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pillars p { color: var(--muted); }

/* Contact */

.contact a {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--gold);
  transition: border-color 0.15s;
}
.contact a:hover { border-color: var(--ink); }

/* Legal pages */

.doc { min-height: calc(100vh - 16rem); }
.doc h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.doc .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.doc h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc .body p { max-width: 40rem; }
.doc .body p + p { margin-top: 0.75rem; }
.doc a { border-bottom: 1px solid var(--gold); }

/* Footer */

.foot {
  position: relative;
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { transition: color 0.15s; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { margin: 1rem 0 0; max-width: 48rem; line-height: 1.5; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles li { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 800px) {
  .wrap { padding: 0 1.25rem; }
  .row::before, .foot::before { left: 1.25rem; right: 1.25rem; }
  .row::after { left: 1.25rem; }
  .foot { padding-top: 1.5rem; padding-bottom: 2rem; }
  .masthead { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }
  .monogram { order: -1; width: 8.5rem; }
  .lede { font-size: 1.125rem; margin-top: 1.25rem; }
  .row { grid-template-columns: 1fr; row-gap: 1.25rem; padding-top: 2.5rem; padding-bottom: 3rem; }
  .label { margin: 0; }
  .facts { gap: 1rem; margin-top: 2rem; }
  .tiles { margin-top: 1.75rem; }
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Navy band: full-bleed section that reuses the logo's navy */

.band {
  --ink: #eef0f2;
  --muted: #a3aebd;
  --rule: #2b3d55;
  --gold: #c5ad78;
  background: #14283e;
  color: var(--ink);
}
.band .row::before, .band + .row::before { display: none; }

@media (prefers-color-scheme: dark) {
  .band { background: #16263b; }
}

/* Motion. All of it is gated on classes the inline head script sets, so without JS or with
   reduced motion the page renders static. */

.m-navy, .w-ink { transition: fill 0.8s ease; }

/* Scroll reveal */
.reveal-on .row, .reveal-on .tiles li {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              background-color 0.25s ease, color 0.25s ease;
}
.reveal-on .tiles li {
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s, 0s;
}
.reveal-on .row:not(.in), .reveal-on .row:not(.in) .tiles li {
  opacity: 0;
  transform: translateY(18px);
}

/* First-visit intro: the lockup assembles on a navy curtain, then the monogram and wordmark fly
   to their places in the page. main.js drives it; the failsafe clears the curtain if it never runs. */
.curtain { display: none; }
.intro .curtain {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #14283e;
  animation: intro-failsafe 0.01s 4s forwards;
}
.intro .hero .monogram, .intro .masthead .wordmark {
  position: relative;
  z-index: 60;
  transform-origin: 0 0;
}
.intro .hero .monogram, .intro .masthead .wordmark, .intro .hero .copy, .intro .nav {
  opacity: 0;
  animation: intro-failsafe-show 0.01s 4s forwards;
}
.intro-ink .hero .m-navy, .intro-ink .masthead .w-ink { fill: #f5f5f2; }
.intro .m-navy, .intro .w-ink { transition-duration: 0.38s; }

@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }
@keyframes intro-failsafe-show { to { opacity: 1; } }

@media (prefers-color-scheme: dark) {
  .intro .curtain { background: #0c1624; }
}
