/* One tabletop, one pocket and a balance card shared with the live wallet. */
.site-header { transition: background-color .24s, color .24s; }
.over-counter { color: #f5f3e9; background: #101914; }
:where(.over-counter) .main-nav a { color: #c5cac1; }
:where(.over-counter) .main-nav a[aria-current], :where(.over-counter) .main-nav a:hover { color: #fffbed; }
.over-counter .header-contact, .hero-action { color: #22271f; background: #f5f3e7; }
.over-counter .header-contact:hover, .hero-action:hover { background: #fff; }
.over-counter .reading-track { background: #424a3c; }

.opening {
  --scene-height: calc(100svh - var(--header));
  --wallet-size: min(43vw, 62svh, 565px);
  --wallet-y: 55%;
  --card-base: #16443b;
  --card-light: #386658;
  position: relative;
  background: #dfdfd2;
}
.opening[data-palette="clay"] { --card-base: #6a2c23; --card-light: #994d37; }
.opening[data-palette="indigo"] { --card-base: #313664; --card-light: #555e94; }
.opening-stage { position: relative; isolation: isolate; overflow-x: clip; }
.demo-target { position: absolute; left: 0; top: 0; width: 1px; height: 1px; scroll-margin-top: var(--header); }
.opening > .demo-target { top: calc(100% - var(--scene-height)); }
.demo-target:focus-visible { outline: 0; }
.chapter { position: relative; }
.intro { min-height: 550px; height: var(--scene-height); isolation: isolate; color: #f6f1e4; }
.counter-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: #15211b; }
.counter-scene picture { display: block; width: 100%; height: 100%; }
.counter-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; transform: scale(var(--room-scale,1.018)) translate3d(var(--room-x,0px),var(--room-y,0px),0); }
.counter-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#09120d52,transparent 36%, transparent 62%,#0c150ecf 100%); }
.hero-heading { position: absolute; z-index: 1; top: clamp(25px, 3.5svh, 48px); left: 0; margin: 0 auto; width: 100%; text-align: center; }
.hero-heading .eyebrow { justify-content: center; margin-bottom: 15px; color: #eeeedd; }
.hero-heading .eyebrow-rule { background: #b3b7a6; }
.hero-heading h1 { font-size: clamp(95px, min(16vw,26svh), 285px); font-weight: 550; line-height: .88; letter-spacing: -.069em; margin: 0; padding-right: .06em; }
.artwork { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.counter-layer { position: absolute; inset: 0; }
.back-layer { z-index: 1; }.front-layer { z-index: 3; }
.wallet-anchor { position: absolute; left: 50%; top: var(--wallet-y); width: 0; height: 0; }
.wallet-part {
  position: absolute; left: 50%; top: var(--wallet-y); width: var(--wallet-size); height: auto; user-select: none;
  transform: translate(-50%,-50%) translate3d(var(--rig-x,0px),var(--rig-y,0px),0) perspective(1100px) rotateZ(var(--rig-roll,3deg)) rotateY(var(--rig-yaw,0deg)) rotateX(var(--rig-pitch,0deg)) scale(var(--rig-scale,1));
  filter: brightness(.94) saturate(.90);
}
.wallet-back { z-index: 1; }
.wallet-front { z-index: 3; }
.wallet-front, .pocket-lip {
  clip-path: polygon(0 0, 4.4% 0, 4.4% 29.8%, 6.5% 31.8%, 10.2% 32.65%, 16% 31.8%, 29% 30.1%, 41% 28.5%, 54% 26.3%, 69% 23.1%, 79% 20.6%, 82% 20.1%, 84% 20.5%, 86% 21.8%, 86% 0, 100% 0, 100% 100%, 0 100%);
}
.ground-shadow { position: absolute; left: 50%; top: calc(var(--wallet-y) + var(--wallet-size) * .372); width: calc(var(--wallet-size) * .81); height: calc(var(--wallet-size) * .12); border-radius: 50%; opacity: var(--ground-opacity,.98); background: radial-gradient(ellipse closest-side,#020501f5 14%,#080d07aa 48%,transparent 100%); filter: blur(2px); transform: translate(-46%,-50%) rotate(-5deg); }
.ground-shadow::before { content: ""; position: absolute; left: 27%; top: 2%; width: 119%; height: 134%; border-radius: 50%; background: radial-gradient(ellipse closest-side,#080e07b5,transparent 100%); filter: blur(8px); }
.flight-plane { position: absolute; z-index: 2; left: 0; top: 0; transform-origin: center; pointer-events: none; }
.flight-plane:empty { display: none; }
.wallet-loading .flight-plane, .wallet-loading .ground-shadow { visibility: hidden; }
.moving .opening-stage > .artwork { height: var(--art-height); bottom: auto; z-index: 3; }
.moving:not(.cinematic) .counter-layer { overflow: hidden; }
.hero-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(25px,4.25svh,57px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 26px; }
.hero-pitch { max-width: 335px; }
.hero-pitch .hero-statement { color: #fff9eb; font-weight: 560; font-size: clamp(20px,1.85vw,30px); line-height: 1.15; letter-spacing: -.043em; margin-bottom: 8px; }
.hero-pitch p:last-child { color: #d6dacc; font-size: clamp(14px,1.14vw,18px); line-height: 1.38; letter-spacing: -.015em; }
.hero-bottom .hero-action { justify-self: end; align-self: end; margin-bottom: 2px; }
.lift-cue { color: #e5e7d8; font-size: 11px; gap: 8px; white-space: nowrap; }
.lift-cue .round-icon { border-color: #8d9585; }.lift-cue:hover .round-icon { background: #505a4d; }

/* The final position of the flying card is measured from the empty slot. */
.demo { --pinned-top: 45px; --pinned-bottom: 76px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); align-items: center; align-content: center; gap: 6%; padding-block: var(--pinned-top) var(--pinned-bottom); }
.demo h2 { margin: 20px 0 19px -.043em; font-weight: 520; font-size: clamp(54px,6.9vw,118px); line-height: .94; letter-spacing: -.061em; }
.demo .lead { max-width: 390px; }
.demo-device { width: min(100%,398px); }
.balance-slot { height: clamp(139px,10.9vw,164px); width: 100%; }
.balance-card { position: relative; width: 100%; height: 100%; padding: 17px 20px; overflow: hidden; isolation: isolate; border-radius: 13px; color: #faf7e8; background: linear-gradient(118deg,var(--card-light),var(--card-base) 72%); box-shadow: inset 0 0 0 1px #ffffff22; }
.card-issuer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.card-issuer span { font-weight: 660; font-size: 14px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-issuer .icon { width: 18px; height: 18px; opacity: .9; }
.balance-card .balance-label { display: block; font-size: 11px; color: #eaedde; }
.balance-card strong { display: block; font-size: clamp(37px,3.8vw,54px); font-weight: 530; line-height: 1.02; letter-spacing: -.067em; margin-top: 2px; white-space: nowrap; }
.balance-waves { position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(ellipse at 108% 185%,transparent 0 6px,#dbe9ce99 6.7px 7.3px,transparent 8px 12px); mask-image: linear-gradient(100deg,transparent 28%,#000 93%); opacity: .45; }
.wallet-disclaimer { margin: 6px 2px 0; font: 10px/1.4 var(--mono); color: #62665a; }
.demo-points { margin: 3px 2px 5px; color: #386343; font-size: 12px; font-weight: 590; }
.enhanced .brand-settings.js-only { display: flex !important; align-items: end; gap: 17px; margin-top: 26px; flex-wrap: wrap; }
.brand-field { display: grid; gap: 6px; width: min(220px,100%); }
.brand-field > span, .palettes legend { font: 11px/1.4 var(--mono); color: #4f594a; }
.brand-field input { width: 100%; height: 41px; border: 1px solid #b3baaa; border-radius: 7px; padding: 8px 11px; color: #20251c; background: #f6f6ec; font-size: 15px; }
.brand-field input::placeholder { color: #6b7163; }
.palettes { padding: 0; border: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.palettes legend { margin-bottom: 5px; }
.swatch { display: inline-grid; position: relative; place-items: center; width: 33px; height: 41px; cursor: pointer; }
.swatch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.swatch i { width: 24px; height: 24px; border-radius: 50%; background: var(--swatch); border: 3px solid transparent; background-clip: padding-box; }
.swatch input:checked + i { outline: 1px solid #414a3b; }
.swatch input:focus-visible + i { outline: 2px solid #1777a1; outline-offset: 3px; }
.swatch.forest { --swatch: #225246; }.swatch.clay { --swatch: #8a4233; }.swatch.indigo { --swatch: #484f83; }

.cinematic .opening { height: calc(var(--scene-height) + clamp(480px,84svh,820px)); margin-bottom: calc(-1 * var(--demo-tail,0px)); isolation: isolate; }
.cinematic .opening ~ .industries { position: relative; }
.cinematic .demo .scene-foot { bottom: var(--demo-tail,0px); }
.cinematic .opening-stage { position: sticky; top: var(--header); height: var(--scene-height); overflow: clip; background: #dfdfd2; }
.cinematic .chapter { position: absolute; inset: 0; height: 100%; min-height: 0; }
.cinematic .intro { z-index: 1; pointer-events: none; isolation: auto; }
.cinematic .intro a { pointer-events: auto; }
.cinematic .counter-scene { z-index: 0; }
.cinematic .counter-layer { clip-path: polygon(0 0,100% 0,100% var(--edge-r,100%),0 var(--edge-l,100%)); }
.cinematic .hero-heading, .cinematic .hero-bottom { opacity: var(--intro-opacity,1); }
.cinematic .hero-heading { transform: translateY(var(--title-y,0px)); }
.cinematic .demo { max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1720px) / 2 + var(--gutter))); z-index: 2; pointer-events: none; background: #dfdfd2; clip-path: polygon(0 var(--edge-l,100%),100% var(--edge-r,100%),100% 100%,0 100%); }
.cinematic .demo-copy { transform: translateY(var(--copy-y,12px)); }
.cinematic .artwork { z-index: 3; }
.cinematic .demo-active .demo { pointer-events: auto; }
.cinematic .demo-active .intro a { pointer-events: none; }

@media (min-width: 700px) and (max-width: 1000px) {
  .hero-bottom { gap: 14px; }.hero-pitch { max-width: 235px; }
  .lift-cue { flex-direction: column; align-items: center; white-space: normal; max-width: 145px; text-align: center; }
  .demo { gap: 5%; }.enhanced .brand-settings.js-only { gap: 8px 12px; }.brand-field { width: 168px; }
}
@media (max-width: 699px) {
  .over-counter .menu-toggle i { background: #f6f5e8; }
  .enhanced .over-counter .menu-toggle.js-only { border-color: #747e6c; }
  :where(.over-counter) .main-nav a, :where(.over-counter) .main-nav a[aria-current], :where(.over-counter) .main-nav a:hover { color: var(--ink); }
  .opening { --wallet-size: min(89vw,48svh,434px); --wallet-y: 47%; }
  .intro { min-height: 530px; }
  .counter-scene img { object-position: 50% 50%; }
  .hero-heading { top: clamp(23px,4.6svh,44px); }
  .hero-heading h1 { font-size: clamp(61px,21.3vw,148px); }
  .hero-heading .eyebrow { margin-bottom: 15px; }
  .hero-bottom { grid-template-columns: 1fr auto; align-items: end; gap: 14px 12px; bottom: clamp(24px,4svh,39px); }
  .hero-pitch { grid-column: 1 / -1; max-width: 390px; }
  .hero-pitch .hero-statement { font-size: 21px; margin-bottom: 4px; }
  .hero-pitch p:last-child { max-width: 350px; font-size: 14px; line-height: 1.4; }
  .hero-action { grid-column: 1; grid-row: 2; }
  .hero-bottom .hero-action { justify-self: start; padding: 12px 18px; min-height: 42px; font-size: 13px; gap: 18px; }
  .lift-cue { grid-column: 2; grid-row: 2; align-self: center; }
  .lift-cue > span:last-child { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .lift-cue .round-icon { width: 38px; height: 38px; }
  .demo { --pinned-top: 12px; --pinned-bottom: 51px; grid-template-columns: minmax(0,1fr); gap: 18px; padding-block: 22px 0; }
  .demo h2 { font-size: clamp(40px,9.3vw,62px); margin: 10px 0; line-height: .98; }
  .demo h2 br { display: none; }
  .demo .lead { font-size: 14px; line-height: 1.38; max-width: 450px; }
  .enhanced .brand-settings.js-only { gap: 10px; margin-top: 13px; flex-wrap: nowrap; }
  .brand-field { width: min(54%,235px); }.brand-field input { font-size: 16px; height: 36px; }
  .swatch { width: 30px; height: 36px; }
  .balance-slot { height: 138px; }
  .demo-device { width: min(100%,375px); }
  .cinematic .demo { align-content: center; padding-block: var(--pinned-top) var(--pinned-bottom); }
  .cinematic .demo .scene-foot { position: absolute; left: var(--gutter); right: var(--gutter); width: auto; height: 42px; }
}
@media (max-height: 719px) and (max-width: 699px) {
  .opening { --wallet-size: min(77vw,42svh,305px); --wallet-y: 42%; }
  .hero-heading { top: 19px; }.hero-heading .eyebrow { margin-bottom: 10px; }
  .hero-heading h1 { font-size: min(19vw,82px); }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-front { display: none; }
}
@media (max-width: 350px) {
  .header-inner { gap: 5px; }.header-inner .brand span { font-size: 23px; }.header-inner .brand img { width: 23px; }
  .header-actions { gap: 6px; }.header-contact { white-space: nowrap; }
}
