/* pages.css — styles for How It Works, subpages */

/* ── Inner page wrapper (no hero-bg, starts below header) ─── */
.page--inner {
  margin-top: -12px;              /* pull up over the body gap */
  border-top-left-radius: 0;      /* flush to viewport top */
  border-top-right-radius: 0;
  padding-top: 0;
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  background: var(--cream);
  border-radius: 0 0 12px 12px;
  padding: 140px 64px 80px;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Bleed out of .page's 2% side padding and 12px top padding */
  margin-left: -2%;
  margin-right: -2%;
  margin-top: -12px;
  width: calc(100% + 4%);
}

.page-hero-title {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-top: 16px;
  margin-bottom: 20px;
}

.page-hero-title em {
  font-style: normal;
  font-weight: 200;
}

/* Keep hero title on one line on desktop; mobile.css relaxes this */
.page-hero-title--nowrap { white-space: nowrap; }

/* Avatar profile pages (/group/) — no italics anywhere, lighter weight instead */
.page-hero--avatar .page-hero-title em {
  font-style: normal;
  font-weight: 200;
}

.page-hero-sub {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Section: Member Process Steps ─────────────────────────── */
.section-steps {
  background: var(--cream);
  border-radius: 22px;
  padding: 80px 64px;
}

.step-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(27,24,21,0.08);
  align-items: start;
}

.step-item:last-child { border-bottom: none; }

/* Step 01 (Application) stays full-width with an image; steps 02–07 split into 2 columns */
.step-item--featured {
  grid-template-columns: 96px calc(50% - 68px) calc(50% - 28px);
  gap: 0;
  align-items: stretch;
  margin-bottom: 4px;
}

.step-featured-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
}

.step-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.steps-grid .step-item {
  padding: 32px 0;
}

.steps-grid .step-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.step-number {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: rgba(27,24,21,0.15);
  line-height: 1;
  padding-top: 4px;
}

.step-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.15;
}

.step-body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(27,24,21,0.7);
}

.step-body a {
  color: #51b4d5;
  text-decoration: none;
  border-bottom: 1px dotted #51b4d5;
  transition: opacity 0.18s;
}
.step-body a:hover { opacity: 0.75; }

/* ── Section: Member Portal ─────────────────────────────────── */
.section-portal {
  background: var(--dark);
  border-radius: 22px;
  padding: 80px 64px;
  color: var(--white);
}

.section-portal .eyebrow { color: rgba(255,255,255,0.4); }

.section-portal .section-intro {
  color: var(--white);
  max-width: 75%;
  margin-bottom: 56px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portal-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.portal-body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}

/* ── Section: Asset Class Case ──────────────────────────────── */
.section-asset-case {
  background: var(--cream);
  border-radius: 22px;
  padding: 80px 64px;
}

.section-asset-case .eyebrow {
}

.section-asset-case .section-intro {
  max-width: 66%;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.asset-card {
  border-radius: 18px;
  padding: 44px 36px;
  background: var(--cream-bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.asset-card--dark {
  background: var(--dark);
  color: var(--white);
}

.asset-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}

.asset-body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  opacity: 0.7;
}


/* ── Section: CTA Block ─────────────────────────────────────── */
.section-cta-block {
  background-color: #d8ecf3;
  border-radius: 22px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}

.cta-block-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.cta-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #d8ecf3 0%, #d8ecf3 38%, rgba(216,236,243,0.7) 55%, rgba(216,236,243,0.15) 75%, rgba(216,236,243,0) 100%);
  z-index: 1;
}

.cta-block-inner { max-width: 680px; position: relative; z-index: 2; }

.cta-block-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 20px;
  white-space: nowrap;
}

.cta-block-sub {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 520px;
}

/* ── Stub page ──────────────────────────────────────────────── */
.stub-hero {
  background: var(--dark);
  border-radius: 22px;
  padding: 120px 64px 100px;
  color: var(--white);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stub-hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.stub-hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Page hero variants ─────────────────────────────────────── */
.page-hero--dark { background: var(--dark); }
.page-hero-title--white { color: var(--white); }
.page-hero-sub--white { color: rgba(255,255,255,0.55); }

/* ── Content split layout ───────────────────────────────────── */
.section-content {
  background: var(--cream);
  border-radius: 22px;
  padding: 80px 64px;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.content-body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(27,24,21,0.7);
}

/* ── Profile page grid (investors / referral partners) ──────── */
.section-profiles-page {
  background: var(--cream);
  border-radius: 22px;
  padding: 80px 64px;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.profile-page-card {
  background: var(--cream-bg);
  border-radius: 18px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-page-label {
  font-family: var(--sans);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

.profile-page-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
}

.profile-page-desc {
  font-family: var(--sans);
  font-size: 17px; font-weight: 400;
  color: var(--dark);
  line-height: 1.5;
}

.profile-page-body {
  font-family: var(--sans);
  font-size: 17px; font-weight: 400;
  line-height: 1.75;
  color: rgba(27,24,21,0.65);
  flex: 1;
}

.profile-btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* ── Media fact list ────────────────────────────────────────── */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact-item {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(27,24,21,0.08);
  align-items: baseline;
}

.fact-label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  width: 160px;
}

.fact-value {
  font-family: var(--sans);
  font-size: 14px; font-weight: 400;
  color: var(--dark);
  line-height: 1.55;
}

.fact-link {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Dark hero: bleeds to top of screen, content clears the nav ── */
.page-hero--dark {
  padding-top: 140px;
  min-height: 550px;
  border-radius: 0 0 12px 12px;
}
.contact-hero {
  padding-top: 120px !important;
}
.apply-section .apply-copy {
  padding-top: 110px;
}


/* ══════════════════════════════════════════════════════════════════
   PRECONSTRUCTION APPRECIATION CHART
   ══════════════════════════════════════════════════════════════════ */

/* ── Section: Preconstruction Appreciation ──────────────────── */
.section-appreciation {
  background: var(--dark);
  border-radius: 22px;
  padding: 72px 64px 64px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.appreciation-dots {
  position: absolute;
  top: -10%; right: -3%;
  width: 45%; height: 90%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 75% 75% at 65% 40%, black 5%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 65% 40%, black 5%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.2) 60%, transparent 80%);
  pointer-events: none;
}

.section-appreciation .eyebrow { color: rgba(255,255,255,0.4); position: relative; z-index: 1; }
.section-appreciation .section-intro { color: var(--white); max-width: 66%; margin-bottom: 24px; position: relative; z-index: 1; }

.appr-subtitle {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.appr-subtitle em { font-style: normal; font-weight: 200; color: rgba(255,255,255,0.8); }

.appr-wrapper {
  display: flex;
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Y-axis */
.appr-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 64px;
  margin-right: 16px;
  flex-shrink: 0;
}
.appr-y-axis span {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-align: right;
  line-height: 1;
}

/* Chart columns container */
.appr-chart-area {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  flex: 1;
  align-items: end;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 0 0 12px;
  position: relative;
  min-height: 360px;
}

/* Grid lines */
.appr-chart-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(100%/7 - 1px),
    rgba(255,255,255,0.04) calc(100%/7 - 1px),
    rgba(255,255,255,0.04) calc(100%/7)
  );
  pointer-events: none;
}

/* Each year column */
.appr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.appr-bar-group {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Bars: start at height 0, animate to data-height % */
.appr-bar {
  width: 38%;
  height: 0%;
  border-radius: 4px 4px 0 0;
  transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.appr-asset        { background: rgba(255,255,255,0.25); }
.appr-asset--highlight { background: rgba(255,255,255,0.6); }
.appr-deposit      { background: #6fbcdb; width: 28%; }

/* Animated state — JS adds .appr-animate class */
.appr-chart-area.appr-animate .appr-bar {
  /* height set via JS inline style */
}

/* Column labels */
.appr-col-label {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
.appr-col-label strong {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.appr-col-label span {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  display: block;
}

/* Metrics below each column */
.appr-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.appr-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.appr-metric-val {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.appr-metric-key {
  font-family: var(--sans);
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.appr-metric--highlight .appr-metric-val { color: rgba(255,255,255,1); font-size: 15px; }
.appr-metric--highlight .appr-metric-key { color: rgba(255,255,255,0.5); }
.appr-metrics--close { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; }

/* Closing year highlight */
.appr-col--close .appr-bar-group { position: relative; }
.appr-col--close::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.appr-col--close { position: relative; }

/* Legend */
.appr-legend {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-left: 56px;
}
.appr-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.appr-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.appr-dot--asset   { background: rgba(255,255,255,0.25); }
.appr-dot--deposit { background: #6fbcdb; }

/* Disclaimer */
.appr-disclaimer {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 32px;
  line-height: 1.6;
  max-width: 640px;
  position: relative;
  z-index: 1;
}



/* ══════════════════════════════════════════════════════════════════
   COMPANY PAGE — Smooth bezier graph (swapped from homepage)
   ══════════════════════════════════════════════════════════════════ */

.stats-graph-smooth {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  opacity: 0.08;
  pointer-events: none;
}
.stats-graph-smooth svg { width: 100%; height: 100%; }

.smooth-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  transition: stroke-dashoffset 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.smooth-area {
  fill: url(#gGradSmooth);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#coStats.graph-co-on .smooth-line { stroke-dashoffset: 0; }
#coStats.graph-co-on .smooth-area { transform: scaleY(1); }


/* ══════════════════════════════════════════════════════════════════
   AVATAR PROFILE PAGES — cross-links between the 8 profile pages
   ══════════════════════════════════════════════════════════════════ */

.avatar-nav-section {
  padding: 8px 0 4px;
}

.avatar-nav-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

.avatar-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.avatar-nav-item:hover {
  background: #1a1815;
  color: #ffffff;
}

.avatar-nav-item svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.avatar-nav-item:hover svg {
  opacity: 1;
}

.section-avatar-links {
  background: var(--cream);
  border-radius: 22px;
  padding: 56px 64px;
}

.avatar-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.avatar-link-card {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.avatar-link-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar-link-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,13,11,0.82) 0%, rgba(15,13,11,0.15) 55%, rgba(15,13,11,0) 80%);
}

.avatar-link-card-name {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.avatar-link-card--label {
  background: var(--cream-bg);
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 24px;
}

.avatar-link-card--label h1 {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
  margin: 0;
}

/* ── Section: News & Insights ───────────────────────────────── */
.section-news {
  background: var(--cream);
  border-radius: 22px;
  padding: 80px 64px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}

.news-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.news-view-all {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}
.news-view-all:hover { color: var(--dark); }

/* Featured card */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-decoration: none;
  margin-bottom: 32px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream-bg);
}

.news-featured-img {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured-body {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-featured-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--dark);
}

.news-read {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.04em;
}

/* 4-card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.news-card {
  background: var(--cream-bg);
  border-radius: 14px;
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.news-card:hover { background: #edf1f2; }

.news-card-title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
  flex: 1;
}
