/* ============================================================
   The Milli Collective — stylesheet
   ============================================================ */

:root {
  --bg-dark: #121712;
  --bg-dark-2: #171c17;
  --bg-cream: #f2ede3;
  --bg-cream-2: #eae3d4;

  --text-cream: #f4efe6;
  --text-cream-muted: #b9c0b6;
  --text-dark: #1a1d18;
  --text-dark-muted: #5a5c53;

  --line-dark: rgba(244, 239, 230, 0.16);
  --line-light: rgba(26, 29, 24, 0.14);

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1280px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg-cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-dark);
  color: var(--text-cream);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout helpers ---------- */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { position: relative; padding: 96px 0; }

.section--dark { background: var(--bg-dark); color: var(--text-cream); }
.section--cream { background: var(--bg-cream); color: var(--text-dark); }

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: rgba(242, 237, 227, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-light);
}

.site-header.is-scrolled .main-nav a { color: var(--text-dark); }
.site-header.is-scrolled .nav-toggle span { background: var(--text-dark); }

.logo { display: inline-flex; }

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: border-color 0.35s ease;
}

.site-header.is-scrolled .logo-mark {
  border-color: var(--line-light);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-img--light { display: none; }

.site-header.is-scrolled .logo-img--dark { display: none; }
.site-header.is-scrolled .logo-img--light { display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-cream);
  transition: opacity 0.2s ease, color 0.35s ease;
  opacity: 0.9;
}
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-cream);
  transition: background-color 0.35s ease;
}

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--bg-cream);
  transition: max-height 0.3s ease;
}
.mobile-nav.is-open { max-height: 300px; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-cream-muted);
  margin: 0 0 28px;
}
.eyebrow--dark { color: var(--text-dark-muted); }

.display-xl {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-cream);
}
.display-xl em { font-style: italic; font-weight: 500; }

.display-lg {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 18ch;
}

.display-md {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  max-width: 62ch;
  color: var(--text-dark-muted);
  margin: 0;
}
.lede--dark { color: var(--text-cream-muted); }

.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-cream-muted);
  max-width: 42ch;
  margin: 0 0 32px;
}
.hero-lede strong { color: var(--text-cream); font-weight: 700; }

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

.hero { min-height: 100vh; display: flex; align-items: center; padding: 164px 0 80px; }

.hero-rings {
  position: absolute;
  top: -10%;
  right: -6%;
  width: min(48vw, 620px);
  height: min(48vw, 620px);
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  pointer-events: none;
}
.hero-rings::before,
.hero-rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.hero-rings::after { inset: 30%; }

.hero-vertical {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-cream-muted);
  opacity: 0.55;
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
  position: relative;
}

.hero-side { padding-bottom: 6px; }

/* ---------- buttons / links ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 15px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn--solid {
  background: var(--text-cream);
  color: var(--bg-dark);
}
.btn--solid:hover { transform: translateY(-2px); }

.btn--outline {
  border-color: var(--line-dark);
  color: var(--text-cream);
}
.btn--outline:hover { border-color: var(--text-cream); }

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}
.text-link--static { opacity: 0.85; cursor: default; }

/* ---------- about pillars ---------- */

.pillar-grid {
  max-width: var(--max-width);
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}

.pillar {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--line-light);
}
.pillar:last-child { border-right: none; padding-right: 0; }

.pillar-num {
  display: block;
  font-size: 12px;
  color: var(--text-dark-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.25;
}

.pillar p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark-muted);
  margin: 0;
}

/* ---------- investments split ---------- */

.split-grid {
  max-width: var(--max-width);
  margin: 72px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
}

.split-col {
  padding: 48px 44px 48px 0;
}
.split-col--border {
  border-left: 1px solid var(--line-dark);
  padding-left: 44px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-cream-muted);
  margin: 0 0 24px;
}

.split-col p:not(.tag) {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-cream-muted);
  max-width: 46ch;
  margin: 0;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact-details { margin: 0; }

.contact-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-row:first-child { padding-top: 0; }

.contact-row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  margin-bottom: 8px;
}

.contact-row dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
.contact-row dd a { text-decoration: underline; text-underline-offset: 3px; }

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

.site-footer { background: var(--bg-dark); color: var(--text-cream); }

.footer-top {
  padding-top: 56px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

.footer-top nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.footer-top nav a {
  font-size: 14px;
  color: var(--text-cream-muted);
}
.footer-top nav a:hover { color: var(--text-cream); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-cream-muted);
}

/* ---------- responsive ---------- */

@media (min-width: 1100px) {
  .hero-vertical { display: block; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 40px; }
  .hero { min-height: auto; padding: 140px 0 64px; }

  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line-light); padding: 32px 0; }
  .pillar:nth-child(odd) { padding-right: 24px; }
  .pillar:nth-child(even) { padding-left: 24px; }

  .split-grid { grid-template-columns: 1fr; }
  .split-col--border { border-left: none; border-top: 1px solid var(--line-dark); padding-left: 0; margin-top: 8px; padding-top: 40px; }
  .split-col { padding-right: 0; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar:nth-child(odd), .pillar:nth-child(even) { padding-left: 0; padding-right: 0; }
  .section:not(.hero) { padding: 72px 0; }
  .hero { padding: 130px 0 56px; }
}
