.hero { grid-template-columns: .86fr 1.14fr; gap: 36px; padding-block: 65px 75px; min-height: 810px; }
.hero h1 { font-size: clamp(52px, 4.9vw, 72px); }
.exchange-demo { position: relative; isolation: isolate; min-width: 0; width: 100%; max-width: 650px; justify-self: center; }
.exchange-watermark { position: absolute; inset: 35px -15px 110px; z-index: -1; display: grid; place-items: center; background-image: linear-gradient(#45472c30 1px, transparent 1px), linear-gradient(90deg, #45472c30 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse, black 30%, transparent 75%); }
.exchange-watermark img { width: 290px; opacity: .035; }
.exchange-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 25px; font: 9px var(--mono); letter-spacing: .07em; color: var(--muted); }
.exchange-topline > span:first-child { display: flex; align-items: center; gap: 9px; color: var(--gold); }
.exchange-board { display: grid; grid-template-columns: minmax(0, 1.35fr) 40px minmax(0, .85fr); gap: 0; align-items: start; }
.demo-object-label { display: block; margin-bottom: 12px; font: 9px var(--mono); letter-spacing: .1em; color: #b6bda2; }
.demo-computer, .demo-device { min-width: 0; }
.demo-monitor { background: #1b1e17; border: 1px solid #575c44; border-radius: 8px; box-shadow: 0 16px 30px #0004; }
.demo-window { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.demo-window > span:last-child { color: var(--green); font-size: 8px; }
.demo-window-dots { color: #78825f; font-size: 6px; white-space: nowrap; }
.demo-vault { padding: 16px 12px 12px; }
.demo-vault-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.demo-vault-title strong { font-weight: 500; font-size: 20px; letter-spacing: -.03em; }
.demo-vault-title > span { font: 9px var(--mono); color: var(--muted); }
.demo-entry { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; padding: 12px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.demo-entry > span:nth-child(2) { min-width: 0; }
.demo-entry strong { font-size: 11px; line-height: 1.45; display: block; font-weight: 500; }
.demo-entry small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.demo-entry-icon { display: grid; place-items: center; flex: 0 0 27px; height: 29px; background: #323429; border: 1px solid #5d614b; border-radius: 4px; color: #d2d8be; font-size: 13px; }
.demo-selected { border: 1px solid #77694a; background: #302c21; border-radius: 4px; margin-bottom: 3px; }
.demo-selected .demo-entry-icon { background: #4a3d25; border-color: #968052; color: var(--gold); }
.demo-entry-tail, .demo-lock { margin-left: auto; color: var(--gold); font-size: 12px; }
.demo-lock { color: #868f72; font-size: 10px; }
.demo-cursor { position: absolute; right: 13px; bottom: -6px; width: 18px; height: 23px; fill: var(--ink); stroke: #22251b; stroke-width: 1.5; opacity: 0; }
[data-demo-phase="request"] .demo-cursor { animation: request-click 1.5s ease both; }
@keyframes request-click { 0% { opacity: 0; transform: translate(10px, 12px); } 35%, 70% { opacity: 1; transform: translate(0, 0); } 55% { transform: translate(0, 0) scale(.85); } 100% { opacity: 0; transform: translate(0, 0); } }
.demo-secret { border: 1px dashed #555b43; padding: 12px 10px; border-radius: 3px; margin-top: 15px; display: grid; gap: 6px; min-height: 93px; }
.demo-secret > span { font-size: 9px; color: var(--muted); }
.demo-secret > strong { font: 15px var(--mono); letter-spacing: 1px; color: #d6dbc7; overflow-wrap: anywhere; }
.demo-secret > small { font-size: 9px; line-height: 1.5; color: var(--muted); }
[data-demo-phase="released"] .demo-secret { border-color: var(--green); background: #263222; }
[data-demo-phase="released"] .demo-secret > strong { color: var(--green); letter-spacing: 0; }
[data-demo-phase="denied"] .demo-secret { border-color: #bd7c70; }
.monitor-stand { width: 55px; height: 20px; margin: 0 auto; background: linear-gradient(90deg, #494d3c, #313528); clip-path: polygon(30% 0, 70% 0, 78% 80%, 100% 90%, 100% 100%, 0 100%, 0 90%, 22% 80%); }
.demo-person { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.demo-person svg { width: 35px; height: 35px; padding: 3px; fill: none; stroke: var(--gold); stroke-width: 1.6; border: 1px solid #675c3e; background: #28271d; border-radius: 50%; }
.demo-person strong { display: block; font-size: 11px; font-weight: 500; }
.demo-person span { display: block; font-size: 9px; color: var(--muted); }
.demo-usb { align-self: center; display: grid; gap: 10px; text-align: center; color: #8d9677; font: 8px var(--mono); margin-bottom: 70px; }
.usb-wire { position: relative; border-top: 2px solid #535a41; width: 100%; }
.usb-packet { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); top: -4px; left: 0; opacity: 0; box-shadow: 0 0 10px #e9c58266; }
[data-demo-phase="request"] .usb-packet { animation: usb-request 2s ease-in-out infinite; }
[data-demo-phase="return"] .usb-packet { background: var(--green); animation: usb-return 2s ease-in-out infinite; }
@keyframes usb-request { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes usb-return { 0% { left: calc(100% - 7px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.usb-direction { font-size: 18px; }
[data-demo-phase="return"] .usb-direction { color: var(--green); }
.demo-device-shell { border: 1px solid #7c806e; border-radius: 17px 17px 26px 26px; background: linear-gradient(120deg, #494d40, #2f3329 70%, #5c6251); box-shadow: 0 20px 25px #0004; padding: 13px 9px 12px; }
.demo-device-brand { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 13px; font-size: 11px; }
.demo-device-brand strong { font-weight: 500; }
.demo-device-screen { border: 1px solid #59624a; background: #0e120d; border-radius: 3px; padding: 14px 10px 10px; display: flex; flex-direction: column; min-height: 285px; }
.demo-screen-tag { font: 8px var(--mono); letter-spacing: .03em; color: #bac9a9; margin-bottom: 17px; }
.demo-device-screen > strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.4; min-height: 42px; margin-bottom: 16px; }
.demo-identity { margin: 0 0 13px; }
.demo-identity div + div { margin-top: 12px; }
.demo-identity dt { font-size: 8px; color: #8d9b80; }
.demo-identity dd { font: 9px var(--mono); color: #d5e0c8; margin: 3px 0 0; overflow-wrap: anywhere; }
.demo-device-screen > p { margin: 0 0 15px; color: #a8b898; font-size: 10px; line-height: 1.7; }
.demo-touch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: auto; }
.demo-touch-actions button { padding: 9px 2px; border: 1px solid #8b5b52; color: #efd2cd; background: #502c28; font-size: 9px; min-height: 35px; border-radius: 2px; }
.demo-touch-actions button + button { border-color: #607b52; color: #e0f0d5; background: #334b2b; }
.demo-touch-actions button:disabled { opacity: .3; cursor: default; }
[data-demo-phase="review"] .demo-device-screen { border-color: var(--gold); box-shadow: 0 0 0 2px #e9c58225; }
[data-demo-phase="review"][data-demo-branch="approve"] .demo-touch-actions button + button,
[data-demo-phase="review"][data-demo-branch="deny"] .demo-touch-actions button:first-child { animation: device-press 4.5s ease both; }
@keyframes device-press { 0%, 75% { filter: brightness(1); } 90% { filter: brightness(1.9); transform: scale(.95); } 100% { filter: brightness(1); transform: scale(1); } }
.demo-device-chin { display: block; background: #1c2118; width: 28px; height: 3px; border-radius: 3px; margin: 14px auto 2px; }
.demo-models { display: block; text-align: center; margin-top: 15px; font: 9px var(--mono); color: var(--muted); }
.demo-pin { text-align: center; margin-bottom: 13px; }
.demo-pin > span { color: var(--gold); font: 13px var(--mono); }
.demo-pin > div { font: 13px/1.8 var(--mono); color: #c5d1b8; margin: 10px 0; }
.demo-pin > small { font: 6px var(--mono); color: #93a381; }
[data-demo-phase="pin"] .demo-device-screen > strong { min-height: 0; margin-bottom: 10px; }
[data-demo-phase="pin"] .demo-device-screen > p { font-size: 8px; }
.demo-storage { display: flex; gap: 10px; align-items: center; padding: 13px 15px; border: 1px solid #444e36; background: #1d251a; margin-top: 22px; border-radius: 4px; }
.demo-storage svg, .actor-heading svg { width: 27px; height: 27px; fill: none; stroke: #a9bd92; stroke-width: 1.5; flex: 0 0 27px; }
.demo-storage strong { font-size: 11px; font-weight: 500; display: block; }
.demo-storage div > span { font-size: 9px; color: #a5b794; display: block; margin-top: 2px; }
.demo-storage-locks { color: #8aa56f; font-size: 14px; margin-left: auto; white-space: nowrap; }
.demo-story { border-left: 2px solid var(--gold); margin: 23px 0 18px; padding-left: 14px; min-height: 113px; }
.demo-story .tag { font-size: 8px; display: block; margin-bottom: 7px; }
.demo-story > strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; }
.demo-story p { font-size: 11px; line-height: 1.7; margin: 6px 0 0; max-width: 530px; }
[data-demo-phase="denied"] .demo-story { border-color: #d08b7f; }
[data-demo-phase="released"] .demo-story { border-color: var(--green); }
.demo-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.demo-toolbar > div { display: flex; align-items: center; gap: 7px; }
.demo-toolbar button, .flow-controls button { border: 1px solid #555b45; border-radius: 3px; background: #1d2117; padding: 8px 11px; font-size: 11px; color: #d4ddc4; min-height: 35px; }
.demo-toolbar button[aria-pressed="true"] { border-color: #ab935b; background: #342e20; color: var(--gold); }
.demo-toolbar button:hover, .flow-controls button:hover { border-color: var(--gold); }
.demo-footnote { display: flex; justify-content: space-between; align-items: start; gap: 16px; font-size: 9px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.demo-footnote a { color: var(--gold); white-space: nowrap; }
.demo-paused *, .demo-paused *::after { animation-play-state: paused !important; }
#how-it-works > .text-link { margin-top: 27px; }
.flow-intro { padding-bottom: 40px; }
.flow-intro > p:last-of-type { max-width: 760px; }
.flow-intro > .tag { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.flow-section { padding-bottom: 70px; }
.flow-explorer { border: 1px solid #51553c; background: #1a1d15; padding: 30px; border-radius: 5px; }
.flow-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.flow-toolbar label { display: grid; gap: 10px; color: #c5cbb6; font-size: 11px; }
.flow-toolbar select { font: 14px var(--sans); border: 1px solid #62654b; padding: 12px; border-radius: 3px; width: 100%; min-width: 0; background: #282c20; color: var(--ink); min-height: 46px; }
select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.flow-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin: 25px 0; }
.flow-heading h2 { font-size: 29px; margin-bottom: 12px; }
.flow-heading p { font-size: 13px; margin-bottom: 0; max-width: 660px; }
.flow-heading .text-link { font-size: 12px; flex-shrink: 0; }
.flow-actors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow-actors article { position: relative; border: 1px solid #424b34; border-radius: 4px; background: #22281b; padding: 22px; display: flex; flex-direction: column; min-height: 238px; }
.flow-actors article.is-active { border-color: var(--gold); background: #2c2c1d; }
.flow-actors article + article::before { content: '→'; position: absolute; top: 50%; left: -16px; width: 16px; text-align: center; color: var(--gold); font: 12px var(--mono); }
.actor-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.actor-heading span { font: 9px var(--mono); letter-spacing: .07em; color: #b7c59d; }
.flow-actors h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 12px; }
.flow-actors p { font-size: 12px; line-height: 1.75; margin-bottom: 20px; min-height: 42px; }
.actor-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; border-top: 1px solid #495038; padding-top: 14px; min-height: 48px; }
.actor-foot > strong { color: var(--gold); font: 32px var(--mono); }
.actor-foot > span { color: #a8b794; font-size: 10px; line-height: 1.6; }
.actor-foot .actor-dot { flex: 0 0 6px; height: 6px; background: var(--green); border-radius: 50%; }
[data-tone="good"] [data-flow-count] { color: var(--green); }
[data-tone="bad"] .flow-current { border-color: #bc8577; }
[data-tone="bad"] .flow-location { color: #dfb3a9; border-color: #845849; }
.flow-current { display: flex; justify-content: space-between; gap: 35px; margin: 25px 0; border-left: 3px solid var(--gold); padding: 8px 0 8px 20px; min-height: 170px; }
.flow-current h3 { font-size: 27px; line-height: 1.3; margin: 13px 0 12px; }
.flow-current p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.85; }
.flow-location { font: 9px var(--mono); color: var(--gold); border: 1px solid #756642; padding: 7px 11px; border-radius: 3px; align-self: start; white-space: nowrap; }
.flow-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.flow-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-controls button { min-height: 40px; font-size: 12px; }
.flow-controls .play-control { background: var(--gold); color: #282216; border-color: var(--gold); min-width: 108px; }
.flow-controls button:disabled { opacity: .35; cursor: default; }
.flow-controls > span { font-size: 10px; color: var(--muted); }
.flow-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 25px 0 0; padding: 0; }
.flow-timeline button { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 11px; width: 100%; height: 100%; min-height: 85px; padding: 15px 12px; text-align: left; border: 1px solid #3e4630; border-radius: 3px; background: #20261a; color: #bdc6a9; }
.flow-timeline button > span { font: 11px var(--mono); grid-row: 1 / 3; color: #8b9973; }
.flow-timeline strong { font-size: 12px; font-weight: 500; line-height: 1.5; }
.flow-timeline small { font: 8px var(--mono); text-transform: uppercase; color: #8f9d7c; }
.flow-timeline button[aria-current="step"] { border-color: var(--gold); background: #302f1e; color: var(--gold); }
.flow-timeline button[aria-current="step"] > span { color: var(--gold); }
.flow-timeline .is-complete button > span { color: var(--green); }
.flow-timeline button:hover { border-color: #aaa377; }
.journeys-ready .flow-fallback { display: none; }
.flow-fallback details { border-top: 1px solid var(--line); }
.flow-fallback summary { color: var(--gold); }
.flow-fallback li { padding-bottom: 15px; color: var(--muted); font-size: 14px; }
.flow-fallback li strong { display: block; color: var(--ink); margin-bottom: 6px; }
.flow-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-bottom: 80px; }
.flow-notes article { border-top: 1px solid var(--line); padding-top: 30px; }
.flow-notes h2 { font-size: 31px; line-height: 1.3; margin-top: 20px; }
.flow-notes p { font-size: 14px; line-height: 1.9; }
@media(min-width: 1500px) { .hero { padding-block: 80px; min-height: 850px; } }
@media(max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 740px; }
  .hero-lede { max-width: 560px; }
  .exchange-demo { width: min(650px, 100%); justify-self: center; }
  .exchange-board { grid-template-columns: minmax(0, 1.4fr) 64px minmax(0, .85fr); }
  .flow-actors article { padding: 17px; }
  .actor-heading { gap: 8px; }
  .flow-actors h3 { font-size: 18px; }
  .flow-controls { align-items: start; flex-direction: column; gap: 12px; }
}
@media(max-width: 760px) {
  .header nav { flex-wrap: wrap; }
  .hero { gap: 45px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(53px, 10vw, 72px); }
  .exchange-board { grid-template-columns: minmax(0, 1.15fr) 27px minmax(0, .85fr); }
  .exchange-topline { font-size: 8px; }
  .demo-object-label { font-size: 8px; }
  .demo-window { font-size: 8px; padding: 9px 8px; gap: 4px; }
  .demo-window > span:last-child { font-size: 7px; }
  .demo-vault { padding: 13px 8px 9px; }
  .demo-vault-title { gap: 4px; margin-bottom: 13px; }
  .demo-vault-title strong { font-size: 17px; }
  .demo-vault-title > span { font-size: 8px; }
  .demo-entry { gap: 6px; padding: 10px 4px; }
  .demo-entry strong { font-size: 10px; }
  .demo-entry small { font-size: 8px; }
  .demo-entry-icon { flex-basis: 22px; height: 24px; font-size: 11px; }
  .demo-secret { padding: 9px 6px; min-height: 93px; }
  .demo-secret > strong { font-size: 12px; letter-spacing: 0; }
  .demo-secret > small { font-size: 8px; }
  .demo-entry-tail { font-size: 9px; }
  .demo-lock { font-size: 8px; }
  .demo-device-shell { padding: 11px 6px 10px; }
  .demo-device-brand { gap: 4px; font-size: 10px; }
  .demo-device-brand img { width: 16px; }
  .demo-device-screen { padding: 12px 7px 8px; min-height: 289px; }
  .demo-screen-tag { font-size: 7px; }
  .demo-device-screen > strong { font-size: 13px; margin-bottom: 14px; }
  .demo-identity dd { font-size: 8px; }
  .demo-device-screen > p { font-size: 9px; }
  .demo-touch-actions { gap: 4px; }
  .demo-touch-actions button { font-size: 8px; min-height: 33px; }
  .demo-story { min-height: 142px; }
  .demo-story > strong { font-size: 18px; }
  .demo-story p { font-size: 12px; }
  .demo-footnote { font-size: 8px; }
  .demo-storage { padding: 12px 10px; margin-top: 18px; }
  .demo-storage-locks { font-size: 10px; }
  .demo-toolbar button { font-size: 10px; padding: 8px 9px; }
  .flow-explorer { padding: 20px; }
  .flow-toolbar { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-toolbar label:last-child { max-width: 160px; }
  .flow-heading { flex-direction: column; align-items: start; gap: 15px; }
  .flow-heading h2 { font-size: 25px; line-height: 1.3; }
  .flow-actors { grid-template-columns: 1fr; gap: 14px; }
  .flow-actors article { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 18px; }
  .flow-actors article + article::before { content: '↓'; top: -14px; left: 50%; height: 14px; }
  .actor-heading { grid-column: 1 / -1; margin-bottom: 14px; }
  .actor-heading svg { width: 22px; height: 22px; flex-basis: 22px; }
  .flow-actors h3 { grid-column: 1; font-size: 18px; line-height: 1.3; }
  .flow-actors p { grid-column: 1; margin-bottom: 0; min-height: 0; font-size: 11px; }
  .actor-foot { grid-row: 2 / 4; grid-column: 2; border-top: 0; border-left: 1px solid #495038; padding: 0 0 0 12px; margin: 0; gap: 10px; align-self: stretch; }
  .actor-foot > span { font-size: 9px; }
  .actor-foot > strong { font-size: 28px; }
  .flow-current { gap: 15px; flex-direction: column-reverse; min-height: 244px; padding-left: 15px; }
  .flow-current h3 { font-size: 23px; }
  .flow-current p { font-size: 13px; }
  .flow-timeline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow-timeline button { grid-template-columns: 1fr; padding: 13px 10px; gap: 8px; }
  .flow-timeline button > span { grid-row: auto; }
  .flow-controls > div { gap: 6px; }
  .flow-controls button { font-size: 11px; padding: 8px 9px; }
  .flow-controls .play-control { min-width: 100px; }
  .flow-notes { grid-template-columns: 1fr; gap: 40px; }
}
@media(max-width: 390px) {
  .exchange-topline { font-size: 7px; }
  .exchange-board { grid-template-columns: minmax(0, 1.1fr) 19px minmax(0, .9fr); }
  .demo-entry strong { font-size: 9px; }
  .demo-entry small { font-size: 7px; }
  .demo-entry-icon { flex-basis: 18px; height: 21px; font-size: 10px; }
  .demo-vault-title strong { font-size: 16px; }
  .demo-vault-title > span { font-size: 7px; }
  .demo-entry-tail, .demo-lock { display: none; }
  .demo-window > span:last-child { display: none; }
  .demo-device-screen > strong { font-size: 12px; }
  .demo-identity dd { font-size: 7px; }
  .demo-screen-tag { font-size: 6px; }
  .demo-storage-locks { display: none; }
  .demo-toolbar { gap: 8px; }
  .demo-toolbar button { font-size: 9px; padding-inline: 7px; }
  .flow-explorer { padding: 15px; }
  .flow-actors article { padding: 14px; gap: 0 9px; grid-template-columns: 1fr .9fr; }
  .flow-actors h3 { font-size: 16px; }
  .actor-foot { padding-left: 9px; gap: 8px; }
  .actor-foot > span { font-size: 8px; }
  .flow-timeline { grid-template-columns: 1fr; }
  .flow-timeline button { grid-template-columns: 23px 1fr; gap: 5px 10px; }
  .flow-timeline button > span { grid-row: 1 / 3; }
}
@media(prefers-reduced-motion: reduce) {
  .usb-packet { display: none; }
  [data-demo-phase="request"] .demo-cursor { opacity: 1; }
}
