/* Everlant — site styles
   Layout: left-aligned editorial grid, 1200 max; obsidian bands carry the brand, ivory bands carry the reading.
   One bold thing per page: the orbit field in the home hero. Everything else is quiet. */
:root {
  --obsidian: #0E0E10;
  --graphite: #18181B;
  --ivory: #F3EFE6;
  --paper: #F8F6F1;
  --stone: #B9B3A8;
  --ash: #5E5A53;
  --gold: #F5C542;
  --gold-deep: #A67C00;
  --line-d: rgba(243, 239, 230, 0.14);
  --line-l: rgba(14, 14, 16, 0.13);

  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-md: 1.0625rem;   /* 17 body */
  --t-lg: 1.3125rem;   /* 21 */
  --t-xl: clamp(1.5rem, 1.1rem + 1.4vw, 1.875rem);      /* 24–30 */
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);           /* 32–48 */
  --t-3xl: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem);      /* 42–84 */

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --band: clamp(72px, 9vw, 136px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--obsidian); padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Bands */
.band { padding-block: var(--band); position: relative; }
.band--dark { background: var(--obsidian); color: var(--ivory); }
.band--graphite { background: var(--graphite); color: var(--ivory); }
.band--light { background: var(--ivory); color: var(--obsidian); color-scheme: light; }
.band--paper { background: var(--paper); color: var(--obsidian); color-scheme: light; }
.band--light .muted, .band--paper .muted { color: var(--ash); }
.muted { color: var(--stone); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-d); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; padding-bottom: 2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: var(--t-sm); color: var(--stone); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-d); color: var(--ivory); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: var(--t-sm); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: flex-start; gap: 0;
         background: var(--obsidian); border-bottom: 1px solid var(--line-d); padding: 8px var(--gutter) 24px; }
  .nav[hidden] { display: none !important; }
  .nav a { padding: 12px 0; font-size: var(--t-md); width: 100%; border-bottom: 1px solid var(--line-d); }
  .nav .btn { margin-top: 18px; border-bottom: 0; width: auto; }
}
@media (min-width: 861px) { .nav[hidden] { display: flex !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 var(--t-sm)/1 var(--sans); letter-spacing: 0; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: var(--obsidian) !important; }
.btn--gold:hover { background: #FFD45E; }
.btn--ghost { border-color: var(--line-d); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--stone); }
.band--light .btn--ghost, .band--paper .btn--ghost { border-color: var(--line-l); color: var(--obsidian); }
.band--light .btn--ghost:hover, .band--paper .btn--ghost:hover { border-color: var(--ash); }
.btn--ink { background: var(--obsidian); color: var(--ivory) !important; }
.btn--ink:hover { background: #26262A; }
.nav .btn { min-height: 40px; padding: 0 18px; color: var(--obsidian); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type helpers */
.display { font-size: var(--t-3xl); letter-spacing: -0.035em; line-height: 1.02; font-weight: 500; }
.h2 { font-size: var(--t-2xl); letter-spacing: -0.03em; }
.h3 { font-size: var(--t-lg); letter-spacing: -0.012em; line-height: 1.25; font-weight: 500; }
.lead { font-size: var(--t-lg); line-height: 1.5; max-width: 36em; }
.lede-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.kicker { font-size: var(--t-sm); color: var(--stone); display: inline-flex; align-items: center; gap: 10px; }
.band--light .kicker, .band--paper .kicker { color: var(--ash); }
.kicker svg { width: 18px; height: 18px; }
.prose { max-width: 38em; display: grid; gap: 1em; }
.section-head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: clamp(40px, 5vw, 72px); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* HERO (home) */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 150px) clamp(80px, 10vw, 140px); background: var(--obsidian); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 40rem; display: grid; gap: 28px; }
.hero-copy .lead { color: #D9D4CA; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--stone); }
.hero-foot { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: var(--t-sm); color: var(--stone); }
.hero-foot strong { color: var(--ivory); font-weight: 500; }
@media (max-width: 860px) {
  .hero { padding-top: 300px; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); background: var(--obsidian); border-bottom: 1px solid var(--line-d); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 26px; position: relative; z-index: 1; }
.page-hero .display { max-width: 15em; }
.page-hero .lead { color: #D9D4CA; }
.page-hero .mark-bg { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: min(620px, 70vw); height: auto; opacity: .9; pointer-events: none; }
@media (max-width: 860px) { .page-hero .mark-bg { opacity: .25; right: -200px; } }

/* Timeline (the shift) */
.shift-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .shift-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-l); }
.timeline li { position: relative; padding: 0 0 34px 40px; display: grid; gap: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--obsidian); }
.timeline li.is-key::before { background: var(--gold-deep); border-color: var(--gold-deep); }
.timeline time { font-family: var(--mono); font-size: var(--t-xs); color: var(--ash); letter-spacing: .02em; }
.timeline h3 { font-size: var(--t-lg); line-height: 1.3; letter-spacing: -0.012em; }
.timeline p { color: var(--ash); font-size: var(--t-sm); }
.timeline a { color: var(--ash); text-underline-offset: 3px; text-decoration-color: rgba(94, 90, 83, .4); }

/* Platform layers */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.layer { padding: 36px 32px 8px 0; display: grid; gap: 16px; align-content: start; }
.layer + .layer { padding-left: 32px; border-left: 1px solid var(--line-d); }
.layer svg { width: 100%; max-width: 240px; height: 96px; }
.layer h3 { font-size: var(--t-xl); }
.layer p { color: var(--stone); }
.layer .role { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: var(--gold); }
@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr; }
  .layer, .layer + .layer { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
}

/* Domains list */
.domains { border-top: 1px solid var(--line-l); }
.domain { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 12px 40px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-l); }
.domain h3 { font-size: var(--t-lg); line-height: 1.3; }
.domain p { color: var(--ash); max-width: 38em; }
.domain--lead { padding-block: 34px; }
.domain--lead h3 { font-size: var(--t-xl); }
.domain--lead p { color: var(--obsidian); }
.status { font-size: var(--t-xs); white-space: nowrap; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-l); color: var(--ash); }
.status--live { background: var(--obsidian); color: var(--ivory); border-color: var(--obsidian); }
.status--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 760px) {
  .domain { grid-template-columns: 1fr; gap: 8px; }
  .domain .status { justify-self: start; margin-top: 4px; }
}

/* Product spotlight */
.spotlight { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight .prose { gap: 22px; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; font-size: var(--t-sm); color: #D9D4CA; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
@media (max-width: 520px) { .ticks { grid-template-columns: 1fr; } }
.lockup { display: inline-flex; align-items: baseline; gap: 12px; }
.lockup b { font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); letter-spacing: -0.035em; line-height: 1; }
.lockup i { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--gold); }

/* Variance report panel */
.report { background: #141417; border: 1px solid var(--line-d); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-d); }
.report-head strong { font-weight: 500; font-size: var(--t-sm); }
.report-head span { font-size: var(--t-xs); color: var(--stone); }
.report-head .badge-synth { font-size: 0.75rem; color: var(--obsidian); background: var(--stone); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.report-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-d); border-bottom: 1px solid var(--line-d); }
.report-meta div { background: #141417; padding: 14px 22px; display: grid; gap: 2px; }
.report-meta dt { font-size: 0.75rem; color: var(--stone); }
.report-meta dd { margin: 0; font-family: var(--mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .report-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-scroll { overflow-x: auto; }
.report table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 480px; }
.report th { text-align: right; font-weight: 400; font-size: 0.75rem; color: var(--stone); padding: 12px 22px 10px; border-bottom: 1px solid var(--line-d); }
.report th:first-child, .report td:first-child { text-align: left; }
.report td { text-align: right; padding: 11px 22px; font-family: var(--mono); font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(243, 239, 230, .06); white-space: nowrap; }
.report td:first-child { font-family: var(--sans); }
.report tr.flag td { color: var(--ivory); }
.report tr.flag td:last-child { color: var(--gold); }
.report tr.ok td:last-child { color: var(--stone); }
.report tfoot td { border-bottom: 0; border-top: 1px solid var(--line-d); font-weight: 500; padding-block: 14px; }
.report tfoot td:last-child { color: var(--gold); }
.report-foot { padding: 16px 22px 20px; display: grid; gap: 6px; font-size: var(--t-xs); color: var(--stone); border-top: 1px solid var(--line-d); }
.report-foot b { color: var(--ivory); font-weight: 500; }
.formula { font-family: var(--mono); font-size: 0.78rem; color: #D9D4CA; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.principle { padding: 32px 0; border-top: 1px solid var(--line-l); display: grid; gap: 12px; }
.principle h3 { font-size: var(--t-xl); }
.principle p { color: var(--ash); max-width: 32em; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Steps (true sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line-l); }
.steps li { counter-increment: s; padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line-l); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-deep); }
.steps h3 { font-size: var(--t-lg); }
.steps p { color: var(--ash); font-size: var(--t-sm); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-l); grid-template-columns: 56px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; }
}

/* Checks grid (Recalc) */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.check { padding: 26px 24px 30px; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); display: grid; gap: 8px; align-content: start; }
.check h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.check p { color: var(--ash); font-size: var(--t-sm); }
@media (max-width: 1000px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* Two-column info */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); }
.facts li { padding: 20px 0; border-bottom: 1px solid var(--line-l); display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 8px 32px; }
.facts strong { font-weight: 500; }
.facts span { color: var(--ash); }
.band--dark .facts, .band--graphite .facts { border-color: var(--line-d); }
.band--dark .facts li, .band--graphite .facts li { border-color: var(--line-d); }
.band--dark .facts span, .band--graphite .facts span { color: var(--stone); }
@media (max-width: 640px) { .facts li { grid-template-columns: 1fr; } }

/* Obligations table */
.obl { width: 100%; border-collapse: collapse; min-width: 640px; }
.obl th, .obl td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line-l); }
.obl th { font-weight: 400; font-size: var(--t-xs); color: var(--ash); padding-block: 0 12px; }
.obl td:first-child { font-weight: 500; width: 30%; }
.obl td { color: var(--obsidian); }
.obl td + td { color: var(--ash); }
.note { font-size: var(--t-xs); color: var(--ash); margin-top: 18px; max-width: 48em; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.person { border-top: 1px solid var(--line-l); padding-top: 24px; display: grid; gap: 6px; }
.person h3 { font-size: var(--t-xl); }
.person p { color: var(--ash); }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; align-items: start; } }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.email-line .addr { font-size: var(--t-2xl); letter-spacing: -0.03em; font-weight: 500; text-decoration: none; word-break: break-all; }
.email-line .addr:hover { color: var(--gold); }
.copy { background: none; border: 1px solid var(--line-d); color: var(--stone); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: var(--t-xs); cursor: pointer; }
.copy:hover { color: var(--ivory); border-color: var(--stone); }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: end; }
.cta .h2 { max-width: 14em; }
.cta .side { display: grid; gap: 18px; justify-items: start; }
.cta .side p { color: var(--stone); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--obsidian); color: var(--stone); border-top: 1px solid var(--line-d); padding-block: 64px 40px; font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { margin: 0 0 14px; font-weight: 500; font-size: var(--t-sm); color: var(--ivory); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ivory); }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .tag { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: var(--stone); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Gentle intro motion for the hero copy only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
}

/* Amortis: loan-life chart and finding */
.loanlife { width: 100%; height: auto; font-family: var(--sans); }
.loanlife .axis text { fill: var(--stone); font-size: 13px; font-family: var(--mono); }
.loanlife .ev { fill: var(--ivory); font-size: 14px; font-weight: 500; }
.loanlife .ev.gold { fill: var(--gold); }
.loanlife .evs { fill: var(--stone); font-size: 13px; }
.loanlife .owed { fill: var(--gold); font-size: 17px; font-weight: 500; }
.chart-frame { overflow-x: auto; margin-top: 8px; }
.chart-frame svg { min-width: 680px; }
.knock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); margin-top: clamp(32px, 4vw, 56px); }
.knock > div { padding: 24px 24px 4px 0; display: grid; gap: 8px; align-content: start; }
.knock > div + div { padding-left: 24px; border-left: 1px solid var(--line-d); }
.knock .amt { font-family: var(--mono); font-size: var(--t-lg); color: var(--gold); font-variant-numeric: tabular-nums; }
.knock h3 { font-size: var(--t-md); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.knock p { color: var(--stone); font-size: var(--t-sm); }
@media (max-width: 900px) { .knock { grid-template-columns: repeat(2, minmax(0, 1fr)); } .knock > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .knock { grid-template-columns: 1fr; } .knock > div, .knock > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-d); } }
.finding { background: #141417; border: 1px solid var(--line-d); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.finding .report-head { border-bottom: 1px solid var(--line-d); }
.finding dl { margin: 0; }
.finding .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 13px 22px; border-bottom: 1px solid rgba(243, 239, 230, .06); align-items: baseline; }
.finding dt { color: #D9D4CA; font-size: var(--t-sm); }
.finding dt small { display: block; color: var(--stone); font-size: var(--t-xs); margin-top: 2px; }
.finding dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--t-sm); text-align: right; white-space: nowrap; }
.finding .row--point dd { color: var(--gold); font-family: var(--sans); }
.finding .row--sub dt, .finding .row--sub dd { font-weight: 500; color: var(--ivory); }
.finding .row--total { background: rgba(245, 197, 66, .08); border-bottom: 0; }
.finding .row--total dt { color: var(--ivory); font-weight: 500; font-size: var(--t-md); }
.finding .row--total dd { color: var(--gold); font-size: var(--t-lg); }
.value { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.value .principle h3 { font-size: var(--t-lg); }
@media (max-width: 960px) { .value { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .value { grid-template-columns: 1fr; } }
.segments { display: flex; flex-wrap: wrap; gap: 10px; }
.segments span { border: 1px solid var(--line-l); border-radius: 999px; padding: 8px 16px; font-size: var(--t-sm); }
.lockup .by { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); color: var(--stone); }
.statement td.ev-cell { font-family: var(--sans); color: var(--stone); white-space: normal; min-width: 170px; }
@media (min-width: 1001px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.report .statement th:nth-child(2), .report .statement td.ev-cell { text-align: left; }

/* Replay control */
.replay-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 8px; font-size: var(--t-sm); }
.replay-bar .btn { min-height: 40px; padding: 0 18px; }
.loanlife.is-replaying .ll-line { animation: ll-draw 3.2s cubic-bezier(.45, 0, .2, 1) both; }
.loanlife.is-replaying .ll-area { animation: ll-fade 3.2s ease both; }
.loanlife.is-replaying .ll-comp, .loanlife.is-replaying .ll-owed { animation: ll-fade .6s ease 3.1s both; }
.loanlife.is-replaying .ll-ev:nth-of-type(3) { animation: ll-fade .5s ease 1.1s both; }
.loanlife.is-replaying .ll-ev:nth-of-type(4) { animation: ll-fade .5s ease 2.7s both; }
@keyframes ll-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes ll-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loanlife.is-replaying * { animation: none !important; } }

/* Portfolio stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.stats > div { padding: 28px 24px 8px 0; display: grid; gap: 8px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-d); }
.stat { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats > div:last-child .stat { color: var(--gold); }
.stats p { color: var(--stone); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stats > div, .stats > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-d); } }

/* FAQ */
.faq { border-top: 1px solid var(--line-l); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.012em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ash); border-bottom: 1.5px solid var(--ash); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ash); padding-bottom: 22px; max-width: 40em; }
.btn--ghost { background: transparent; }

/* Amortis terms */
.terms { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-l); }
.terms > div { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.terms > div + div { padding-left: 24px; border-left: 1px solid var(--line-l); }
.terms dt { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--gold-deep); line-height: 1.15; }
.terms dd { margin: 0; color: var(--ash); }
@media (max-width: 900px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .terms > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .terms { grid-template-columns: 1fr; } .terms > div, .terms > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-l); } }
.layer h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.layer-verb { font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--stone); }
.report tfoot td[colspan] { font-family: var(--sans); text-align: left; }

@media (max-width: 640px) {
  .report .statement { min-width: 0; }
  .report .statement thead { display: none; }
  .report .statement tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-d); }
  .report .statement td { padding: 0; border: 0; text-align: left; white-space: normal; display: grid; gap: 2px; }
  .report .statement td::before { content: attr(data-label); font-family: var(--sans); font-size: 0.75rem; color: var(--stone); }
  .report .statement td:nth-child(1), .report .statement td:nth-child(2) { grid-column: 1 / -1; }
  .report .statement td:nth-child(1)::before, .report .statement td:nth-child(2)::before { content: none; }
  .report .statement td:nth-child(1) { font-weight: 500; }
  .report .statement td.ev-cell { min-width: 0; margin-bottom: 6px; }
  .report .statement tfoot tr { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; }
  .report .statement tfoot td { padding: 0; border: 0; }
}
