/* The Simulation page: always dark, one accent, the fan of futures as its picture. Shares the site's type and chrome */
body.sim-page { --paper: #111110; --sheet: #191917; --well: #21211f; --rule: #2c2c29; --ink: #eeebe4; --soft: #a9a59d; --faint: #77746d;
  --go: #6cc08e; --go-wash: rgba(108, 192, 142, 0.14); --press: #eeebe4; --on-press: #111110; background: var(--paper); color: var(--ink); }
.sim-page .lockup__mark { content: url("../img/mark-paper.svg"); }
.sim-page .lockup__flag { content: url("../img/canada-flag-paper.png"); }
.sim-page .theme { display: none; }
.sim-hero { padding-top: clamp(56px, 9vw, 132px); }
.sim-hero .t-hero { max-width: 11em; }
.sim-hero .lede { margin-top: 28px; }
.sim-hero .ctas { margin-top: 32px; }
.sim-stage { position: relative; margin-top: clamp(36px, 6vw, 72px); height: clamp(300px, 52vw, 620px);
  background: radial-gradient(70% 90% at 6% 50%, rgba(108, 192, 142, 0.13), transparent 62%); box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.sim-stage canvas { display: block; width: 100%; height: 100%; }
.sim-stage .illus { position: absolute; right: var(--gutter); bottom: 12px; margin: 0; }
.sim-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.sim-facts > div { padding: 28px 28px 30px 0; }
.sim-facts > div + div { padding-left: 28px; box-shadow: inset 1px 0 0 var(--rule); }
.sim-facts dt { font-size: clamp(26px, 3.4vw, 46px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.sim-facts dd { margin: 10px 0 0; color: var(--soft); font-size: 16px; max-width: 16em; }
.sim-sec { padding-top: clamp(96px, 13vw, 190px); }
.sim-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sim-split .lede { margin-top: 24px; }
.sim-fig { margin: 0; padding: 28px 28px 20px; background: var(--sheet); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.sim-fig svg { display: block; width: 100%; height: auto; }
.sim-fig .illus { margin-top: 10px; }
.f-rule { stroke: var(--rule); stroke-width: 1; }
.f-dots circle { fill: var(--go); filter: drop-shadow(0 0 5px rgba(108, 192, 142, 0.5)); }
.f-span { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.f-plan { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.f-mean { fill: var(--ink); }
.f-k { fill: var(--soft); font: 400 15px var(--font); }
.f-v { fill: var(--ink); font: 500 22px var(--font); letter-spacing: -0.02em; }
.f-go { fill: var(--go); }
.sim-trio { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.sim-trio li, .sim-list li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--rule); }
.sim-trio b, .sim-list b { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.sim-trio span, .sim-list span { color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 22em; }
.sim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.sim-band { margin-top: clamp(96px, 13vw, 190px); padding: clamp(72px, 10vw, 150px) 0; background: var(--sheet); box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.sim-band .t-statement { max-width: 9.5em; }
.sim-proof { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 26px; max-width: 760px; }
.sim-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; }
.sim-score > div + div { padding-left: 24px; box-shadow: inset 1px 0 0 var(--rule); }
.sim-score dt { font-size: clamp(40px, 6vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -0.05em; color: var(--go); text-shadow: 0 0 34px rgba(108, 192, 142, 0.35); font-variant-numeric: tabular-nums; }
.sim-score dd { margin: 10px 0 0; color: var(--soft); font-size: 16px; }
.sim-page .close .illus { margin-top: -12px; }
@media (max-width: 860px) {
  .sim-split { grid-template-columns: 1fr; }
  .sim-trio { grid-template-columns: 1fr; }
  .sim-facts { grid-template-columns: 1fr; }
  .sim-facts > div, .sim-facts > div + div { padding: 20px 0; box-shadow: inset 0 1px 0 var(--rule); }
  .sim-facts > div:first-child { box-shadow: none; }
  .sim-fig { padding: 20px 16px 14px; }
  .f-k { font-size: 23px; }
  .f-v { font-size: 31px; }
  .sim-score > div + div { padding-left: 14px; }
}

/* Second pass: the stage as an instrument, a four-cell return grid, the case list, and the NDA request */
.sim-stage { height: clamp(340px, 56vw, 680px); background:
  radial-gradient(70% 90% at 6% 52%, rgba(108, 192, 142, 0.14), transparent 62%),
  linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 12.5%,
  linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 6.25% 100%; background-color: #0d0d0c; }
.sim-stage::before, .sim-stage::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border: 0 solid var(--soft); opacity: 0.7; }
.sim-stage::before { top: 14px; left: var(--gutter); border-width: 1px 0 0 1px; }
.sim-stage::after { bottom: 14px; right: var(--gutter); border-width: 0 1px 1px 0; }
.sim-hud { position: absolute; font-size: 12px; letter-spacing: 0.02em; color: var(--soft); font-variant-numeric: tabular-nums; pointer-events: none; }
.sim-hud--a { left: calc(var(--gutter) + 12px); top: 22px; }
.sim-hud--b { right: var(--gutter); top: 22px; }
.sim-hud--c { right: calc(var(--gutter) + 14px); bottom: 22px; }
.sim-stage .illus { display: none; }
.sim-split--top { align-items: start; }
.sim-quad { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 14px; overflow: hidden; }
.sim-quad li { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.4vw, 44px); box-shadow: inset -1px -1px 0 var(--rule); background: linear-gradient(180deg, rgba(238, 235, 228, 0.025), transparent 60%); }
.sim-quad b { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -0.035em; }
.sim-quad span { color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 24em; }
.sim-cases { list-style: none; margin: 0; padding: 0; }
.sim-cases li { padding: 18px 0; box-shadow: inset 0 -1px 0 var(--rule); font-size: clamp(20px, 2.1vw, 28px); letter-spacing: -0.03em; line-height: 1.15; }
.sim-cases li:first-child { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.sim-sec > .illus { margin-top: 28px; }
.sim-access { padding-top: clamp(96px, 13vw, 190px); scroll-margin-top: 40px; }
.sim-vault { position: relative; padding: clamp(28px, 5vw, 72px); background: #0d0d0c; box-shadow: inset 0 0 0 1px var(--rule); border-radius: 14px; display: grid; gap: 22px; justify-items: start; }
.sim-vault::before, .sim-vault::after { content: ""; position: absolute; width: 26px; height: 26px; border: 0 solid var(--go); pointer-events: none; }
.sim-vault::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: 14px; }
.sim-vault::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: 14px; }
.sim-vault .lede { margin: 0; }
.sim-form { display: grid; gap: 22px; width: 100%; max-width: 620px; margin-top: 10px; }
.sim-vault [hidden] { display: none !important; }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sim-field { display: grid; gap: 8px; font-size: 14px; color: var(--soft); }
.sim-field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0; padding: 8px 0 10px; color: var(--ink); font: 400 20px var(--font); letter-spacing: -0.02em; outline: none; }
.sim-field input::placeholder { color: var(--faint); }
.sim-field input:focus { border-bottom-color: var(--go); box-shadow: 0 1px 0 var(--go); }
.sim-sign input { font-size: 28px; font-style: italic; letter-spacing: -0.03em; padding-top: 14px; }
.sim-err { margin: -6px 0 0; color: #ff8a70; font-size: 15px; }
.sim-send { display: grid; gap: 14px; justify-items: start; margin-top: 6px; }
.sim-done { display: grid; gap: 8px; }
.sim-done b { font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -0.035em; color: var(--go); }
@media (max-width: 860px) {
  .sim-quad { grid-template-columns: 1fr; }
  .sim-row { grid-template-columns: 1fr; }
  .sim-hud--b { display: none; }
  .sim-sign input { font-size: 24px; }
}

/* Third pass: a deck of instruments in place of prose */
.sim-deck { margin-top: clamp(32px, 4.6vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 14px; overflow: hidden; background: #0d0d0c; }
.sim-inst { margin: 0; padding: 16px 18px 14px; box-shadow: inset -1px -1px 0 var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 12.5% 100%; background-blend-mode: normal; }
.sim-inst { background-color: transparent; }
.sim-inst figcaption { font-size: 13px; letter-spacing: 0.01em; color: var(--soft); display: flex; justify-content: space-between; }
.sim-inst figcaption::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); box-shadow: 0 0 10px var(--go); align-self: center; }
.sim-inst svg { display: block; width: 100%; height: auto; overflow: visible; }
.sim-inst pre { margin: 0; font: 400 11.5px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: var(--soft); white-space: pre; overflow: hidden; }
.sim-inst pre b { color: var(--go); font-weight: 400; }
.i-l { fill: none; stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.i-l.go { stroke: var(--go); stroke-opacity: 1; filter: drop-shadow(0 0 4px rgba(108, 192, 142, 0.6)); }
.i-l.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: i-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.i-a { fill: var(--ink); fill-opacity: 0.08; stroke: none; }
.i-a.go { fill: var(--go); fill-opacity: 0.16; }
.i-b { fill: var(--ink); fill-opacity: 0.5; }
.i-b.go { fill: var(--go); fill-opacity: 1; }
.i-b.dim { fill-opacity: 0.22; }
.i-d { stroke: var(--soft); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.i-t { fill: var(--soft); font: 400 10px var(--font); font-variant-numeric: tabular-nums; }
.i-t.go { fill: var(--go); }
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 1080px) { .sim-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sim-inst { padding: 12px 12px 10px; } .sim-inst figcaption { font-size: 12px; } .sim-inst pre { font-size: 8.5px; } }
@media (prefers-reduced-motion: reduce) { .i-l.draw { animation: none; stroke-dashoffset: 0; } }

/* Fourth pass: larger instrument cards with their own captions, and the pipeline */
.sim-deck--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sim-inst--lg { padding: 22px 22px 20px; gap: 16px; }
.sim-inst--lg figcaption { display: grid; gap: 6px; }
.sim-inst--lg figcaption::after { display: none; }
.sim-inst--lg figcaption b { color: var(--ink); font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.sim-inst--lg figcaption span { color: var(--soft); font-size: 15px; line-height: 1.45; }
.i-b.hot, .i-a.hot { fill: var(--tape, #ff6a4d); fill-opacity: 0.85; }
.i-a.hot { fill-opacity: 0.22; }
.i-l.hot { stroke: var(--tape, #ff6a4d); stroke-opacity: 1; }
.i-l.dash { stroke-dasharray: 4 5; animation: none; stroke-dashoffset: 0; }
.i-c { fill: var(--ink); fill-opacity: 0.75; }
.i-c.go { fill: var(--go); fill-opacity: 1; filter: drop-shadow(0 0 4px rgba(108, 192, 142, 0.7)); }
.i-c.hot { fill: var(--tape, #ff6a4d); fill-opacity: 1; }
.sim-pipe { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.sim-pipe::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--go) 0 40%, transparent 40% 100%) 0 0 / 28px 1px repeat-x; opacity: 0.7; animation: sim-flow 1.4s linear infinite; }
.sim-pipe li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 20px 0 0; }
.sim-pipe li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--go), 0 0 14px rgba(108, 192, 142, 0.55); }
.sim-pipe li::after { content: ""; position: absolute; left: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--go); }
.sim-pipe b { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.035em; }
.sim-pipe span { color: var(--soft); font-size: 16px; line-height: 1.45; max-width: 15em; }
@keyframes sim-flow { to { background-position: 28px 0; } }
@media (max-width: 1080px) { .sim-deck--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sim-deck--3 { grid-template-columns: 1fr; }
  .sim-pipe { grid-template-columns: 1fr; gap: 22px; }
  .sim-pipe::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--go) 0 40%, transparent 40% 100%) 0 0 / 1px 28px repeat-y; animation: none; }
  .sim-pipe li { padding: 0 0 0 34px; }
}
@media (prefers-reduced-motion: reduce) { .sim-pipe::before { animation: none; } }

/* Fifth pass: two wide columns for the cases, and one large animated plate per risk discipline */
.sim-deck--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-deck--2 .sim-inst--lg { padding: clamp(22px, 3vw, 40px); gap: 22px; }
.sim-deck--2 .sim-inst--lg figcaption b { font-size: clamp(20px, 2.2vw, 30px); }
.sim-rows { margin-top: clamp(28px, 4vw, 56px); }
.sim-rowfig { margin: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(36px, 6vw, 88px) 0; box-shadow: inset 0 1px 0 var(--rule); }
.sim-rowfig:nth-child(even) .sim-plate { order: 2; }
.sim-rowfig figcaption { font-size: clamp(20px, 2vw, 28px); line-height: 1.12; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.sim-plate { position: relative; padding: clamp(20px, 3.4vw, 48px); border-radius: 14px; background-color: #0d0d0c; box-shadow: inset 0 0 0 1px var(--rule);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 100% 12.5%, 6.25% 100%; overflow: hidden; }
.sim-plate::before, .sim-plate::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--go); pointer-events: none; }
.sim-plate::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.sim-plate::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.sim-plate svg { display: block; width: 100%; height: auto; overflow: visible; }
/* motion for the plates: drawn in, grown from their base, dropped in one after another, then a slow scan */
.a-grow-x, .a-grow-y, .a-pop { transform-box: fill-box; }
.a-grow-x { transform-origin: left center; animation: a-grow-x 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
.a-grow-y { transform-origin: center bottom; animation: a-grow-y 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
.a-pop { transform-origin: center; animation: a-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 500ms); }
.a-march { stroke-dasharray: 3 5; animation: a-march 1.2s linear infinite; }
.a-scan { animation: a-scan 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.a-breathe { animation: a-breathe 2.4s ease-in-out infinite alternate; }
.a-shift { animation: a-shift 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
.i-scan { stroke: var(--go); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.8; filter: drop-shadow(0 0 5px var(--go)); }
@keyframes a-grow-x { from { transform: scaleX(0); } }
@keyframes a-grow-y { from { transform: scaleY(0); } }
@keyframes a-pop { from { opacity: 0; transform: scale(0.2); } }
@keyframes a-march { to { stroke-dashoffset: -16; } }
@keyframes a-scan { from { transform: translateX(0); } to { transform: translateX(300px); } }
@keyframes a-breathe { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes a-shift { from { transform: translateX(-58px); opacity: 0.35; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 860px) {
  .sim-deck--2 { grid-template-columns: 1fr; }
  .sim-rowfig { grid-template-columns: 1fr; gap: 22px; }
  .sim-rowfig:nth-child(even) .sim-plate { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .a-grow-x, .a-grow-y, .a-pop, .a-march, .a-scan, .a-breathe, .a-shift { animation: none !important; } }

.sim-sec > .sim-deck:first-child { margin-top: 0; }

/* Sixth pass: the definitions in notation, one run typed out, and the specification */
.sim-eqs { margin-top: clamp(32px, 4.6vw, 60px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 0 0 1px var(--rule); border-radius: 14px; overflow: hidden; background: #0d0d0c; }
.sim-eq { margin: 0; padding: clamp(26px, 4vw, 56px) clamp(20px, 3vw, 44px); box-shadow: inset -1px -1px 0 var(--rule); display: grid; gap: 22px; align-content: space-between; min-width: 0; }
.sim-eq:last-child { grid-column: 1 / -1; }
.sim-eq figcaption { color: var(--soft); font-size: 15px; }
.sim-eq math { font-size: clamp(20px, 2.5vw, 36px); color: var(--ink); font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman", serif; }
.sim-eq math .g { color: var(--go); }
.sim-eq [data-inst] { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 0 8px; animation: a-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.sim-term { margin-top: clamp(32px, 4.6vw, 60px); border-radius: 14px; background: #0a0a09; box-shadow: inset 0 0 0 1px var(--rule), 0 40px 120px -60px rgba(108, 192, 142, 0.35); overflow: hidden; }
.sim-term__bar { display: flex; gap: 7px; padding: 13px 16px; box-shadow: inset 0 -1px 0 var(--rule); }
.sim-term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.sim-term pre { margin: 0; padding: clamp(18px, 3vw, 36px); min-height: 23em; font: 400 clamp(11px, 1.25vw, 15px)/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--soft); white-space: pre; overflow-x: auto; }
.sim-term pre b { color: var(--go); font-weight: 400; }
.sim-term pre u { color: var(--ink); text-decoration: none; }
.sim-term pre s { text-decoration: none; display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: var(--go); animation: a-breathe 0.7s steps(2) infinite alternate; }
.sim-spec { margin: clamp(32px, 4.6vw, 60px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 6vw, 96px); }
.sim-spec > div { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr); gap: 18px; padding: 17px 0; box-shadow: inset 0 1px 0 var(--rule); align-items: baseline; }
.sim-spec dt { color: var(--soft); font-size: 15px; }
.sim-spec dd { margin: 0; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .sim-eqs, .sim-spec { grid-template-columns: 1fr; } .sim-spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* Seventh pass: the definitions as plates. Each has its number, the formula lit on its key symbol, and a small
   picture of what it defines; a line of light crosses once as it appears */
.sim-eqs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; box-shadow: none; border-radius: 0; overflow: visible; background: none; }
.sim-eq { position: relative; grid-column: span 2; padding: 0; gap: 0; align-content: stretch; border-radius: 14px; background-color: #0d0d0c; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule); background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%; transition: box-shadow .5s cubic-bezier(0.16, 1, 0.3, 1), transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-eq:nth-child(2), .sim-eq:nth-child(6) { grid-column: span 4; }
.sim-eq:last-child { grid-column: span 2; }
.sim-eq:hover { box-shadow: inset 0 0 0 1px var(--go), 0 30px 90px -50px rgba(108, 192, 142, 0.6); transform: translateY(-3px); }
.sim-eq::before, .sim-eq::after { content: ""; position: absolute; width: 20px; height: 20px; border: 0 solid var(--go); pointer-events: none; z-index: 2; }
.sim-eq::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.sim-eq::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.sim-eq [data-inst] { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: clamp(230px, 24vw, 330px); padding: 0; overflow: hidden; animation: none; }
.sim-eq [data-inst]::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(108, 192, 142, 0.16), transparent); transform: translateX(-120%); animation: eq-sweep 2.6s cubic-bezier(0.45, 0, 0.55, 1) 0.4s both; }
.eq-n { padding: 18px 0 0 34px; color: var(--go); font-size: 12px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sim-eq math { align-self: center; justify-self: center; margin: 0; padding: 6px 20px 14px; font-size: clamp(21px, 2.3vw, 34px); animation: eq-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.sim-eq:nth-child(2) math, .sim-eq:nth-child(6) math { font-size: clamp(24px, 3.1vw, 46px); }
.sim-eq math .g { color: var(--go); text-shadow: 0 0 18px rgba(108, 192, 142, 0.75), 0 0 2px rgba(108, 192, 142, 0.9); }
.eq-g { display: block; width: 100%; height: auto; max-height: 96px; padding: 0 22px; box-sizing: border-box; overflow: visible; box-shadow: inset 0 1px 0 var(--rule); background: linear-gradient(180deg, rgba(108, 192, 142, 0.05), transparent); }
.sim-eq figcaption { padding: 13px 22px 16px; box-shadow: inset 0 1px 0 var(--rule); color: var(--ink); font-size: 15px; letter-spacing: -0.01em; background: rgba(13, 13, 12, 0.85); }
@keyframes eq-sweep { to { transform: translateX(420%); } }
@keyframes eq-in { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } }
@media (max-width: 1080px) { .sim-eq, .sim-eq:nth-child(2), .sim-eq:nth-child(6) { grid-column: span 3; } .sim-eq:last-child { grid-column: span 6; } }
@media (max-width: 860px) { .sim-eqs { grid-template-columns: 1fr; } .sim-eq, .sim-eq:nth-child(2), .sim-eq:nth-child(6), .sim-eq:last-child { grid-column: auto; } .sim-eq [data-inst] { min-height: 210px; } }
@media (prefers-reduced-motion: reduce) { .sim-eq math, .sim-eq [data-inst]::after { animation: none; } .sim-eq [data-inst]::after { display: none; } }

/* The home page's preview of the simulator: always dark, the fan of futures and six of the page's instruments */
.sim-teaser-row { padding-top: clamp(40px, 5vw, 72px); }
.sim-teaser { --paper: #111110; --sheet: #191917; --well: #21211f; --rule: #2c2c29; --ink: #eeebe4; --soft: #a9a59d; --faint: #77746d; --go: #6cc08e; --tape: #ff6a4d;
  display: block; position: relative; border-radius: 18px; overflow: hidden; background: #0d0d0c; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-teaser:hover { box-shadow: inset 0 0 0 1px var(--go), 0 50px 120px -70px rgba(108, 192, 142, 0.75); transform: translateY(-3px); }
.sim-teaser__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 28px; align-items: end; padding: clamp(24px, 3.4vw, 44px) clamp(22px, 3.4vw, 44px) clamp(18px, 2.4vw, 30px); }
.sim-teaser__k { grid-column: 1 / -1; color: var(--tape); font-size: 15px; font-weight: 500; }
.sim-teaser__t { font-size: clamp(28px, 4.2vw, 60px); line-height: 1; font-weight: 500; letter-spacing: -0.05em; text-wrap: balance; max-width: 15em; }
.sim-teaser__s { grid-column: 1; color: var(--soft); font-size: 18px; line-height: 1.45; max-width: 34em; }
.sim-teaser__go { grid-column: 2; grid-row: 2 / span 2; align-self: end; display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 8px; background: var(--ink); color: #111110; font-size: 16px; font-weight: 500; white-space: nowrap; }
.sim-teaser__go svg { width: 18px; height: 18px; transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-teaser:hover .sim-teaser__go svg { transform: translateX(5px); }
.sim-teaser__stage { height: clamp(220px, 30vw, 400px); box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule);
  background: radial-gradient(70% 90% at 6% 54%, rgba(108, 192, 142, 0.15), transparent 62%), linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 16.66%, linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 6.25% 100%; }
.sim-teaser__stage canvas { display: block; width: 100%; height: 100%; }
.sim-teaser__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sim-teaser__grid li { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px 18px 16px; box-shadow: inset -1px 0 0 var(--rule); min-width: 0; }
.sim-teaser__grid li:last-child { box-shadow: none; }
.sim-teaser__grid svg { display: block; width: 100%; height: auto; overflow: visible; }
.sim-teaser__grid span { color: var(--soft); font-size: 14px; line-height: 1.3; }
.sim-teaser__grid math { display: block; font-size: 13px; color: var(--ink); font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman", serif; padding: 14px 0 6px; }
.sim-teaser__grid math .g { color: var(--go); }
.sim-teaser__grid .eq-n, .sim-teaser__grid .eq-g { display: none; }
@media (max-width: 1080px) { .sim-teaser__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sim-teaser__grid li { box-shadow: inset -1px -1px 0 var(--rule); } }
@media (max-width: 700px) { .sim-teaser__head { grid-template-columns: 1fr; } .sim-teaser__go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } .sim-teaser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sim-teaser__grid math { font-size: 10px; } }

/* The six cases: smaller pictures, three across on a desktop, two on a tablet and on a phone */
.sim-deck--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sim-deck--2 .sim-inst--lg { padding: clamp(16px, 1.8vw, 24px); gap: 14px; }
.sim-deck--2 .sim-inst--lg svg { max-width: 260px; margin: 0 auto; }
.sim-deck--2 .sim-inst--lg figcaption b { font-size: clamp(16px, 1.5vw, 20px); }
@media (max-width: 1080px) { .sim-deck--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sim-deck--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sim-deck--2 .sim-inst--lg svg { max-width: 200px; } .sim-deck--2 .sim-inst--lg figcaption b { font-size: 15px; } }

/* The formal name of each definition, with its symbol set apart */
.sim-eq figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 22px 18px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.25; letter-spacing: -0.02em; }
.sim-eq figcaption sup { font-size: 0.7em; }
.eq-tag { flex: 0 0 auto; font-style: normal; font: 400 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--go); padding: 3px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(108, 192, 142, 0.4); text-shadow: 0 0 10px rgba(108, 192, 142, 0.7); }

/* What a decision is optimized for: four objectives, each with its direction */
.sim-obj { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; background: #0d0d0c; box-shadow: inset 0 0 0 1px var(--rule); }
.sim-obj li { display: flex; align-items: center; gap: 14px; padding: clamp(18px, 2.4vw, 30px); box-shadow: inset -1px 0 0 var(--rule); font-size: clamp(17px, 1.7vw, 24px); letter-spacing: -0.03em; line-height: 1.15; }
.sim-obj li:last-child { box-shadow: none; }
.sim-obj li::before { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--go); box-shadow: inset 0 0 0 1px rgba(108, 192, 142, 0.5), 0 0 18px rgba(108, 192, 142, 0.35); animation: a-breathe 2.6s ease-in-out infinite alternate; }
.sim-obj li.up::before { content: "\2191"; }
.sim-obj li.down::before { content: "\2193"; }
@media (max-width: 860px) { .sim-obj { grid-template-columns: 1fr 1fr; } .sim-obj li { box-shadow: inset -1px -1px 0 var(--rule); } }
@media (prefers-reduced-motion: reduce) { .sim-obj li::before { animation: none; } }

.sim-teaser__go { grid-row: 2; }

/* The argument, set as editorial text: two paragraphs, the second in the accent of the page */
.sim-thesis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding-top: clamp(28px, 4vw, 56px); box-shadow: inset 0 1px 0 var(--rule); }
.sim-thesis p { margin: 0; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.45; letter-spacing: -0.02em; color: var(--soft); text-wrap: pretty; }
.sim-thesis p:last-child { color: var(--ink); }
@media (max-width: 860px) { .sim-thesis { grid-template-columns: 1fr; } }

/* Phone width: the two wide formulas fit their plates, the run log and
   the ledger fit their frames, and the home block's button sits under its title */
@media (max-width: 860px) {
  .sim-eq:nth-child(2) math, .sim-eq:nth-child(6) math { font-size: clamp(14px, 4.4vw, 24px); }
}
@media (max-width: 700px) {
  .sim-teaser__go { grid-row: auto; }
}
@media (max-width: 520px) {
  .sim-term pre { font-size: 2.35vw; padding: 16px 14px; }
  .sim-inst pre { font-size: 1.55vw; }
}

/* The technical note, shown as a document under the formula plates: a sheet of its first page beside what it is */
@font-face { font-family: "LM Roman"; src: local("Latin Modern Roman"), local("LMRoman10-Regular"), url("../fonts/lm-roman-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Roman"; src: local("LMRoman10-Bold"), url("../fonts/lm-roman-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
.sim-doc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 64px); margin-top: clamp(26px, 3.4vw, 44px); border-radius: 14px; overflow: hidden;
  background: #0d0d0c; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; transition: box-shadow .5s, transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-doc:hover { box-shadow: inset 0 0 0 1px var(--go), 0 30px 90px -50px rgba(108, 192, 142, 0.6); }
.sim-doc__page { display: block; height: clamp(250px, 27vw, 360px); padding: clamp(22px, 3vw, 40px) clamp(22px, 3.4vw, 48px) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.sim-doc__sheet { display: block; padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px) 60px; background: #f8f5ed; color: #151513; border-radius: 2px;
  font: 400 clamp(8.5px, 0.92vw, 11.5px)/1.48 "LM Roman", "Latin Modern Roman", "STIX Two Text", Cambria, "Times New Roman", serif; letter-spacing: 0; text-align: justify; hyphens: auto;
  box-shadow: 0 30px 90px -30px rgba(108, 192, 142, 0.45); transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-doc:hover .sim-doc__sheet { transform: translateY(-10px); }
.sim-doc__sheet > span { display: block; }
.sim-doc__sheet .d-doc { text-align: center; color: #55534d; font-size: 0.92em; }
.sim-doc__sheet .d-title { text-align: center; font-size: 1.85em; line-height: 1.18; margin: 0.45em 0 0.15em; hyphens: manual; }
.sim-doc__sheet .d-sub { text-align: center; font-size: 1.15em; }
.sim-doc__sheet .d-by { text-align: center; margin: 0.9em 0 1.5em; }
.sim-doc__sheet .d-h { font-weight: 700; font-size: 1.25em; margin: 1.2em 0 0.5em; text-align: left; }
.sim-doc__sheet .d-h span { margin-right: 0.7em; }
.sim-doc__sheet .d-h--c { text-align: center; font-size: 1em; margin: 0 0 0.4em; }
.sim-doc__sheet .d-p { margin: 0 8%; font-size: 0.94em; }
.sim-doc__sheet .d-eq { text-align: center; margin-top: 0.8em; }
.sim-doc__sheet math { font-family: "Latin Modern Math", "STIX Two Math", "Cambria Math", math; font-size: 1.1em; }
.sim-doc__text { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 3vw, 40px) clamp(22px, 3.4vw, 48px) clamp(24px, 3vw, 40px) 0; }
.sim-doc__t { font-size: clamp(26px, 3vw, 40px); line-height: 1.04; font-weight: 500; letter-spacing: -0.045em; }
.sim-doc__s { color: var(--soft); font-size: 18px; line-height: 1.45; max-width: 22em; }
.sim-doc__m { color: var(--faint); font-size: 15px; font-variant-numeric: tabular-nums; }
.sim-doc__go { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 22px; border-radius: 8px; background: var(--ink); color: #111110; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.sim-doc__go svg { width: 18px; height: 18px; transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-doc:hover .sim-doc__go svg { transform: translateX(5px); }
@media (max-width: 760px) {
  .sim-doc { grid-template-columns: 1fr; gap: 0; }
  .sim-doc__page { height: 250px; }
  .sim-doc__sheet { font-size: 9.5px; }
  .sim-doc__text { padding: 6px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { .sim-doc__sheet, .sim-doc__go svg { transition: none; } .sim-doc:hover .sim-doc__sheet { transform: none; } }

/* One scale on this page: every section heading is .t-section, the closing line is no larger than
   the page title, and a plate's caption is a sub-heading the size of the pipeline's step names */
.sim-page .t-statement { font-size: clamp(42px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.05em; }
@media (max-width: 720px) { .sim-page .t-statement { font-size: clamp(40px, 11.4vw, 46px); } }

/* The simulator on the other pages: a dark panel on a page of either theme, with the home block's palette */
.sim-panel, .sim-line, .sim-mini { --paper: #111110; --sheet: #191917; --well: #21211f; --rule: #2c2c29; --ink: #eeebe4; --soft: #a9a59d; --faint: #77746d; --go: #6cc08e; --tape: #ff6a4d; color: var(--ink); }
.sim-panel [data-inst], .sim-line [data-inst], .sim-mini [data-inst] { display: block; min-width: 0; }
.sim-panel [data-inst] svg, .sim-line [data-inst] svg, .sim-mini [data-inst] svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Product page: the fan of futures beside what comes back */
.sim-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: clamp(28px, 4vw, 56px); border-radius: 18px; overflow: hidden; background: #0d0d0c; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.sim-panel:hover { box-shadow: inset 0 0 0 1px var(--go), 0 50px 120px -70px rgba(108, 192, 142, 0.75); transform: translateY(-3px); }
.sim-panel .sim-panel__stage { display: block; height: auto; min-height: clamp(280px, 32vw, 440px); box-shadow: inset -1px 0 0 var(--rule); }
.sim-panel__side { display: grid; grid-template-rows: repeat(3, auto) 1fr; }
.sim-panel__row { display: grid; grid-template-columns: clamp(84px, 9vw, 124px) minmax(0, 1fr); align-items: center; gap: clamp(14px, 1.8vw, 24px); padding: clamp(16px, 1.9vw, 26px) clamp(18px, 2.2vw, 30px); box-shadow: inset 0 -1px 0 var(--rule); }
.sim-panel__row b { font-size: clamp(17px, 1.55vw, 22px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.sim-panel__foot { display: flex; align-items: end; padding: clamp(18px, 2.2vw, 30px); }
.sim-panel__foot .sim-doc__go { margin-top: 0; }
.sim-panel:hover .sim-doc__go svg { transform: translateX(5px); }
@media (max-width: 860px) { .sim-panel { grid-template-columns: 1fr; } .sim-panel .sim-panel__stage { min-height: 230px; box-shadow: inset 0 -1px 0 var(--rule); } }

/* Industries and the airline sample: one decision the simulator prices */
.sim-line { display: grid; grid-template-columns: clamp(76px, 9vw, 112px) minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; margin-top: 22px; padding: 14px 20px 14px 16px; max-width: 34em; border-radius: 12px; background: #0d0d0c;
  box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; transition: box-shadow .5s; }
.sim-line:hover { box-shadow: inset 0 0 0 1px var(--go); }
.sim-line__t { display: grid; gap: 4px; min-width: 0; }
.sim-line__t b { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.sim-line__t span { font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.sim-line > svg { width: 18px; height: 18px; color: var(--soft); transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), color .3s; }
.sim-line:hover > svg { transform: translateX(4px); color: var(--go); }
.sim-line .i-t { display: none; }
.feature .sim-line { margin: 28px 0 22px; }

/* Engineering page: the fan as the chapter's plate, and three views of a run as its figure */
.sim-mini { display: block; border-radius: 14px; overflow: hidden; background-color: #0d0d0c; box-shadow: inset 0 0 0 1px var(--rule); }
.sim-mini.sim-mini--stage { height: clamp(200px, 21vw, 280px); max-height: none; width: 100%; max-width: 440px; justify-self: end; }
.sim-mini canvas { display: block; width: 100%; height: 100%; }
.sim-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sim-trio > span { display: grid; gap: 14px; align-content: space-between; padding: 22px 18px 16px; box-shadow: inset -1px 0 0 var(--rule); min-width: 0; }
.sim-trio > span:last-child { box-shadow: none; }
.sim-trio b { font-size: 14px; font-weight: 400; color: var(--soft); }
#simulation.dd-ch .modelled { margin-top: 22px; }
#simulation.dd-ch .ctas { margin-top: 22px; }
@media (max-width: 860px) { .sim-mini.sim-mini--stage { justify-self: stretch; max-width: none; } }
@media (max-width: 520px) { .sim-trio > span { padding: 14px 10px 12px; } .sim-trio b { font-size: 12px; } }
@media (max-width: 520px) { .sim-line { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 12px; } .sim-line__t b { font-size: 16px; } }
