@import url("./betterme/upstream-ats.css");

:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  color: #f3f6fc;
  background: #070b14;
  font-size: 16px;
  --muted: #b4c2d9;
  --accent: #9dbbfd;
  --edge: rgba(163, 189, 237, .22);
  --gutter: clamp(24px, 4.5vw, 86px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #85aafb; outline-offset: 3px; }
a { color: inherit; }
h1,h2,h3,p,ol { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#app { min-height: 100vh; min-height: 100dvh; isolation: isolate; position: relative; display: grid; grid-template-rows: auto 1fr auto; overflow: clip; }
.space-backdrop, .cinematic { position: absolute; inset: 0; pointer-events: none; }
.space-backdrop {
  z-index: -2;
  background: radial-gradient(ellipse at 68% 47%, #192842 0, #0c1425 43%, #070b15 78%);
}
.space-backdrop::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #070b16 12%, #070b1699 43%, #070b1633 70%), var(--galaxy) center / cover no-repeat;
  opacity: .24;
  transition: opacity .55s;
}
[data-view="intro"] .space-backdrop::before, [data-view="perspectives"] .space-backdrop::before, [data-view="ending"] .space-backdrop::before {
  opacity: 1;
  background: linear-gradient(0deg, #080c16 0, transparent 21%),
    linear-gradient(90deg, #080c16 0, #080c1699 35%, transparent 71%), var(--galaxy) center / cover no-repeat;
}
[data-motion="static"] .space-backdrop::before { transition: none; }
.top, .bottom { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; padding-inline: var(--gutter); }
.top { min-height: 79px; gap: 24px; border-bottom: 1px solid #a2bbec16; background: #090f1ba6; }
.brand { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.brand-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 14px; color: #b3caff; background: #172342; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .015em; }
.brand strong span, .hero-name span, .contact-name span { color: #8fa9d5; margin-inline: .14em; font-weight: 400; }
.brand small { color: #a7b7ce; margin-top: 3px; font-size: 13px; }
.top-actions, .bottom-actions, .utility, .navigation { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.quiet, .primary {
  border: 1px solid transparent; border-radius: 10px; color: #c7d5eb; display: inline-flex;
  min-height: 40px; padding: 8px 11px; align-items: center; justify-content: center; gap: 7px; background: transparent; font-size: 14px;
  white-space: nowrap;
}
.quiet svg { flex: none; }
.quiet:disabled { opacity: .35; }
.quiet:not(:disabled):hover, .quiet[aria-expanded="true"] { border-color: var(--edge); background: #8da8e21a; color: #fff; }
.button-fullscreen, .button-prev { border-color: var(--edge); background: #a8bfed0b; }
.primary { color: #101a31; background: #dce7ff; border-color: #eef4ff; font-weight: 750; padding-inline: 18px; min-width: 105px; }
.primary:hover { background: #fff; }
.button-prev { padding-inline: 11px; }
.button-prev span, .utility .quiet span { display: none; }
.utility { padding-right: 10px; margin-right: 2px; border-right: 1px solid var(--edge); gap: 2px; }
.utility .quiet { width: 34px; padding-inline: 0; }
.bottom { min-height: 76px; gap: 28px; border-top: 1px solid #a2bbec21; background: #090f1bd9; }
.chapters { display: grid; min-width: 0; grid-template-columns: repeat(8,minmax(64px,1fr)); gap: clamp(7px, 1.2vw, 21px); width: min(100%, 1000px); overflow: auto; scrollbar-width: thin; }
.chapters button { min-width: 0; color: #a7b6cc; background: transparent; border: 0; border-radius: 5px; padding: 7px 0; text-align: left; font-size: 13px; white-space: nowrap; }
.chapters i { display: block; height: 2px; background: #41506a; border-radius: 4px; margin-bottom: 8px; }
.chapters .past i { background: #768cb6; }
.chapters [aria-current] { color: #eff5ff; font-weight: 700; }
.chapters [aria-current] i { background: #aac6fd; box-shadow: 0 0 12px #91bbff75; }
.chapters button:hover { color: #fff; }
.hide-controls .is-control { visibility: hidden; }
.restore-controls { position: absolute; right: 18px; bottom: 15px; border: 1px solid var(--edge); background: #10203bd7; color: #b4c7ed; border-radius: 10px; padding: 8px; z-index: 3; }
.control-menu { position: absolute; z-index: 6; right: var(--gutter); top: 71px; width: min(335px, 89vw); border: 1px solid #394b6b; background: #111c31; box-shadow: 0 24px 45px #0008; padding: 17px; border-radius: 17px; }
.control-menu h2 { margin-bottom: 8px; font-size: 18px; }
.control-menu fieldset { padding: 10px; border: 1px solid var(--edge); border-radius: 8px; }
.control-menu legend { padding: 0 5px; color: var(--muted); font-size: 14px; }
.control-menu label { display: flex; gap: 7px; padding: 5px 3px; }
.control-menu input { accent-color: #a5bffd; }
.menu-list { display: grid; gap: 3px; }
.menu-list button { display: flex; justify-content: space-between; padding: 8px 10px; color: #e3ecff; background: #192842; border: 1px solid transparent; border-radius: 7px; }
.menu-list button:hover { background: #263859; }
.menu-list small, .shortcuts { color: var(--muted); }
.shortcuts { margin-top: 12px; display: grid; gap: 3px; font-size: 13px; }

#stage { z-index: 0; min-width: 0; display: grid; align-items: center; padding-block: clamp(20px, 3.2vh, 44px); }
#stage:focus { outline: none; }
.content { width: min(calc(100% - 2 * var(--gutter)), 1570px); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 1.15vw, 19px); color: #b5cbf6; font-weight: 640; letter-spacing: .13em; line-height: 1.35; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #adcbff; box-shadow: 0 0 14px #a5c4ff94; }
.hero { width: min(calc(100% - 2 * var(--gutter)), 1480px); padding-inline: min(2vw, 30px); }
.hero-copy { max-width: min(73%, 960px); }
.hero-name { color: #dee8f9; font-size: clamp(23px, 2.3vw, 37px); margin-top: clamp(24px, 4.6vh, 56px); font-weight: 560; }
.hero h1 { font-size: clamp(53px, 7.05vw, 128px); line-height: 1.11; letter-spacing: -.072em; margin-top: 14px; font-weight: 790; text-wrap: balance; }
.hero-line { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.5; color: #d7e3f5; margin-top: 24px; }
.hero-question { color: #c4d1e8; font-size: clamp(17px, 1.65vw, 26px); padding-left: 16px; border-left: 2px solid #829cc4; margin-top: clamp(25px, 5.2vh, 58px); line-height: 1.55; }
.departure .hero-name { font-size: clamp(18px, 1.6vw, 28px); }
.departure h1 { font-size: clamp(46px, 6.1vw, 106px); }
.section-head h1 { font-size: clamp(36px, 4vw, 74px); line-height: 1.17; letter-spacing: -.055em; font-weight: 755; margin-top: .2em; text-wrap: balance; }
.section-head p { margin-top: .48em; color: #d1def2; font-size: clamp(18px, 1.8vw, 32px); line-height: 1.42; }
.perspectives .hero-copy { max-width: min(81%, 890px); }
.perspectives h1 { font-size: clamp(42px, 5.1vw, 91px); margin-top: 16px; }
.perspective-list { display: grid; gap: 11px; margin-top: 27px; }
.perspective-list > div { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 13px; background: #172239d6; border: 1px solid var(--edge); border-radius: 13px; padding: 16px 19px; }
.perspective-list strong { color: #b5cbff; font-size: clamp(18px, 1.6vw, 28px); }
.perspective-list p { font-size: clamp(18px, 1.8vw, 32px); color: #e7effd; line-height: 1.38; }
.aside-joke { margin-top: 16px; color: #b3c2d8; font-size: 16px; animation: aside 6.5s .6s both; }
@keyframes aside { 0%,100% { opacity: 0; } 12%,75% { opacity: 1; } }

.journey-split { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; min-height: min(53vh, 610px); gap: 25px; }
.coordinates { margin-top: clamp(14px, 3vh, 29px); color: #9cafe0; font-weight: 660; font-size: clamp(13px, 1.05vw, 18px); letter-spacing: .21em; }
.location-name { display: flex; gap: 9px; align-items: center; color: #dee8fb; margin-top: 8px; font-size: clamp(18px, 2vw, 32px); }
.location-name svg { color: #a9c6fc; }
.location-name span { border-left: 1px solid var(--edge); padding-left: 11px; color: #aabedc; font-size: .78em; }
.journey h1 { font-size: clamp(43px, 5vw, 88px); line-height: 1.14; letter-spacing: -.06em; margin-top: 12px; text-wrap: balance; }
.journey-copy > p { color: #c4d2e6; margin-top: 16px; font-size: clamp(20px, 1.9vw, 33px); }
.globe-visual { text-align: center; position: relative; display: grid; justify-items: center; align-items: center; min-width: 0; padding: min(2vh, 17px) 0; }
.earth-disc { width: min(33vw, 45vh, 520px); aspect-ratio: 1; position: relative; border-radius: 50%; background: radial-gradient(circle at 30% 23%, #2c4863, #13263d 57%, #101c32 83%); box-shadow: 0 0 1px 1px #87b6e7, 0 0 18px 4px #5b95d04b, 0 0 70px 11px #5790dc2e; }
.globe-canvas { position: absolute; display: block; border-radius: 50%; width: 100%; height: 100%; }
.earth-orbit { position: absolute; width: min(43vw, 57vh, 680px); aspect-ratio: 2.2; border: 1px solid #8db5e744; border-radius: 50%; transform: rotate(-24deg); }
.geo-marker { position: absolute; opacity: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.geo-marker b { width: 9px; height: 9px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #a0c7ff65, 0 0 17px 6px #a0c7ffba; }
.geo-marker span { position: absolute; left: 14px; top: -7px; padding: 3px 7px; background: #0b182cdb; border: 1px solid #9abbe6a0; border-radius: 5px; white-space: nowrap; font-size: 14px; }
.atlas-canvas { position: absolute; right: 0; bottom: 0; width: min(38%, 245px); display: block; border-radius: 7px; border: 1px solid #9eb9df4a; background: #182a45; }
[data-motion="static"] .journey .earth-disc, [data-motion="static"] .journey .earth-orbit { display: none; }
[data-motion="static"] .journey .atlas-canvas { position: static; width: 100%; }
.journey-nodes { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--edge); background: #101c2fd9; border-radius: 16px; padding: 12px 15px; margin-top: 18px; }
.journey-node { position: relative; display: grid; text-align: left; gap: 3px; background: transparent; color: #aabbd4; padding: 10px 13px 10px 26px; border: 1px solid transparent; border-radius: 9px; }
.journey-node i { position: absolute; top: 17px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: #7287a8; }
.journey-node span { font-size: 14px; font-variant-numeric: tabular-nums; }
.journey-node strong { color: #c9d8ef; font-size: clamp(16px, 1.5vw, 24px); }
.journey-node small { color: #b4c3d7; font-size: 13px; }
.journey-node.visited { opacity: .72; }
.journey-node[aria-current], .journey-node:hover { background: #263b5d; border-color: #85a9df59; }
.journey-node[aria-current] strong, .journey-node[aria-current] span { color: #f0f6ff; }
.journey-node[aria-current] i { background: #c0d7ff; box-shadow: 0 0 12px #bed7ff; }

.project-content { width: min(calc(100% - 2 * var(--gutter)), 1450px); }
.project-content .section-head { margin-bottom: clamp(13px, 2.35vh, 29px); }
.project-content .section-head h1 { font-size: clamp(33px, 3.5vw, 62px); }
.mac-window { color-scheme: light; color: #243750; border: 1px solid #aec5e380; border-radius: 17px; overflow: hidden; background: #f4f7fc; box-shadow: 0 20px 65px #03081761; }
.window-bar { background: #eaf0f8; border-bottom: 1px solid #d7e1ed; min-height: 44px; padding: 8px 15px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; font-weight: 700; text-align: center; font-size: 14px; }
.window-bar small { justify-self: end; color: #526884; font-size: 13px; font-weight: 600; }
.traffic { display: flex; align-items: center; gap: 6px; }
.traffic i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #e88c88; }
.traffic i:nth-child(2) { background: #e4bd75; }
.traffic i:nth-child(3) { background: #83bfa5; }
.research-board { padding: clamp(12px, 2vh, 25px) clamp(15px, 2.7vw, 45px) 11px; }
.robot-grid { display: grid; gap: clamp(8px, 1.45vw, 24px); grid-template-columns: repeat(4,1fr); }
.robot-card { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 8px 8px 10px; background: #fff; border: 1px solid #dce5f1; border-radius: 13px; }
.robot-card > strong, .apply-robot > strong { color: #263a57; font-size: clamp(16px, 1.45vw, 24px); line-height: 1.3; white-space: nowrap; }
.robot-card > .robot { width: clamp(65px, 11vh, 120px); height: auto; }
.tone-blue { --robot-ink: #5777bc; --robot-shell: #dceafe; --robot-face: #f5f9ff; }
.tone-violet { --robot-ink: #846fba; --robot-shell: #eee4fa; --robot-face: #fcf6ff; }
.tone-teal { --robot-ink: #418c84; --robot-shell: #d8efe9; --robot-face: #f2fff8; }
.tone-sand { --robot-ink: #ab7250; --robot-shell: #f7e6d5; --robot-face: #fff8ed; }
.tone-new { --robot-ink: #596d9c; --robot-shell: #e2e9f7; --robot-face: #f3f6ff; }
.robot { color: var(--robot-ink); overflow: visible; }
.robot-body { fill: var(--robot-shell); stroke: currentColor; stroke-width: 3.3; }
.robot-face { fill: var(--robot-face); }
.robot-floor { fill: currentColor; opacity: .15; }
.moves { display: flex; justify-content: center; gap: 5px; }
.moves span { display: grid; width: clamp(24px, 2.6vw, 42px); height: clamp(26px, 2.7vw, 42px); place-items: center; background: var(--robot-shell, #e5ebf6); color: #2d405d; border-radius: 6px; font-size: clamp(14px, 1.25vw, 19px); font-weight: 750; animation: rise .35s calc(.2s + var(--i) * .12s) both; }
.learner { display: grid; gap: 2px; justify-items: center; padding: 2px 9px 0; }
.learner > span { color: var(--robot-ink); animation: rise .42s .66s both; }
.learner b { padding: 4px 8px; background: var(--robot-shell); border-radius: 6px; font-size: 14px; animation: rise .42s .83s both; }
.learner small { color: #4b607a; font-size: 13px; }
.fingerprint { display: flex; align-items: end; justify-content: center; gap: 4px; min-width: 0; width: min(78%, 155px); height: 35px; }
.fingerprint i { background: var(--robot-ink); width: 10%; height: var(--bar); border-radius: 4px 4px 1px 1px; transform-origin: bottom; animation: bars .52s calc(var(--i) * .055s + .16s) both; }
@keyframes bars { from { transform: scaleY(.12); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
.board-caption { min-height: 28px; margin-top: 8px; text-align: center; color: #3d5470; font-weight: 650; font-size: clamp(14px, 1.25vw, 20px); line-height: 1.45; }
.compare-board, .apply-board { display: grid; gap: 16px; grid-template-columns: minmax(127px, .29fr) 1fr; }
.fingerprint-list { display: grid; gap: 5px; }
.fingerprint-list > div { display: flex; gap: 5px; align-items: center; justify-content: center; padding: 2px 7px; background: #fff; border: 1px solid #dfe7f2; border-radius: 9px; }
.fingerprint-list .fingerprint { height: 21px; }
.strategy-space { position: relative; min-height: clamp(158px, 25vh, 292px); border: 1px solid #d4deea; border-radius: 13px; overflow: hidden; background: linear-gradient(#dce5f0 1px, transparent 1px), linear-gradient(90deg, #dce5f0 1px, transparent 1px), #fafcff; background-size: 23px 23px; }
.strategy-space > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.strategy-space path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.space-near { stroke: #5277bc; }
.space-far { stroke: #9a81a6; stroke-dasharray: 4 5; }
.space-zone { fill: #c5d8f4; opacity: .72; animation: group-in .65s .18s both; transform-box: fill-box; transform-origin: center; }
.zone-b { fill: #e1d4f4; }
.zone-c { fill: #f2dfcf; }
.space-infer { stroke: #657aa9; stroke-dasharray: 5 4; animation: revise 1.7s .3s both; }
.space-alternative { stroke: #657aa9; stroke-dasharray: 4 6; opacity: .32; animation: reject-distance 1.7s .3s both; }
.strategy-space .space-infer { stroke-width: 2; }
@keyframes group-in { from { opacity: 0; scale: 1.18; } }
@keyframes revise { from { opacity: .18; stroke-dashoffset: 18; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes reject-distance { from { opacity: .76; } }
.strategy-point { position: absolute; margin: -6px 0 0 -6px; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.strategy-point.gather { animation: gather .85s calc(var(--i) * .07s) both; }
@keyframes gather { from { left: var(--from-x); top: var(--from-y); } }
.strategy-point i { display: block; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--robot-ink, #293d68); box-shadow: 0 0 0 1px var(--robot-ink, #293d68); }
.strategy-point small, .space-caption, .uncertain { font-size: clamp(12px, 1vw, 16px); color: #334969; font-weight: 650; }
.space-caption { position: absolute; right: 10px; bottom: 7px; }
.uncertain { position: absolute; top: 10px; right: 10px; border: 1px solid #d4deed; background: #f6f8fc; border-radius: 6px; padding: 5px 7px; }
.apply-robot { display: grid; justify-items: center; align-content: center; gap: 5px; border-radius: 13px; background: #fff; border: 1px solid #dfe7f2; padding: 7px; }
.apply-robot .robot { width: min(84px, 11vh); height: auto; }
.apply-robot > small { color: #4b607a; font-size: 13px; }
.research-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: clamp(10px, 2vh, 22px); flex-wrap: wrap; min-height: 35px; }
.steps, .wrap-sequence, .factory-steps { list-style: none; padding: 0; display: flex; align-items: center; }
.steps { gap: clamp(12px, 2vw, 30px); }
.steps li { display: flex; align-items: center; gap: 6px; color: #aebdd4; font-size: clamp(14px, 1.25vw, 20px); white-space: nowrap; }
.steps i { display: block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid #8fa8c9; }
.steps .complete i { background: #819bc0; }
.steps [aria-current] { color: #f4f8ff; font-weight: 750; }
.steps [aria-current] i { background: #c3d6ff; box-shadow: 0 0 9px #b5cfff; }
.research-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.research-tags span { font-size: 13px; border: 1px solid var(--edge); color: #c2d0e7; border-radius: 6px; padding: 4px 7px; }
.rise { animation: rise .52s calc(var(--i, 0) * .11s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dispatch-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: center; padding: 11px clamp(12px, 2vw, 26px); }
.factory { width: 100%; height: min(31vh, 315px); }
.factory text { fill: #415877; font: 15px system-ui, sans-serif; }
.factory-cues { display: grid; gap: 12px; }
.factory-cues div { display: flex; gap: 9px; align-items: center; padding: 8px 11px; background: #fff; border: 1px solid #dce6f3; border-radius: 9px; font-size: clamp(16px, 1.55vw, 24px); font-weight: 650; }
.factory-cues i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #7294d2; }
.factory-steps { justify-content: space-between; gap: 8px; padding: 0 clamp(12px, 2vw, 26px) 13px; font-size: clamp(13px, 1.3vw, 20px); font-weight: 650; }
.factory-steps li { flex: 1; padding: 6px 0; border-top: 2px solid #96accb; animation: factory-step .45s calc(var(--i) * .53s) both; }
.cart-a { transform: translate(589px, 156px); animation: cart-a 3.5s both; }
.cart-b { transform: translate(332px, 232px); animation: cart-b 3.5s both; }
@keyframes cart-a { 0%,13% { transform: translate(95px, 156px); } 38%,53% { transform: translate(284px, 156px); } 90% { transform: translate(589px, 156px); } }
@keyframes cart-b { 0%,23% { transform: translate(332px, 58px); } 52%,100% { transform: translate(332px, 232px); } }
@keyframes factory-step { from { color: #53677f; border-color: #d6e0ec; } }

.better-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px,.28fr); gap: clamp(14px, 2.1vw, 33px); align-items: start; }
.better-window .window-bar { grid-template-columns: auto 1fr auto; text-align: left; }
.better-window .window-bar > span:nth-child(2) { margin-inline: 9px; white-space: nowrap; }
.demo-actions { display: flex; align-items: center; justify-content: end; gap: 5px; }
.demo-actions button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #b6c5da; background: #f9fbff; color: #273e62; padding: 5px 7px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.demo-actions button:hover { background: #dfeafb; }
.product-cues { display: grid; gap: clamp(13px, 2.1vh, 25px); padding: 7px 0; }
.product-cues div { padding-left: 13px; border-left: 1px solid #7393ca; }
.product-cues h2 { color: #b7ccf1; font-size: clamp(14px, 1.05vw, 18px); margin-bottom: 5px; }
.product-cues p { color: #e4edfb; font-size: clamp(16px, 1.35vw, 23px); line-height: 1.45; }
.product-cues a { justify-self: start; display: inline-flex; gap: 5px; align-items: center; text-underline-offset: 4px; color: #b9cdef; font-size: 14px; margin: 0 0 0 13px; }
.ats-host {
  --ui-surface: #fff; --ui-surface-soft: #eaf0fa; --ui-border: #d5e1ed; --ui-input: #f9fbff;
  --ui-text: #20334d; --ui-text-muted: #52677f; --ui-text-secondary: #405775; --ui-accent: #386b9e;
  --ui-warning: #995318; --ui-danger: #a13a3a; --bm-highlight-top: inset 0 1px 0 #fff; --bm-focus-ring: 0 0 0 2px #8bb8e6;
  padding: 12px;
  height: clamp(287px, 46vh, 530px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #889cb7 #e6edf7;
}
.ats-loading { margin: 25px; }
.ats-page-head { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.ats-page-head h2 { display: flex; align-items: center; gap: 7px; font-size: clamp(16px,1.22vw,22px); margin-right: auto; }
.ats-status, .ats-fiction { background: #dfece9; color: #315f5b; padding: 3px 6px; border-radius: 5px; white-space: nowrap; font-size: 13px; }
.ats-fiction { background: #e9eff7; color: #445d7b; }
.ats-empty { min-height: 140px; display: grid; place-items: center; place-content: center; text-align: center; gap: 11px; color: #436183; }
.ats-empty strong { font-size: 15px; }
.ats-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #a7bed8; padding: 5px 8px; background: #e7effb; color: #243e61; border-radius: 6px; font-size: 13px; font-weight: 750; }
.ats-button:hover { background: #dae8f9; }
.ats-primary { background: #365f98; border-color: #365f98; color: white; }
.ats-primary:hover { background: #284d82; }
.ats-ghost { background: transparent; border-color: transparent; }
.ats-host .bm-ats-tool { gap: 10px; }
.ats-host .bm-ats-tool-grid { gap: 10px; }
.ats-host .bm-ats-card { padding: 11px; gap: 8px; border-radius: 10px; }
.ats-host .bm-ats-field-head label { font-size: 14px; }
.ats-host .bm-ats-textarea { min-height: 78px; height: clamp(85px, 11.2vh, 135px); padding: 7px 8px; font-size: 13px; }
.ats-host .bm-ats-textarea.is-jd { min-height: 65px; height: clamp(65px, 8.8vh, 112px); }
.ats-host .bm-ats-score-hero { order: -3; gap: 9px; padding-bottom: 6px; }
.ats-host .bm-ats-ring-wrap { scale: .78; margin: -10px; }
.ats-host .bm-ats-score-hero p { color: #5a6c82; font-size: 13px; margin-top: 3px; }
.ats-host .bm-ats-kw-group { order: -2; gap: 4px; }
.ats-host .bm-ats-findings { order: -1; }
.ats-host .bm-ats-finding { gap: 5px; padding: 6px; }
.ats-host .bm-ats-finding svg { flex: none; width: 15px; }
.ats-host .bm-ats-finding p, .ats-host .bm-ats-kw-title, .ats-host .bm-ats-chip { font-size: 13px; }
.ats-host .bm-ats-chip[data-kind="missing"] { background: #f5e9dc; color: #783f16; }
.ats-host .bm-ats-chip[data-kind="matched"] { background: #dcedeb; color: #1e5a54; }
.demo-disclaimer { min-height: 32px; color: #385373; padding: 7px 11px; display: flex; gap: 7px; align-items: center; font-size: 13px; border-top: 1px solid #dbe3ee; }
.demo-disclaimer i { width: 6px; height: 6px; border-radius: 50%; background: #629188; }
.demo-disclaimer span { margin-left: auto; }
.compact-demo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.compact-fields, .compact-result { display: grid; align-content: start; justify-items: start; gap: 8px; min-width: 0; padding: 10px; background: #fff; border: 1px solid #d5e1ed; border-radius: 10px; color: #253b57; }
.compact-fields label { display: grid; width: 100%; gap: 4px; font-weight: 650; font-size: 14px; }
.compact-fields textarea { width: 100%; min-height: 73px; height: 10vh; font-size: 13px; line-height: 1.4; resize: vertical; color: #253b57; background: #f9fbff; border: 1px solid #cbd8e8; border-radius: 6px; padding: 6px; }
.compact-result h3 { font-size: 14px; color: #2e4b72; margin-bottom: 3px; }
.compact-result p { font-size: 14px; line-height: 1.35; }
.compact-score { color: #4c6482; }
.compact-score strong { color: #284d82; font-size: 25px; }
.compact-score span { font-size: 13px; }
.compact-tokens { display: flex; flex-wrap: wrap; gap: 3px; font-size: 13px; }
.compact-tokens span { display: block; padding: 2px 5px; border-radius: 4px; color: #225b58; background: #dcecea; overflow-wrap: anywhere; max-width: 100%; }
.compact-tokens.missing span { color: #784318; background: #f3e5d9; }

.synthesis { max-width: min(1120px, calc(100% - var(--gutter) * 2)); text-align: center; }
.synthesis .eyebrow { justify-content: center; }
.synthesis .section-head h1 { font-size: clamp(40px, 4.9vw, 81px); }
.wrap-icon { display: grid; place-items: center; margin: 0 auto 20px; width: 92px; height: 92px; border: 1px solid var(--edge); border-radius: 26px; background: #263856; box-shadow: 0 10px 38px #070a15a3; color: #b8ccff; }
.wrap-sequence { justify-content: center; flex-wrap: wrap; gap: 13px 23px; margin-top: 34px; }
.wrap-sequence li { position: relative; border: 1px solid var(--edge); padding: 9px 14px; border-radius: 9px; background: #1a2945; color: #dce7fb; font-size: clamp(16px, 1.5vw, 23px); }
.wrap-sequence li + li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 23px; height: 1px; background: #6780a4; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 29px); }
.skill-card { border: 1px solid #8daee547; border-radius: 19px; background: linear-gradient(142deg, #253655, #14233e 72%); padding: clamp(17px, 2.5vw, 38px); box-shadow: 0 18px 36px #030a1761; }
.skill-icon { display: grid; place-items: center; color: #bbd1ff; border: 1px solid #adc5ef47; background: #adc5ef17; width: 53px; height: 53px; border-radius: 14px; margin-bottom: 15px; }
.skill-card small { display: block; color: #bacdeb; font-size: 14px; }
.skill-card h2 { color: #f1f6ff; margin-top: 6px; font-size: clamp(23px, 2.4vw, 41px); line-height: 1.22; }
.skill-card p { margin-top: 13px; color: #c7d6ec; line-height: 1.51; font-size: clamp(17px, 1.5vw, 24px); }
.ending .hero-copy { max-width: min(88%, 975px); }
.ending h1 { font-size: clamp(35px, 4.1vw, 70px); margin-top: 15px; letter-spacing: -.055em; text-wrap: balance; }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; margin-top: clamp(20px, 4vh, 42px); width: fit-content; max-width: 100%; padding: clamp(15px, 2.15vw, 32px); border: 1px solid #90aee465; border-radius: 20px; background: linear-gradient(133deg, #223653f2, #121d32eb); box-shadow: 0 20px 40px #0a0d16a8; }
.contact-info { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 13px; min-width: 0; }
.contact-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--edge); border-radius: 13px; color: #b7d0ff; background: #3e578354; }
.contact-name { font-size: clamp(20px, 2.05vw, 35px); font-weight: 750; white-space: nowrap; }
.contact-info a { color: #d7e7ff; text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; font-size: clamp(17px, 1.75vw, 29px); }
.contact-info p { grid-column: 2; color: #c2d4ee; font-size: clamp(14px, 1.12vw, 19px); margin-top: 5px; }
.qr-box { display: grid; justify-items: center; gap: 4px; }
.qr-tile { display: grid; place-items: center; gap: 5px; place-content: center; width: clamp(86px, 9vw, 145px); aspect-ratio: 1; border-radius: 11px; color: #c1d1ec; background: #f4f7ff; border: 1px solid #9aafcd; }
.qr-tile img { width: 100%; height: 100%; object-fit: contain; padding: 7px; border-radius: inherit; }
.qr-placeholder { background: #93aeea11; border: 1px dashed #a8bde975; font-size: clamp(12px, 1vw, 16px); }
.qr-box small { color: #d6e4fa; }

#cinematic { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cinema-active .ending { animation: end-in .75s 3.05s both; }
.cinema-active .journey { animation: arrive-reveal .52s .47s both; }
@keyframes end-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrive-reveal { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.arrival { display: grid; place-items: center; background: #0a1222; overflow: hidden; animation: arrival-out 1.17s both; }
.cinema-galaxy { position: absolute; inset: 0; background: var(--galaxy) center / cover; transform-origin: 71% 62%; animation: galaxy-in 1.1s both; }
.cinema-galaxy i { position: absolute; top: 62%; left: 71%; width: 10px; height: 10px; background: #f0f7ff; border-radius: 50%; box-shadow: 0 0 0 8px #bcdaff55, 0 0 20px 13px #b3d6ff9a; animation: end-in .35s both; }
@keyframes galaxy-in { 0%,15% { scale: 1; } 100% { scale: 2.85; } }
@keyframes arrival-out { 0%,35% { opacity: 1; } 100% { opacity: 0; } }
.universe { display: grid; place-items: center; background: radial-gradient(ellipse at center,#172a47,#090f1b 69%); animation: cosmos 3.9s both; }
@keyframes cosmos { 0%,74% { opacity: 1; } 100% { opacity: 0; } }
.universe-route { grid-area: 1/1; width: min(56vw, 660px); text-align: center; font-size: clamp(16px, 1.6vw, 25px); color: #cfe2ff; animation: route-shrink 2s both; }
.universe-route .earth-disc { width: min(28vw, 36vh, 360px); }
.universe-route .earth-orbit { width: min(47vw, 48vh, 540px); }
.universe-route .atlas-canvas { width: min(38%, 245px); box-shadow: 0 0 46px #7da7ee40; }
[data-motion="static"] .universe-route .earth-disc, [data-motion="static"] .universe-route .earth-orbit { display: none; }
[data-motion="static"] .universe-route .atlas-canvas { position: static; width: 100%; }
@keyframes route-shrink { 0% { opacity: 0; transform: scale(1.1); } 20%,55% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.045); } }
.fingertip { position: relative; grid-area: 1/1; width: min(51vw, 520px); animation: hand-reveal 2.45s 1.36s both; }
.fingertip svg { display: block; width: 100%; filter: drop-shadow(0 0 7px #8ab2e645); }
.small-universe { position: absolute; top: 39%; left: 15%; width: clamp(24px, 4.3vw, 65px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 45% 44%, #fffeff 0, #b8ddff 18%, #4a6fa9 59%, #182b4a 100%); box-shadow: 0 0 18px 4px #9dc9ff96, 0 0 43px 10px #76a8fb54; }
@keyframes hand-reveal { 0% { opacity: 0; scale: .92; } 30%,63% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .6; } }

[data-motion="reduced"] *, [data-motion="static"] * { animation: none !important; transition: none !important; }
[data-motion] .aside-joke { animation: aside 6.5s .6s both !important; }
[data-skipped] .aside-joke { visibility: hidden; }
[data-motion]:not([data-motion="full"]) .arrival { animation: arrival-out .65s both !important; }
[data-motion]:not([data-motion="full"]) .universe { animation: cosmos 2.38s both !important; }
[data-motion]:not([data-motion="full"]) .universe-route { animation: still-shot 1.2s both !important; }
[data-motion]:not([data-motion="full"]) .fingertip { animation: still-shot 1.28s 1s both !important; }
@keyframes still-shot { 0%,100% { opacity: 0; } 17%,83% { opacity: 1; } }

@media (max-height: 820px) and (min-width: 711px) {
  #stage { padding-block: 17px; }
}

@media (max-width: 970px) {
  .top, .bottom { gap: 11px; }
  .top { min-height: 67px; }
  .bottom { min-height: 68px; }
  .top-actions, .navigation { gap: 3px; }
  .top-actions .quiet { padding-inline: 7px; }
  .top-actions .quiet span { display: none; }
  .hero-copy { max-width: 90%; }
  .better-layout { grid-template-columns: minmax(0,1fr) minmax(160px,.29fr); }
  .product-cues { gap: 12px; }
}
@media (max-width: 710px) {
  :root { --gutter: 16px; }
  .top { min-height: 61px; }
  .brand-icon { width: 35px; height: 35px; border-radius: 10px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 11px; }
  .top-actions .quiet { padding-inline: 4px; min-height: 34px; }
  .bottom { padding-block: 6px; gap: 4px; flex-wrap: wrap; }
  .chapters { width: 100%; }
  .bottom-actions { margin-left: auto; }
  .hero h1 { font-size: clamp(41px, 9.5vw, 73px); }
  .hero-name { font-size: 21px; }
  .hero-copy, .ending .hero-copy, .perspectives .hero-copy { max-width: 100%; }
  .perspective-list > div { grid-template-columns: 42px 1fr; padding: 10px; }
  .journey-split { grid-template-columns: 1fr; gap: 10px; }
  .journey h1 { font-size: clamp(34px, 8vw, 55px); }
  .earth-disc { width: min(52vw, 30vh); }
  .earth-orbit { width: 71%; }
  .journey-nodes { padding: 5px; margin-top: 7px; }
  .journey-node { padding: 8px 3px 8px 13px; }
  .journey-node i { left: 4px; width: 4px; height: 4px; top: 15px; }
  .journey-node span { font-size: 11px; }
  .journey-node small { display: none; }
  .strategy-point small { display: none; }
  .robot-grid { grid-template-columns: repeat(2,1fr); }
  .research-meta { gap: 6px; }
  .better-layout { grid-template-columns: 1fr; gap: 11px; }
  .better-window .window-bar { padding-inline: 7px; gap: 4px; }
  .better-window .window-bar > span:nth-child(2) { font-size: 11px; margin-inline: 1px; white-space: normal; }
  .demo-actions button { font-size: 11px; padding-inline: 3px; }
  .better-window .traffic { display: none; }
  .better-window .window-bar { grid-template-columns: 1fr auto; }
  .product-cues { grid-template-columns: repeat(3,1fr); }
  .product-cues div { padding-left: 5px; }
  .product-cues p { font-size: 13px; }
  .product-cues a { grid-column: 1/-1; margin: 0; }
  .ats-host .bm-ats-tool-grid, .compact-demo { grid-template-columns: 1fr; }
  .dispatch-layout { grid-template-columns: 1fr; gap: 5px; }
  .factory { height: auto; }
  .factory-cues { gap: 4px; grid-template-columns: repeat(3,1fr); }
  .factory-cues div { padding: 3px 5px; gap: 3px; font-size: 12px; }
  .factory-cues i { width: 4px; height: 4px; }
  .factory-steps { font-size: 11px; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; }
  .skill-card .skill-icon { grid-row: 1 / span 3; margin-bottom: 0; }
  .skill-card h2, .skill-card p { margin-top: 3px; }
  .skill-card p { font-size: 14px; }
  .synthesis .section-head h1, .ending h1 { font-size: clamp(32px, 8vw, 51px); }
  .contact-card { gap: 9px; padding: 12px; }
  .contact-info { column-gap: 6px; }
  .contact-icon { display: none; }
  .contact-info > * { grid-column: 1/-1 !important; }
}
