/* ============================================================
   YieldEstate — minimal, monochrome
   ============================================================ */
:root {
  --bg: #F3EEE5;
  --ink: oklch(0.2 0.008 70);
  --mute: oklch(0.2 0.008 70 / 0.6);
  --faint: oklch(0.2 0.008 70 / 0.4);
  --rule: oklch(0.2 0.008 70 / 0.14);
  --hairline: oklch(0.2 0.008 70 / 0.08);
  --bg-soft: #ECE4D5;
  --serif: 'Bodoni Moda', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --col-max: 1180px;
  --gutter: clamp(24px, 5vw, 80px);
  --col-narrow: 720px;
}
[data-invert="true"] {
  --bg: oklch(0.135 0.004 70);
  --ink: oklch(0.95 0.008 85);
  --mute: oklch(0.95 0.008 85 / 0.58);
  --faint: oklch(0.95 0.008 85 / 0.36);
  --rule: oklch(0.95 0.008 85 / 0.13);
  --hairline: oklch(0.95 0.008 85 / 0.08);
  --bg-soft: oklch(0.17 0.004 70);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--serif);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.4;
}
.wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--col-narrow); margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; text-decoration: none; }
a[data-open-buy] { cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

em { font-style: italic; }

/* ============ NAV ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.nav .brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav .brand em { font-style: italic; font-weight: 400; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links .buy {
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nav-links .buy:hover { background: var(--ink); color: var(--bg); }

/* ============ HERO ============ */
.hero {
  padding: clamp(80px, 16vw, 200px) 0 clamp(60px, 10vw, 140px);
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 900px;
  margin: 0 auto;
}
.hero .hero-italic {
  margin: clamp(18px, 2.6vw, 30px) auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mute);
  text-wrap: balance;
  max-width: 760px;
}
.hero .hero-italic em { font-style: italic; }
.hero .sub {
  margin-top: clamp(32px, 5vw, 56px);
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--mute);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* buttons */
.cta-row {
  display: flex; gap: 12px;
  margin-top: clamp(40px, 5vw, 60px);
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.15s ease;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.btn:hover { opacity: 0.82; }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.ghost:hover { border-color: var(--ink); background: var(--bg-soft); opacity: 1; }

/* ============ SECTION RHYTHM ============ */
section { padding: clamp(72px, 10vw, 140px) 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 720px;
}
.section-head .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--mute); }
.section-head p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
  max-width: 600px;
}

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--hairline);
}
.stat:last-child { border-right: 0; }
.stat:not(:first-child) { padding-left: 24px; }
.stat .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}
.stat .v {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .v em { font-style: italic; font-weight: 400; color: var(--mute); }
.stat .v .cd-stat { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ============ PILLARS ============ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.pillar {
  padding: 40px 28px 0 0;
  border-right: 1px solid var(--hairline);
}
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 28px; }
.pillar .pn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.pillar p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.step {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: baseline;
}
.step:nth-child(2n) { padding-right: 0; padding-left: 32px; border-left: 1px solid var(--hairline); }
.step .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
}

/* ============ PORTFOLIO TABLE ============ */
.holdings {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--hairline);
}
.holdings thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 16px 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--hairline);
}
.holdings thead th.r { text-align: right; }
.holdings tbody td {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.holdings tbody tr { transition: background 0.15s ease; }
.holdings tbody tr:hover td { color: var(--ink); }
.holdings .addr {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.holdings .city {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-weight: 400;
}
.holdings .num-cell {
  font-family: var(--mono);
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.holdings .yield { color: var(--mute); }
.holdings .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  width: 40px;
  letter-spacing: 0.05em;
}

.portfolio-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.06em;
}
.portfolio-foot a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
  color: var(--ink);
}
.portfolio-foot a:hover { border-bottom-color: var(--ink); }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex; align-items: baseline; gap: 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink); }
.faq-item summary .q-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  flex: 0 0 auto;
  width: 32px;
}
.faq-item summary .q-t { flex: 1; text-wrap: pretty; }
.faq-item summary .q-mark {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 300;
  color: var(--mute);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary .q-mark { transform: rotate(45deg); }
.faq-item .a {
  padding: 0 0 30px clamp(32px, 6vw, 56px);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  color: var(--mute);
  max-width: 660px;
  text-wrap: pretty;
}
.faq-item .a a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  cursor: pointer;
}

/* ============ CLOSER ============ */
.closer { text-align: center; }
.closer h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 820px;
  margin: 0 auto;
}
.closer h2 em { font-style: italic; font-weight: 400; color: var(--mute); }
.closer .sub {
  margin: 22px auto 0;
  max-width: 520px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
}

/* ============ FOOTER ============ */
footer {
  padding: clamp(56px, 8vw, 96px) 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
}
.footer-brand em { font-style: italic; font-weight: 400; color: var(--mute); }
.footer-links {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
}
.footer-links li::before { content: ""; }
.footer-links a { transition: color 0.15s ease; cursor: pointer; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: clamp(56px, 8vw, 80px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--mute); letter-spacing: 0.06em;
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.7);
  display: none;
  place-items: center;
  z-index: 999;
  padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
}
.modal-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 12px;
}
.modal h3 {
  font-family: var(--serif); font-weight: 500; font-size: 32px;
  line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.modal h3 em { font-style: italic; font-weight: 400; color: var(--mute); }
.modal p {
  font-family: var(--serif); margin-top: 14px; line-height: 1.55;
  color: var(--mute); font-size: 16px;
}
.modal .ca {
  margin-top: 22px; padding: 14px 16px;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; word-break: break-all;
  color: var(--ink);
}
.modal .modal-cta {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--hairline); }
  .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat:nth-child(2n+1) { padding-right: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2n) { padding: 32px 0; border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 18px; }
  .holdings .hide-mobile { display: none; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:not(:first-child) { padding: 28px 0; padding-left: 0; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .pillar:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; padding-right: 0; padding-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { padding: 20px 0; }
  .nav-links .docs { display: none; }
  .holdings tbody td { padding: 16px 0; }
}

/* ============ MOTION ============ */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance — staggered fade-up on load */
  .anim-ready .hero .hero-mark,
  .anim-ready .hero .eyebrow,
  .anim-ready .hero h1,
  .anim-ready .hero .hero-italic,
  .anim-ready .hero .sub,
  .anim-ready .hero .cta-row {
    opacity: 0;
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .anim-ready .hero .hero-mark   { animation-delay: 0s; }
  .anim-ready .hero .eyebrow     { animation-delay: 0.12s; }
  .anim-ready .hero h1           { animation-delay: 0.18s; }
  .anim-ready .hero .hero-italic { animation-delay: 0.34s; }
  .anim-ready .hero .sub         { animation-delay: 0.50s; }
  .anim-ready .hero .cta-row     { animation-delay: 0.64s; }

  @keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }

  /* Scroll reveal — elements glide in as they enter the viewport */
  .anim-ready .section-head,
  .anim-ready .stat,
  .anim-ready .pillar,
  .anim-ready .step,
  .anim-ready .holdings,
  .anim-ready .portfolio-foot,
  .anim-ready .faq-item,
  .anim-ready .closer .wrap > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .anim-ready .section-head.in,
  .anim-ready .stat.in,
  .anim-ready .pillar.in,
  .anim-ready .step.in,
  .anim-ready .holdings.in,
  .anim-ready .portfolio-foot.in,
  .anim-ready .faq-item.in,
  .anim-ready .closer .wrap > .in {
    opacity: 1;
    transform: none;
  }

  /* Buttons & cards lift slightly on hover */
  .btn { transition: opacity 0.15s ease, transform 0.2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .pillar, .step h3, .faq-item summary { transition: color 0.15s ease, transform 0.25s ease; }
  .pillar:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0 16px;
}
.m-item em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-left: 9px;
}
.m-sep { color: var(--faint); font-size: 9px; vertical-align: middle; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}

/* ============ COUNTDOWN ============ */
.countdown {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
}
.cd-time {
  font-family: var(--mono);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.cd-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cd-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .cd-dot { animation: cdpulse 1.6s ease-in-out infinite; }
}
@keyframes cdpulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ============ GRAIN TEXTURE ============ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ HERO MARK ============ */
.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 3.5vw, 38px);
}
.hero-mark svg {
  width: clamp(46px, 6vw, 70px);
  height: auto;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark svg { animation: floaty 5s ease-in-out infinite; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ============ LIVE BAND ============ */
.liveband {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(30px, 5vw, 56px) 0;
  text-align: center;
}
.lb-statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.lb-statement em { font-style: italic; font-weight: 400; color: var(--mute); }
.lb-sub {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.lm-label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}
.live-pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .live-pip { animation: cdpulse 1.6s ease-in-out infinite; }
}
