/* FeLT page: the interactive assembly model (assets/felt/index.html) in a frame. */
.felt-frame { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: transparent; color-scheme: dark }
@media (max-width: 900px) { .felt-frame { height: 68vh } }
.felt-title span { margin-left: .5em; font-size: .42em; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap }
/* Logo files are the colour originals with the white paper cut out. */
/* The brand purple is unreadable on the dark page, so the row sits on white. */
/* Widths follow each file's aspect ratio (879:240 and 1065:240) so both logos come out the same height at any column width. */
.felt-logos { display: flex; align-items: center; justify-content: space-evenly; max-width: 640px; margin: 0 auto; padding: 32px 0; background: #fff; border-radius: 4px }
.felt-logos img { height: auto; width: 36.5% }
.felt-logos img + img { width: 44.2% }
/* Looping demo between the first paragraph and the rest of the text. */
.felt-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9 }
/* Paragraphs two and three each sit beside a render, on the same two columns as the title block. */
.felt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center }
.felt-row figure { margin: 0 }
.felt-row figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08) }
.felt-row .col p { margin: 0; line-height: 1.5 }
@media (max-width: 900px) { .felt-row { grid-template-columns: 1fr; gap: 20px } }
@media (max-width: 900px) { .felt-logos { padding: 26px 0 } }
/* The four steps of one exchange, a render above each. */
.felt-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px }
.felt-flow figure { margin: 0 }
.felt-flow img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08) }
.felt-flow h3 { margin: 16px 0 6px; font-weight: 900; letter-spacing: -.01em; font-size: 1.05rem }
.felt-flow p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem }
@media (max-width: 900px) { .felt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .felt-flow { grid-template-columns: 1fr } }
.felt-modules > p { color: inherit; max-width: 72ch }
.felt-modules figcaption { color: var(--muted); font-size: .95rem }
/* The interactive model follows the first paragraph closely. */
.felt-intro { padding-bottom: 28px }
/* Software pipeline. js/felt-pipeline.js adds .is-on to each part in turn. */
.felt-pipe { display: grid; gap: 28px }
.felt-pipe-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1.25fr); gap: 28px; align-items: start }
.felt-pipe-top > .felt-arrow { align-self: center }
.felt-pipe-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center }
.felt-arrow { width: 56px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .22; transition: opacity .5s ease }
.felt-arrow.is-on { opacity: 1 }
.felt-arrow.down { transform: rotate(90deg) }
.felt-link { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 20px 0; color: var(--muted); font-size: .9rem }
.felt-pipe [data-stage] { opacity: .32; transition: opacity .6s ease }
.felt-pipe [data-stage].is-on { opacity: 1 }
.felt-pipe h3 { margin: 0 0 18px; font-weight: 900; letter-spacing: -.01em; font-size: 1.15rem }
.felt-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem }
.felt-inputs { display: flex; gap: 28px }
.felt-inputs > div { display: grid; justify-items: center; gap: 8px; font-size: .85rem; color: var(--muted); opacity: .25; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease }
.felt-inputs > div.is-on { opacity: 1; transform: none }
.felt-inputs svg { width: 44px; height: 44px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.felt-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.75; border-left: 1px solid var(--line); padding-left: 16px }
.felt-code > div { opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .35s ease; white-space: pre-wrap }
.felt-code > div.is-on { opacity: 1; transform: none }
.felt-code span { display: inline-block; min-width: 13ch; color: var(--dim) }
.felt-code em { display: block; margin-top: 10px; font-style: normal; color: var(--dim) }
.felt-grid { display: grid; grid-template-columns: repeat(20, 1fr); aspect-ratio: 20 / 12 }
.felt-grid i { position: relative; border: 0 solid transparent; transition: border-color .8s ease }
.felt-grid i::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: rgba(232, 236, 239, .16); transition: background .35s ease, transform .35s ease }
.felt-grid i.is-on::after { background: #fff; transform: scale(1.35) }
.felt-grid i.edge-left { border-left-width: 1px }
.felt-grid i.edge-top { border-top-width: 1px }
.felt-grid.is-on i { border-color: var(--line) }
.felt-pipe video { display: block; width: 100%; aspect-ratio: 20 / 12; object-fit: cover; border-radius: 12px }
@media (max-width: 900px) { .felt-pipe-top, .felt-pipe-bottom { grid-template-columns: 1fr; justify-items: start } .felt-pipe [data-stage] { width: 100% } .felt-pipe-top > .felt-arrow, .felt-pipe-bottom > .felt-arrow { transform: rotate(90deg); margin: 8px 0 8px 4px } }
