/* borsosFX. One stylesheet. Four colours. One typeface. Lines only. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --white: #FFFFFF;
  --grey: #8A8A8A;
  --line: #2A2A2A;
  --margin: 6vw;
  --gap: 2vw;
  --head: 72px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--black);
  color: var(--white);
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--white);
  color: var(--black);
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

/* Motion. Slow and quiet: things arrive, they do not bounce. Hover takes 200ms.
   The rest of the motion is at the end of this file. */

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade {
  animation: fade 600ms ease both;
}

/* The motion plays for everyone, including visitors whose device asks for
   reduced motion. That was a deliberate choice by the owners. */

/* Type */

.display,
.headline,
.statement,
.figure-value,
.index-name,
.next-name,
.signal-head {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.display {
  font-size: 14vw;
}

.headline {
  font-size: 11vw;
  margin-top: 16px;
}

.statement {
  font-size: 7vw;
}

.label {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.text {
  max-width: 23em;
}

.text + .text {
  margin-top: 16px;
}

a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 200ms;
}

a:hover {
  color: var(--grey);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Grid. Twelve columns, wide margins, everything from the left. */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.grid > * {
  grid-column: 1 / -1;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main {
  flex: 1;
}

/* One rhythm: 16, 24, 48, 96. A section starts with a line and a label. */

.section {
  margin-top: 72px;
}

.rule {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.half + .half {
  margin-top: 48px;
}

/* Header. Always in reach. */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--head);
  padding: 0 var(--margin);
}

.site > .header {
  position: sticky;
  top: 0;
  z-index: 4;
  background-color: var(--black);
}

.wordmark,
.header-link {
  font: inherit;
  color: var(--white);
  text-decoration: none;
  transition: color 200ms;
}

.wordmark {
  display: block;
  font-weight: 500;
  transition: opacity 200ms;
}

.wordmark-mark {
  display: block;
  width: auto;
  height: 26px;
}

.wordmark:hover {
  opacity: 0.6;
}

.header-link {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
}

.wordmark:hover,
.header-link:hover {
  color: var(--grey);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skip {
  position: absolute;
  left: var(--margin);
  top: -200px;
  z-index: 5;
  padding: 8px 0;
  background-color: var(--black);
}

.skip:focus {
  top: 8px;
}

/* Next page */

.next {
  margin-top: 96px;
}

.next-link {
  display: block;
  text-decoration: none;
}

.next-name {
  display: block;
  font-size: 11vw;
  color: var(--black);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
  transition: color 200ms;
}

.next-line {
  display: block;
  margin-top: 12px;
}

.next-link:hover .next-name {
  color: var(--white);
}

/* Footer */

.footer {
  margin-top: 72px;
  padding-bottom: 40px;
}

.footer-nav {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-link {
  display: block;
  padding: 8px 0;
  text-decoration: none;
}

.footer-link:hover,
.footer-link[aria-current] {
  color: var(--white);
}

.footer-text {
  max-width: 23em;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
}

/* Entry screen. The only centred thing on the site. */

.entry {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  flex-direction: column;
  padding: 0 var(--margin);
  background-color: var(--black);
}

.entry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  min-height: var(--head);
  padding: 16px 0;
}

.entry-centre {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

/* The entry arrives in order: name, line, door, then the room around it. */

.entry-step-1,
.entry-step-2,
.entry-step-3,
.entry-step-4 {
  animation: fade 900ms ease both;
}

/* The mark is uncovered from the left, like a card turned to the light. */

.entry-mark.entry-step-1 {
  animation: draw 1400ms cubic-bezier(0.6, 0, 0.1, 1) 200ms both;
}

.entry-name.entry-step-1 {
  animation: settle 1200ms cubic-bezier(0.2, 0.7, 0.1, 1) 900ms both;
}

.entry-step-2 {
  animation-name: track;
  animation-duration: 1200ms;
  animation-delay: 1500ms;
}

.entry-step-3 {
  animation-name: rise;
  animation-delay: 2200ms;
}

.entry-step-4 {
  animation-delay: 2600ms;
}

@keyframes leave {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Leaving: what is on the door fades, then the door opens down the middle
   and the site is already there behind it. */

.entry {
  overflow: hidden;
}

.entry::before,
.entry::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 50.5%;
  background-color: var(--black);
  transition: transform 1000ms cubic-bezier(0.7, 0, 0.15, 1) 250ms;
}

.entry::before {
  left: 0;
}

.entry::after {
  right: 0;
}

.entry-leaving .entry {
  background-color: transparent;
  pointer-events: none;
}

.entry-leaving .entry::before {
  transform: translateX(-100%);
}

.entry-leaving .entry::after {
  transform: translateX(100%);
}

.entry-leaving .entry-row,
.entry-leaving .entry-centre {
  animation: leave 350ms ease both;
}

.entry-pending.entry-leaving .site {
  display: flex;
}

.entry-pending .entry {
  display: flex;
}

.entry-pending .site,
.entry-pending .index {
  display: none;
}

.entry-mark {
  display: block;
  width: min(44vw, 200px);
  height: auto;
  margin-bottom: 14px;
}

.entry-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.entry-enter {
  margin-top: 44px;
  padding: 18px 56px;
}

/* Index */

.index {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  background-color: var(--black);
}

.index-open .index {
  display: block;
}

.index-open {
  overflow: hidden;
}

.index-nav {
  padding-top: 2vh;
  padding-bottom: 6vh;
}

.index-item {
  border-top: 1px solid var(--line);
}

.index-link {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  padding: 1.3vh 0;
  text-decoration: none;
}

.index-no {
  flex: 0 0 calc((100% - 11 * var(--gap)) / 12 * 2 + var(--gap));
}

.index-body {
  display: block;
}

.index-name {
  display: block;
  font-size: min(13vw, 6.6vh);
  font-size: min(13vw, 6.6svh);
  transition: color 200ms;
}

.index-line {
  display: block;
  margin-top: 6px;
}

.index-name {
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

/* The page you are on, and the one under the cursor, are drawn in outline. */

.index-link:hover .index-name,
.index-link[aria-current] .index-name {
  color: var(--black);
}

/* Home. One composed screen. */

.home-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--head));
  min-height: calc(100svh - var(--head));
}

.home {
  flex: 1;
  align-content: space-between;
  row-gap: 48px;
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Outlined type: the letter drawn as a 1px line. */

.outline {
  color: var(--black);
  -webkit-text-stroke: 2px var(--white);
  paint-order: stroke fill;
}

/* Ticker. The latest closed trades, moving left between two lines. */

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-list {
  display: flex;
}

.ticker-item {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.ticker-result {
  color: var(--white);
}

/* Band. A white strip across the black page. */

.band {
  background-color: var(--white);
  color: var(--black);
}

.band .label {
  color: var(--black);
}

.home-figures {
  row-gap: 20px;
  padding-top: 20px;
  padding-bottom: 24px;
}

.home-lead .display {
  margin-bottom: 32px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.figure {
  grid-column: span 4;
}

/* On phones the last figure is the longest, so it gets the most room. */

.figure:nth-child(1) {
  grid-column: span 3;
}

.figure:nth-child(3) {
  grid-column: span 5;
}

.figure-value {
  margin-top: 8px;
  font-size: 10vw;
}

.figures-note {
  margin-top: 20px;
}

/* What R means, in plain words, under the figures. */

.figures-explain {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--black);
}

.figures-explain .text {
  max-width: 34em;
  margin-top: 8px;
}

/* Inner pages */

.page {
  padding-top: 24px;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gap);
  margin-top: 12px;
}

.member-number {
  margin: 8px 0 32px;
}

.statement {
  margin-top: 40px;
}

.page-text {
  margin-top: 24px;
}

/* What is offered: a numbered list, one line above each item. */

.features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.feature {
  grid-column: 1 / -1;
  padding: 16px 0 28px;
  border-top: 1px solid var(--line);
}

.feature-name {
  margin-top: 10px;
  font-size: 7vw;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.feature-line {
  max-width: 23em;
  margin-top: 10px;
  color: var(--grey);
}

.feature-link {
  margin-top: 12px;
}

.different-statement {
  margin-top: 0;
  margin-bottom: 40px;
}

.partners-pointer {
  margin-top: 24px;
}

/* Instagram. Our own tiles, or Instagram's frame when no image is given. */

.insta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap);
}

.insta-item,
.member.member-post {
  grid-column: span 6;
}

.insta-link {
  position: relative;
  display: block;
  transition: opacity 200ms;
}

.insta-link:hover {
  opacity: 0.7;
}

.insta-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.insta-kind {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 8px;
  background-color: var(--black);
  color: var(--white);
}

.insta-caption {
  margin-top: 12px;
  color: var(--grey);
}

.insta-frame {
  aspect-ratio: 4 / 6.4;
  border: 1px solid var(--line);
  background-color: var(--black);
  overflow: hidden;
}

.insta-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Content on the left, one post on the right. */

.split-aside {
  max-width: 340px;
  margin-top: 48px;
}

.insta-more {
  margin-top: 32px;
}

/* Results */

.filter {
  margin-bottom: 0;
  padding-top: 6px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

.filter-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

.filter-link:hover,
.filter-link[aria-current] {
  color: var(--white);
}

.filter-link[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.equity-wrap {
  margin-top: 32px;
}

.equity {
  display: block;
  width: 100%;
  height: 120px;
  overflow: visible;
}

.equity polyline {
  fill: none;
  stroke: var(--white);
  stroke-width: 1;
}

.trades-wrap {
  margin-top: 48px;
}

.trades-note {
  margin-bottom: 24px;
}

.trades {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.trades th,
.trades td {
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.trades th {
  padding-top: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.trades th:last-child,
.trades td:last-child {
  padding-right: 0;
}

.updated {
  margin-top: 24px;
}

/* Signals */

.signal-head {
  font-size: 9vw;
}

.pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 10vw;
}

.pairs dd {
  margin-top: 4px;
  font-size: 20px;
}

.signal .pairs {
  margin-top: 32px;
}

.signal .pairs + .pairs {
  margin-top: 24px;
}

.signal-outcome {
  margin-top: 32px;
  margin-bottom: 4px;
}

.signal-why .label {
  margin-bottom: 12px;
}

.sessions-zone {
  margin-top: 24px;
}

/* Team */

.team {
  row-gap: 48px;
}

.member {
  grid-column: span 6;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  background-color: var(--line);
  overflow: hidden;
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: var(--white);
}

.member-name {
  color: var(--white);
}

.member-line {
  margin-top: 12px;
  max-width: 23em;
}

/* Tools */

.links-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.links-item:first-child {
  padding-top: 0;
}

/* Access */

.field {
  margin-bottom: 32px;
}

.field .label {
  display: block;
}

.input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  transition: border-color 200ms;
}

.input:hover {
  border-bottom-color: var(--grey);
}

.input:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.field-error {
  margin-top: 12px;
  color: var(--white);
}

.form-wrap > .field-error {
  margin: 0 0 32px;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  padding: 18px 32px;
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}

.button:hover {
  background-color: var(--white);
  color: var(--black);
}

/* The primary button is solid white. In a white band, buttons turn black. */

.button-solid {
  background-color: var(--white);
  color: var(--black);
}

.button-solid:hover {
  background-color: transparent;
  color: var(--white);
}

.button-small {
  padding: 8px 16px;
}

.band .button {
  border-color: var(--black);
  color: var(--black);
}

.band .button:hover {
  background-color: var(--black);
  color: var(--white);
}

.home-join {
  margin-top: 24px;
}

.join-band {
  row-gap: 20px;
  margin-top: 72px;
  padding-top: 28px;
  padding-bottom: 32px;
}

.join-line {
  font-size: 7vw;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.header-city {
  display: none;
}

.form-wrap {
  margin-top: 8px;
}

.after-form {
  margin-top: 48px;
}

.after-form .label {
  margin-left: 16px;
}

/* Desktop. The right half of the grid is used, not left empty. */

/* The library: members' profit pictures. Small tiles, all one shape. */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot-link {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 200ms;
}

.shot-link:hover {
  border-color: var(--white);
}

.shot-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.shot-link:hover .shot-image {
  transform: scale(1.04);
}

.shot-no {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2px 6px;
  background-color: var(--black);
  color: var(--white);
}

.shots-note {
  margin-top: 16px;
}

/* The viewer. One picture, whole, on black. */

.viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 15;
  flex-direction: column;
  background-color: var(--black);
}

.viewer-open .viewer {
  display: flex;
  animation: fade 300ms ease both;
}

.viewer-open {
  overflow: hidden;
}

.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  min-height: var(--head);
  padding: 0 var(--margin);
}

.viewer-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--margin);
}

.viewer-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  animation: rise 500ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

/* The captcha sits above the Join button. */

.captcha {
  min-height: 65px;
  margin-bottom: 24px;
}

/* Brokers. Two names, and who they stand beside. */

.brokers {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.broker {
  grid-column: 1 / -1;
  padding: 16px 0 32px;
  border-top: 1px solid var(--line);
}

.broker-name {
  margin-top: 12px;
  font-size: 13vw;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.broker-role {
  margin-top: 20px;
}

.broker-partner {
  margin-top: 4px;
  font-size: 6vw;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brokers-note,
.revenue-note {
  max-width: 60em;
  margin-top: 8px;
}

/* What an introducing broker earns. */

.revenue-table {
  margin-top: 24px;
  overflow-x: auto;
}

.revenue th[scope="row"] {
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey);
}

.revenue-table:first-child .revenue tbody tr:nth-last-child(-n + 2) td {
  font-weight: 600;
}

.revenue-note {
  margin-top: 24px;
}

@media (min-width: 800px) {
  .display {
    font-size: clamp(64px, 6.5vw, 128px);
  }

  /* Home sits at its natural height, with the words beside the headline. */

  .home-screen {
    min-height: 0;
  }

  .home {
    row-gap: 56px;
  }

  .home-lead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--gap);
  }

  .home-lead .display {
    margin-bottom: 0;
  }

  .home-intro {
    flex: 0 0 calc(50% - var(--gap) / 2);
  }

  .headline {
    grid-column: 1 / 11;
    font-size: clamp(40px, 4vw, 80px);
  }

  .section {
    margin-top: 56px;
  }

  .half {
    grid-column: span 6;
  }

  .half + .half {
    margin-top: 0;
  }

  .page {
    padding-top: 20px;
  }

  /* Inner pages are sized to be read on one screen, not to fill it. */

  .page-title .display {
    font-size: clamp(56px, 5.5vw, 104px);
  }

  .statement {
    grid-column: 1 / 7;
    margin-top: 28px;
    font-size: clamp(22px, 2vw, 36px);
  }

  .page-text {
    grid-column: 7 / 13;
    margin-top: 28px;
  }

  .statement:last-child {
    grid-column: 1 / -1;
  }

  .next-link {
    display: flex;
    align-items: baseline;
    gap: var(--gap);
  }

  .next-name {
    flex: 0 0 calc(50% - var(--gap) / 2);
    font-size: clamp(36px, 3vw, 60px);
  }

  .index-body {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: var(--gap);
  }

  .index-name {
    flex: 0 0 calc((100% - 10 * var(--gap)) / 11 * 5 + 4 * var(--gap));
    font-size: min(4vw, 7vh);
    font-size: min(4vw, 7svh);
  }

  .index-no {
    flex-basis: calc((100% - 11 * var(--gap)) / 12);
  }

  .home {
    padding-bottom: 40px;
  }

  .figure-value {
    font-size: clamp(40px, 3.6vw, 72px);
  }

  .figure:nth-child(n) {
    grid-column: span 4;
  }

  .equity {
    height: 130px;
  }

  .next {
    margin-top: 72px;
  }

  .trades th,
  .trades td {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .trades {
    font-size: 16px;
  }

  .signal-head {
    font-size: clamp(36px, 3vw, 60px);
  }

  .pairs {
    column-gap: 6vw;
  }

  .member {
    grid-column: span 3;
  }

  .form-wrap {
    grid-column: 1 / 7;
  }

  .header-right {
    gap: 28px;
  }

  .header-city {
    display: inline;
  }

  .join-band {
    align-items: center;
  }

  .join-line {
    grid-column: 1 / 9;
    font-size: clamp(22px, 2vw, 36px);
  }

  .join-action {
    grid-column: 9 / 13;
    justify-self: end;
  }

  .insta-item,
  .member.member-post {
    grid-column: span 3;
  }

  .split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--gap);
  }

  .split-main {
    flex: 0 0 calc(50% - var(--gap) / 2);
  }

  .split-aside {
    flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
    max-width: none;
    margin-top: 0;
  }

  .feature {
    grid-column: span 4;
    padding-bottom: 44px;
  }

  .feature-name {
    font-size: clamp(22px, 2vw, 36px);
  }

  .different-statement {
    grid-column: 1 / -1;
    margin-top: 0;
    margin-bottom: 40px;
  }

  .broker {
    grid-column: span 6;
    padding-bottom: 44px;
  }

  .broker-name {
    font-size: clamp(44px, 5vw, 96px);
  }

  .broker-partner {
    font-size: clamp(20px, 1.9vw, 34px);
  }

  .shots {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .revenue-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}

/* Motion, continued. Arriving on a page, moving down it, and changing page. */

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

/* Type comes up from behind its own baseline. */
@keyframes lift {
  from { clip-path: inset(0 0 100% 0); transform: translateY(100%); }
  to { clip-path: inset(-0.2em -0.1em -0.2em -0.1em); transform: none; }
}

/* Small capitals close up as they appear. */
@keyframes track {
  from { opacity: 0; letter-spacing: 0.5em; }
  to { opacity: 1; letter-spacing: 0.18em; }
}

@keyframes settle {
  from { opacity: 0; letter-spacing: 0.3em; }
  to { opacity: 1; letter-spacing: -0.03em; }
}

@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

/* Arriving. These start when the site is first shown, so after the entry
   screen they begin as the door opens. */

.site > .header {
  animation: drop 800ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.page > .label,
.home > .label {
  animation: track 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) 150ms both;
}

.page-title .display,
.home-lead .display {
  animation: lift 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) 200ms both;
}

.page-title .page-no {
  animation-delay: 380ms;
}

.page > .statement,
.home-intro {
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 600ms both;
}

.page-text {
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 760ms both;
}

.home-screen .ticker {
  animation: fade 900ms ease 900ms both;
}

.home-figures {
  animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 1000ms both;
}

/* Moving down the page. The script marks what to hold back and lets each
   thing in as it comes into view. Without the script nothing is hidden. */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease, transform 1000ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* A section line is drawn from the left. */

.rule.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1200ms cubic-bezier(0.6, 0, 0.1, 1);
}

.rule.reveal.in {
  clip-path: inset(0 0 0 0);
}

/* The index opens one line at a time. */

.index-open .index-item {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.index-open .index-item:nth-child(2) { animation-delay: 60ms; }
.index-open .index-item:nth-child(3) { animation-delay: 120ms; }
.index-open .index-item:nth-child(4) { animation-delay: 180ms; }
.index-open .index-item:nth-child(5) { animation-delay: 240ms; }
.index-open .index-item:nth-child(6) { animation-delay: 300ms; }
.index-open .index-item:nth-child(7) { animation-delay: 360ms; }

/* Changing page: the old one fades into the new one. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 350ms;
}
