/*
Theme Name: mSquare Capital
Theme URI: https://msquarecap.com
Author: mSquare Capital
Description: Single-page static site for mSquare Capital. Long-biased, strategically hedged equities fund.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: All Rights Reserved
Text Domain: msquare
*/

/* ============================================================
   mSquare Capital — Cadian-style single page
   ============================================================ */

@font-face {
  font-family: "Chronicle Display";
  src: url("fonts/ChronicleDisplay-Roman.woff2") format("woff2"),
       url("fonts/ChronicleDisplay-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:    #0E2A4E;
  --ink-2:  #1B3A66;   /* contact section bg, slightly lighter slate-navy */
  --bone:   #F7F4EC;
  --paper:  #FFFFFF;
  --rule:   #D9D2BF;
  --text:   #1A1A1A;
  --muted:  #5E6473;

  --serif: "Fraunces", Georgia, serif;
  --logo:  "Chronicle Display", "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 300;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   CLIENT LOGIN (top-right, sits left of the dot nav)
   ============================================================ */
.client-login {
  position: fixed;
  top: 36px;
  right: 96px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
  transition: color 0.4s ease, background-color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}
.client-login:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
body.on-light .client-login {
  color: var(--ink);
}
body.on-light .client-login:hover {
  background: rgba(14, 42, 78, 0.06);
}

/* ============================================================
   FIXED LOGO (top-left)
   ============================================================ */
.brand {
  position: fixed;
  top: 32px;
  left: 48px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  transition: color 0.4s ease;
}
.body.on-light .brand,
body.on-light .brand { color: var(--ink); }
.brand__mark { flex-shrink: 0; }
.brand__word {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}
.brand__name {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.005em;
}

/* ============================================================
   RIGHT-SIDE DOT NAV
   ============================================================ */
.dotnav {
  position: fixed;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.dotnav__item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  transition: color 0.4s ease;
}
body.on-light .dotnav__item { color: var(--ink); }
.dotnav__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dotnav__item.is-active .dotnav__label { opacity: 1; }
.dotnav__dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dotnav__item.is-active .dotnav__dot { opacity: 1; transform: scale(1.15); }

/* vertical hairline behind dots */
.dotnav::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  right: 3px;
  width: 1px;
  background: currentColor;
  color: var(--paper);
  opacity: 0.18;
}
body.on-light .dotnav::before { color: var(--ink); opacity: 0.18; }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  background: var(--ink);
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: center;
}
/* subtle bottom gradient so SCROLL DOWN remains legible */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero__scroll {
  position: absolute;
  right: 96px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.36em;
}
.hero__rule {
  display: inline-block;
  width: 64px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ============================================================
   SECTION 2 — ABOUT
   ============================================================ */
.about {
  position: relative;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0;
}
.about__inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 48px;
  display: block;
}
.about__text {
  text-align: left;
}
.about__graphic {
  width: 100%;
  max-width: 520px;
  opacity: 0.85;
}
.about__graphic svg { width: 100%; height: auto; }
.about__text { color: var(--ink); }
.about__heading {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 80px;
  color: var(--ink);
}
.about__sub {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
}
.about__tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  opacity: 0.5;
  transform: scale(0.5);
  transform-origin: top left;
}
.about__body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 520px;
  font-weight: 400;
}

/* ============================================================
   SECTION 3 — CONTACT
   ============================================================ */
.contact {
  position: relative;
  background: var(--ink-2);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.contact__inner {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 220px 140px 80px 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact__block { grid-column: 2; }
.contact__heading {
  font-family: var(--logo);
  font-weight: 400;
  font-size: 38px;
  margin-bottom: 6px;
}
.contact__tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  opacity: 0.5;
  transform: scale(0.5);
  transform-origin: top left;
}
.contact__details {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}
.contact__details a {
  color: var(--paper);
  border-bottom: 1px solid rgba(247,244,236,0.3);
  transition: border-color 0.2s ease;
}
.contact__details a:hover { border-color: var(--paper); }
.contact__spacer { height: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(247,244,236,0.15);
  padding: 28px 0;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
}
.footer__copy {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.8;
}
.footer__mark { color: var(--paper); opacity: 0.85; }
.footer__links { display: flex; gap: 40px; opacity: 0.8; }
.footer__links a { transition: opacity 0.2s ease; }
.footer__links a:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .brand { left: 32px; top: 24px; }
  .dotnav { right: 24px; }
  .about__inner,
  .contact__inner {
    padding-left: 64px;
    padding-right: 64px;
  }
  .about__heading { font-size: 30px; margin-bottom: 56px; }
}

@media (max-width: 1024px) {
  .client-login { right: 72px; top: 28px; }
}

@media (max-width: 768px) {
  .client-login {
    right: 16px;
    top: 16px;
    padding: 7px 13px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .about__text { grid-column: 1; }
  .brand { left: 20px; top: 18px; gap: 10px; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 18px; }

  .dotnav { display: none; }

  .hero__scroll { right: 24px; bottom: 24px; }
  .hero__rule { width: 40px; }

  .about { padding: 100px 0; }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .about__graphic { max-width: 280px; margin: 0 auto; }
  .about__heading { font-size: 26px; margin-bottom: 40px; text-align: left; }
  .about__sub { font-size: 22px; }
  .about__body { font-size: 14px; }

  .contact__inner {
    grid-template-columns: 1fr;
    padding: 140px 24px 60px;
  }
  .contact__block { grid-column: 1; }
  .contact__heading { font-size: 30px; }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
    text-align: center;
  }
  .footer__copy { flex-direction: column; gap: 8px; }
  .footer__links { gap: 24px; }
}
