/* Home — the opener, the film, the call, one tap to BingX and the invite line. Results: home-results.css. */

/* ---------- opener: the inscription and the cat on one ground line; a member's figure beside the cat ---------- */
.op { --cat-h: clamp(260px, 43svh, 600px); min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: var(--hdr); }
.op-stage { position: relative; display: grid; grid-template-rows: auto 1fr; padding-top: clamp(28px, 5vh, 56px); }
.op-h { font-family: var(--serif); font-weight: 400; font-size: var(--t-h1); line-height: .94; letter-spacing: -.014em; position: relative; z-index: 1; }
.op-l { display: block; }
.op-cat { align-self: end; justify-self: end; height: var(--cat-h); aspect-ratio: 532.31 / 1000; margin-right: 2px; color: var(--ink); }
.op-cat svg { width: 100%; height: 100%; overflow: visible; }
.op-plinth { position: relative; border-top: 1px solid var(--ink); }
.op-sub { max-width: 32ch; padding: 20px 0 clamp(28px, 4.5vh, 44px); font-size: var(--t-lead); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-soft); text-wrap: pretty; }

/* Jonas's Results card as a figure: who, the PnL with a smaller USDT, the ROE, the trade (the Ledger card's order) */
.op-money { display: grid; justify-items: start; width: max-content; }
.op-money-who { font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.op-money-who span { font-weight: 400; color: var(--ink-mute); }
.op-money-pnl { display: flex; align-items: baseline; gap: .14em; margin-top: 6px; font-size: var(--op-fig); font-weight: 500; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.op-money-pnl .u { font-size: .36em; letter-spacing: -.005em; }
.op-money-roe { margin-top: 7px; font-size: 14px; }
.op-money-what { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--ink-mute); letter-spacing: 0; }
.op-money-what > span { display: block; }
.op-money-what .op-money-dot { display: none; }
.op-money:hover .op-money-who { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 899.98px) {
  /* above the ground line, left of the cat: sized to the room the cat leaves */
  .op-money { position: absolute; left: var(--m); bottom: calc(100% + 18px); --op-fig: clamp(26px, calc((100vw - 2 * var(--m) - var(--cat-h) * .5323 - 14px) / 4.6), 40px); }
}

.js .op-cat { opacity: 0; transition: opacity .7s var(--ease); }
.js .op-cat.is-in { opacity: 1; }
.js .op-l { opacity: 0; transform: translateY(.18em); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.js .op-l:nth-child(2) { transition-delay: .09s; }
.js .op.is-in .op-l { opacity: 1; transform: none; }
.js .op-sub { opacity: 0; transition: opacity .9s var(--ease) .25s; }
.js .op.is-in .op-sub { opacity: 1; }
.js .op-money { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .op.is-money .op-money { opacity: 1; transform: none; }
.rm .op-l, .rm .op-sub, .rm .op-cat, .rm .op-money { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (min-width: 900px) {
  .op-stage { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr; column-gap: var(--gap); align-items: end; padding-top: 0; }
  /* the last line's descender meets the ground line, as the lockup's cat stands on the p */
  .op-h { grid-column: 1 / span 9; grid-row: 1; margin-bottom: .13em; }
  .op-cat { grid-column: 10 / span 3; grid-row: 1; height: min(62svh, 620px); margin-right: clamp(0px, 3vw, 48px); }
  .op-plinth .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .op-sub { grid-column: 1 / span 5; padding-top: 24px; }
  /* under the cat, as the plaque under a statue */
  .op-money { grid-column: 9 / span 4; align-self: start; padding: 22px 0 clamp(24px, 4vh, 40px); --op-fig: clamp(34px, 3vw, 46px); }
  .op-money-what > span { display: inline; }
  .op-money-what .op-money-dot { display: inline; }
}

/* ---------- the film: the Mac recording (16:9) on ink, the tracking feed beside it ---------- */
.film { background: var(--ink); color: var(--on-ink); padding: clamp(64px, 8vw, 120px) 0; }
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.film-h { color: var(--on-ink); }
.rec-mac { margin-inline: calc(var(--m) * -1); }
.rec-mac .rec-frame { aspect-ratio: 16 / 9; border-radius: 0; }
.feed { border-top: 1px solid var(--rule-ink); }
.feed li { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-content: center; padding: 15px 0 16px; border-bottom: 1px solid var(--rule-ink); color: #8C8A83; transition: color .6s var(--ease); }
.feed time { font-size: 13px; line-height: 1.9; }
.feed span { font-size: 16px; line-height: 1.4; letter-spacing: -.014em; }
.feed li.is-on { color: var(--on-ink); }
.feed li.is-on time { color: var(--on-ink-soft); }
.feed .g { transition: color .6s var(--ease); }
.feed li.is-on .g { color: var(--gain-ink); }
.feed-p { position: absolute; inset: auto 0 -1px; height: 1px; }
.feed-p b { display: block; height: 100%; background: var(--on-ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (min-width: 900px) {
  .film-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(40px, 4.4vw, 72px); align-items: end; }
  .film-h { grid-column: 1 / span 7; }
  .rec-mac { grid-column: 1 / span 8; margin: 0; }
  .rec-mac .rec-frame { border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--rule-ink); }
  .feed { grid-column: 9 / span 4; }
  .feed li { grid-template-columns: 64px 1fr; padding: 16px 0 17px; }
  .feed time { font-size: 13.5px; }
  .feed span { font-size: clamp(16px, 1.22vw, 19px); }
}

/* ---------- the call: a spec sheet under the chart ---------- */
.call { padding: var(--sec) 0; }
.call .sec-head .lead { max-width: 30ch; }
.ct { margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--ink); }
.ct-id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: clamp(22px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.ct-side { color: var(--loss); font-weight: 600; letter-spacing: -.015em; }
.ct-grade { align-self: center; padding: 3px 9px 4px; border: 1px solid var(--ink); border-radius: 6px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.ct-model { margin-top: 8px; font-size: var(--t-lead); color: var(--ink-soft); letter-spacing: -.012em; }
.ct-meta { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.ct-meta dt, .lv dt, .tps thead th { font-size: 13px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0; }
.ct-meta dd { margin-top: 4px; font-size: 15px; letter-spacing: -.01em; }
.ct-meta dd.mono { font-size: 14px; }
.ct-meta div:nth-child(3) { grid-column: 1 / -1; order: 1; }
.call-chart { margin-top: clamp(36px, 4vw, 56px); margin-inline: calc(var(--m) * -1); }
.call-cv { height: 320px; padding-inline: 4px; }
.call-cv svg { width: 100%; height: 100%; overflow: visible; }
.sheet { margin-top: clamp(40px, 4.5vw, 64px); display: grid; gap: 44px; }
.sh { border-top: 1px solid var(--ink); padding-top: 16px; }
.sh-h { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.sh-note { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-mute); }
.lv > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule-2); }
.lv > div:first-child { padding-top: 0; }
.lv dt { font-size: 14px; color: var(--ink-soft); }
.lv .lv-key dt { font-size: var(--t-h3); color: var(--ink); }
.lv-v { font-size: 16px; text-align: right; }
.lv .sh-note { grid-column: 1 / -1; margin-top: 4px; }
.sh-tp .tps, .sh-why .why { margin-top: 18px; }
.tps { width: 100%; }
.tps th, .tps td { padding: 12px 0; border-bottom: 1px solid var(--rule-2); text-align: left; vertical-align: baseline; }
.tps thead th { padding-top: 0; }
.tps tbody th { font-family: var(--mono); font-size: 14px; font-weight: 500; width: 46px; }
.tps td { font-size: 14px; color: var(--ink-soft); }
.tps td.mono, .tps thead th:nth-child(n+3) { text-align: right; }
.tps td.mono { font-size: 15px; color: var(--ink); padding-left: 12px; }
.tps td.is-gain { color: var(--gain); }
.why li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-size: 15px; letter-spacing: -.01em; }
.why svg { width: 15px; height: 15px; flex: none; transform: translateY(2px); }
.basis { margin-top: 36px; display: grid; gap: 6px; max-width: 80ch; font-size: 13px; line-height: 1.5; color: var(--ink-mute); }
.basis b { margin-right: 6px; font-weight: 500; color: var(--ink-soft); }
@media (min-width: 900px) {
  .call .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .call .sec-head .h2 { grid-column: 1 / span 7; }
  .call .sec-head .lead { grid-column: 9 / span 4; padding-bottom: .3em; }
  .ct { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .ct-id, .ct-model { grid-column: 1 / span 6; }
  .ct-meta { grid-column: 7 / span 6; grid-row: 1 / span 2; grid-template-columns: repeat(4, auto); justify-content: space-between; margin: 0; }
  .ct-meta div:nth-child(3) { grid-column: auto; order: 0; }
  .call-chart { margin-inline: 0; }
  .call-cv { height: clamp(420px, 38vw, 560px); padding: 0; }
  .sheet { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .sh-lv { grid-column: 1 / span 4; }
  .sh-tp { grid-column: 5 / span 4; }
  .sh-why { grid-column: 9 / span 4; }
}

/* ---------- one tap to BingX: the deeper stock; the heading, the iPhone recording (9:16) and its stages ---------- */
.tap { background: var(--paper-2); padding: var(--sec) 0; }
.tap-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.tap-copy { display: contents; }
.tap .h2 { order: 1; }
.tap .lead { order: 1; margin-top: 14px; max-width: 28ch; }
.rec-ios { order: 2; margin-top: 40px; }
.rec-ios .rec-frame { aspect-ratio: 9 / 16; width: min(100%, calc(78svh * 9 / 16)); margin-inline: auto; box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 40px 80px -40px rgba(11, 11, 12, .45); }
.stages, .works, .tap-copy .link { order: 3; }
.stages { margin-top: 36px; border-top: 1px solid var(--rule); }
.stages li { position: relative; padding: 15px 0 16px; border-bottom: 1px solid var(--rule); font-size: 16px; letter-spacing: -.012em; color: var(--ink-mute); transition: color .4s var(--ease); }
.stages li.is-on { color: var(--ink); }
.stages i { position: absolute; inset: auto 0 -1px; height: 1px; }
.stages b { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.works { margin-top: 36px; }
.works-l { font-size: 13px; color: var(--ink-mute); margin-bottom: 16px; }
.works-list { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.works-list img { height: 16px; width: auto; filter: brightness(0); opacity: .72; }
.works-list .works-main { flex-basis: 100%; }
.works-list .works-main img { height: 28px; opacity: 1; }
.tap-copy .link { margin-top: 36px; justify-self: start; }
@media (min-width: 900px) {
  .tap-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto 1fr auto auto auto; column-gap: var(--gap); }
  .tap .h2 { grid-column: 1 / span 4; grid-row: 1; }
  .tap .lead { grid-column: 1 / span 4; grid-row: 2; }
  .rec-ios { grid-column: 5 / span 4; grid-row: 1 / span 6; margin: 0; }
  .rec-ios .rec-frame { width: min(100%, 380px, calc((100svh - 150px) * 9 / 16)); }
  .stages { grid-column: 9 / span 4; grid-row: 4; margin: 0; }
  .works { grid-column: 9 / span 4; grid-row: 5; }
  .tap-copy .link { grid-column: 9 / span 4; grid-row: 6; }
  .stages li { font-size: 17px; padding: 17px 0 18px; }
}

/* ---------- invite: one quiet line, the heading left and the line right, as the call's head ---------- */
.iv { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.iv-in { display: grid; gap: 24px; }
.iv-h { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.014em; }
.iv-h span { display: block; }
.iv-p { max-width: 34ch; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.iv-p strong { font-weight: 500; color: var(--ink); }
.iv .link { margin-top: 28px; }
@media (min-width: 900px) {
  .iv-in { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .iv-h { grid-column: 1 / span 7; }
  .iv-side { grid-column: 9 / span 4; padding-bottom: .5em; }
}
