/* ---------- Self-hosted fonts (light-update kit) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('assets/fonts/spectral-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/spectral-latin-400-normal.woff2') format('woff2'); }

/* ==========================================================================
   GREEN MANTEL HOLDINGS — greenmantel.com
   Deep green · ivory · engraved serif. Type-led institutional design.
   ========================================================================== */

:root {
  /* Light ground + green accent (per light-update kit) */
  --green-950: #0A0A0A;          /* near-black (dark sections) */
  --green-900: #151515;          /* primary dark surface */
  --green-850: #1A1A1A;
  --green-800: #222222;
  --green-700: #14664A;          /* accent green on cream */

  --ivory:     #F1F0EC;          /* page ground */
  --ivory-2:   #E8E6E0;          /* highlighted panel */
  --ink:       #14181A;          /* headers */
  --lede:      #22282A;          /* large serif ledes */
  --ink-soft:  #4A5250;          /* body serif */
  --label:     #8A918E;          /* small caps labels */

  --accent:      #14664A;   /* accent green — light grounds */
  --accent-soft: #8FB998;   /* lifted green — dark grounds */
  --line:      #DCDAD4;
  --line-light: rgba(255, 255, 255, 0.22);

  /* Type */
  --serif-display: "Cormorant Garamond", "Times New Roman", serif;  /* hero + brand lockup only */
  --serif: "Spectral", Georgia, "Times New Roman", serif;           /* reading text */
  --sans:  "Archivo", Helvetica, Arial, sans-serif;                 /* headers + UI */
  --mono:  Consolas, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9rem;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--green-900); color: var(--ivory); }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.2s var(--ease-expo), transform 1.2s var(--ease-expo);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Masked line reveal (headings slide up from under a mask) ---------- */
.mask-line { overflow: hidden; }
.mask-line .mask-line__inner {
  display: block;
  transform: translateY(112%);
  transition: transform 1.35s var(--ease-expo);
  transition-delay: var(--d, 0.1s);
  will-change: transform;
}
.mask-line.is-visible .mask-line__inner { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Scroll progress hairline ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 110;
  pointer-events: none;
}

/* ---------- Eyebrows & section titles ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-3);
}
.eyebrow::after {
  content: "";
  height: 1px;
  width: 72px;
  background: currentColor;
  opacity: 0.55;
  transition: width 0.9s var(--ease) 0.35s;
}
.eyebrow.reveal:not(.is-visible)::after { width: 0; }
.eyebrow__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.eyebrow--light { color: var(--accent-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: var(--space-4);
}
.section-title--light { color: var(--ivory); }

/* Draft-style sans display (Sections I & II) */
.section-title--sans {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 1.12;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: min(1360px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: 1.1rem;
}

.nav__brand { display: flex; align-items: center; gap: 0.85rem; cursor: pointer; }
.nav__mark { width: 49px; height: auto; transition: opacity 0.35s ease; }
.nav__mark--green { display: none; }

.nav__wordmark { display: flex; flex-direction: column; line-height: 1.12; }
.nav__name {
  font-family: var(--serif-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ivory);
  transition: color 0.35s ease;
}
.nav__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.72);
  transition: color 0.35s ease;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.85);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { right: 0; }
.nav__links a:hover { color: var(--ivory); }
.nav__ext {
  font-size: 0.85em;
  opacity: 0.7;
}

.nav__cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid rgba(247, 244, 235, 0.5);
  padding: 0.7rem 1.6rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--ivory);
  color: var(--green-900);
  border-color: var(--ivory);
}

/* Scrolled state — ivory bar, green assets */
.nav.is-solid {
  background: rgba(241, 240, 236, 0.97);
  border-bottom-color: var(--line);
}
.nav.is-solid .nav__mark--white { display: none; }
.nav.is-solid .nav__mark--green { display: block; }
.nav.is-solid .nav__name { color: var(--green-900); }
.nav.is-solid .nav__sub { color: var(--ink-soft); }
.nav.is-solid .nav__links a { color: var(--ink-soft); }
.nav.is-solid .nav__links a:hover { color: var(--green-900); }
.nav.is-solid .nav__cta {
  color: var(--green-900);
  border-color: var(--green-900);
}
.nav.is-solid .nav__cta:hover, .nav.is-solid .nav__cta:focus-visible {
  background: var(--green-900);
  color: var(--ivory);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  margin-left: auto;
  touch-action: manipulation;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}
.nav.is-solid .nav__toggle span,
.nav.is-open .nav__toggle span { background: var(--ivory); }
.nav.is-solid:not(.is-open) .nav__toggle span { background: var(--green-900); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--green-950);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 300;
  color: var(--ivory);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
}
.menu__links a em {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-style: normal;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
}
.menu__foot { display: flex; flex-direction: column; gap: 1rem; }
.menu__foot img { width: 64px; height: auto; opacity: 0.9; }
.menu__foot p {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.6);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 100%);
  place-items: center;
  overflow: hidden;
  background: #0B0B0B;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.18) 34%,
      rgba(0, 0, 0, 0.24) 62%,
      rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.35));
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  width: min(60rem, 100%);
}
.hero__mark {
  width: clamp(52px, 5vw, 68px);
  height: auto;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.35));
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.82);
  margin-bottom: var(--space-3);
  --d: 0.15s;
}
.hero__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: var(--space-3);
  --d: 0.3s;
  text-wrap: balance;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(247, 244, 235, 0.9);
  max-width: 34em;
  margin-inline: auto;
  --d: 0.45s;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: rgba(247, 244, 235, 0.55);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateY(-100%);
  animation: scrollDrop 2.4s var(--ease) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.hero__scroll-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 244, 235, 0.72);
  transition: color 0.3s ease;
}
.hero__scroll:hover .hero__scroll-text { color: var(--ivory); }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding: var(--space-7) 0 var(--space-6); }
.statement__text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 24em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.statement__text em {
  font-style: italic;
  color: var(--green-700);
}
.statement__sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.22rem;
  line-height: 1.62;
  color: var(--lede);
  max-width: 42em;
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-5);
}
.statement__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  max-width: 62rem;
}
.statement__cols p {
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-soft);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  max-width: 46em;
}

/* ==========================================================================
   HOLDINGS
   ========================================================================== */
.holdings {
  color: var(--ink);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}
.holdings::before {
  /* oversized mantel watermark — drifts on scroll */
  content: "";
  position: absolute;
  right: -5%;
  top: 3%;
  width: 680px;
  height: 436px;
  background: url("assets/logo/green-mantel_green_2400.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
.holdings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
}
.holding {
  padding: 2.4rem 1.9rem 2.1rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 300px;
  transition: background 0.45s var(--ease);
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.holding:last-child { border-right: none; }
.holding:hover, .holding.is-open { background: var(--ivory-2); }
.holding:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.holding__toggle {
  position: absolute;
  top: 2.2rem;
  right: 1.9rem;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--label);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.holding.is-open .holding__toggle {
  transform: rotate(45deg);
  color: var(--accent);
}
.holding__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--label);
}
.holding__name {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink);
}
.holding__desc {
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.78;
  color: var(--ink-soft);
}
.holding__rule {
  margin-top: auto;
  height: 1px;
  background: var(--line);
}
.holding__tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Expanded platform panel ---------- */
.platform-wrap {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.8s var(--ease-expo), margin-top 0.8s var(--ease-expo);
}
.platform-wrap.is-open {
  grid-template-rows: 1fr;
  margin-top: var(--space-4);
}
.holdings__grid + .platform-wrap.is-open { margin-top: var(--space-5); }
.platform-clip { overflow: hidden; min-height: 0; }
.platform {
  position: relative;
  background: var(--ivory-2);
  border: 1px solid var(--line);
  padding: 3.4rem 3.5rem 3rem;
}
.platform__flag {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 96px;
  height: 2px;
  background: var(--accent);
}
.platform__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.platform__grid--solo { grid-template-columns: 1fr; }
.platform__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.platform__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: var(--space-2);
}
.platform__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--lede);
  margin-top: var(--space-3);
  max-width: 36em;
}
.platform__copy {
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.82;
  color: var(--ink-soft);
  margin-top: var(--space-3);
  max-width: 44em;
}
.platform__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--space-4);
}

.platform__stats { display: grid; gap: 0; }
.platform__stats > div {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.platform__stats > div:first-child { padding-top: 0; }
.platform__stats > div:last-child { border-bottom: none; padding-bottom: 0; }
.stat__value {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.stat__label {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--label);
  margin-top: 0.45rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: var(--space-6) 0 var(--space-4);
  text-align: center;
  position: relative;
  margin-top: var(--space-7);
}
.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.footer__mark {
  width: 110px;
  height: auto;
  opacity: 0.9;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  padding-block: var(--space-2);
}
.footer__nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--ink); }
.footer__legal {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--label);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  width: 100%;
}

/* ==========================================================================
   FOCUS VISIBILITY
   ========================================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .platform__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .holding { border-right: none; border-bottom: 1px solid var(--line); }
  .holding:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .hero__eyebrow { letter-spacing: 0.3em; }
  .holding { min-height: 0; }
  .platform { padding: var(--space-4) var(--space-3); }
  .hero__scroll { display: none; }
}
