/* Agentic Swarm's opening scene. Independent of the scaled product frames. */
.swarm-hero {
  --sh-ink: #f4eee5;
  --sh-gold: #dbc3aa;
  --sh-soft: #a8b6c9;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 850px;
  min-height: max(790px, 100svh);
  padding: 148px max(40px, calc((100vw - 1320px) / 2)) 30px;
  background: #02060d;
  color: var(--sh-ink);
}
.swarm-hero::before,
.swarm-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.swarm-hero::before {
  background: url('../assets/swarm/hero-network-city.webp') center 58% / cover no-repeat;
  opacity: .83;
}
.swarm-hero::after {
  background: linear-gradient(90deg, rgba(2,6,13,.7), rgba(2,6,13,.15) 52%, rgba(2,6,13,.04)),
    linear-gradient(0deg, #02060d 0%, rgba(2,6,13,.05) 28%, rgba(2,6,13,.14) 78%, rgba(2,6,13,.45));
}
.sh-main { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); align-items: center; max-width: 1400px; margin: 0 auto; min-height: 560px; }
.sh-copy { position: relative; z-index: 2; align-self: start; padding: 20px 0 0; }
.swarm-hero p { margin: 0; }
.swarm-hero .sh-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--sh-gold); font: 400 10px/1.5 ui-monospace, 'SF Mono', monospace; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 25px; }
.sh-eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.swarm-hero h1 { color: var(--sh-ink); font-size: clamp(64px, 6.7vw, 100px); font-weight: 420; line-height: .97; letter-spacing: -.065em; text-wrap: nowrap; margin: 0 0 27px -5px; }
.swarm-hero h1 span { display: block; color: var(--sh-gold); }
.swarm-hero .sh-subtitle { color: #e0e2e5; font-size: clamp(21px, 1.9vw, 27px); font-weight: 350; letter-spacing: -.035em; line-height: 1.4; max-width: 390px; }
.sh-result { display: flex; gap: 19px; align-items: center; margin-top: 31px; }
.sh-result-number { display: flex; flex-direction: column; flex: none; }
.sh-result-number small { font-size: 10px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-soft); }
.sh-result-number strong { color: var(--sh-ink); font-size: 49px; font-weight: 400; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.sh-result-number strong span { font-size: 32px; }
.swarm-hero .sh-result-label { border-left: 1px solid rgba(219,195,170,.28); padding-left: 19px; color: #c6ced9; font-size: 14px; line-height: 1.55; }
.swarm-hero .sh-promise { margin-top: 24px; font-size: 12px; color: #b4c0cf; letter-spacing: .025em; }
.sh-promise span { color: #738196; margin: 0 7px; }
.sh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 30px; }
.sh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 27px; color: #15171c; background: #dbc3aa; border: 1px solid #e2cdb7; border-radius: 4px; padding: 14px 20px; font-size: 13px; font-weight: 500; text-decoration: none; transition: transform .25s cubic-bezier(.16,1,.3,1), background .25s; }
.sh-cta:hover { background: #efddc8; transform: translateY(-2px); }
.sh-cta:active { transform: scale(.98); }
.sh-cta svg { width: 16px; height: 16px; }
.sh-explore { display: inline-flex; align-items: center; gap: 10px; color: #d7dde5; font-size: 12px; text-decoration: none; padding: 12px 0; }
.sh-explore:hover { color: #fffaf3; }
.sh-explore svg { width: 13px; height: 13px; }
.sh-visual { position: relative; width: calc(100% + 8px); max-width: 720px; margin-left: -8px; align-self: center; margin-top: -24px; }
.sh-universe { position: relative; width: 100%; aspect-ratio: 1.38; }
.sh-canvas, .sh-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sh-canvas { opacity: 0; transition: opacity .5s; }
.sh-visual[data-ready] .sh-canvas { opacity: 1; }
.sh-visual[data-ready] .sh-fallback { display: none; }
.sh-visual-title { position: absolute; top: 2%; left: 30%; color: #99adc2; font: 9px/1.5 ui-monospace, 'SF Mono', monospace; text-transform: uppercase; letter-spacing: .18em; }
.sh-core-label { position: absolute; left: 48%; top: 44%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.sh-core-mark { display: block; width: 40px; height: 36px; margin: 0 auto 9px; color: #ebd9c3; }
.sh-core-label strong { font-size: 18px; font-weight: 450; letter-spacing: .25em; text-indent: .25em; color: #f2e5d5; }
.sh-core-label span { display: block; font-size: 9px; color: #aebbc9; margin-top: 4px; letter-spacing: .06em; }
.sh-node { position: absolute; border: 1px solid rgba(164,190,212,.23); border-radius: 5px; background: linear-gradient(135deg, rgba(30,44,61,.88), rgba(8,16,27,.9)); box-shadow: inset 0 1px 0 rgba(233,241,255,.07), 0 14px 40px rgba(2,6,13,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .4s, transform .4s; }
.sh-node-head { display: flex; align-items: center; gap: 8px; color: #dce3eb; font-size: 11px; font-weight: 400; }
.sh-node-head svg { width: 14px; height: 14px; color: #bcc8d8; flex: none; }
.sh-node-head span { font: 9px/1 ui-monospace, 'SF Mono', monospace; color: #899ab0; margin-left: auto; }
.sh-discover { left: 0; top: 20%; width: 160px; padding: 13px; }
.sh-discover .sh-mini-list { margin-top: 12px; display: grid; gap: 8px; }
.sh-mini-list > span { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #aab8c9; }
.sh-mini-list i { width: 5px; height: 5px; border: 1px solid #acbbcd; transform: rotate(45deg); }
.sh-mini-list em { margin-left: auto; color: #c8d9d7; font-size: 9px; font-style: normal; }
.sh-write { right: 0; top: 8%; width: 209px; padding: 13px 14px 12px; }
.sh-write .sh-letter { padding-top: 10px; margin-top: 9px; border-top: 1px solid rgba(164,190,212,.16); font-size: 10px; color: #c3cedc; line-height: 1.75; }
.sh-letter mark { color: #ead8c2; background: rgba(219,195,170,.1); }
.sh-letter-foot { display: flex; align-items: center; gap: 6px; color: #859ab1; font-size: 8px; margin-top: 10px; }
.sh-letter-foot::before { content: ''; height: 4px; width: 4px; border-radius: 50%; background: #b8cbbf; }
.sh-reply { right: 0; top: 60%; width: 207px; padding: 15px; background: linear-gradient(135deg, rgba(56,55,51,.9), rgba(18,25,34,.93)); border-color: rgba(219,195,170,.38); }
.sh-reply .sh-node-head { color: #e6d3bb; }
.sh-reply .sh-node-head svg { color: #e6d3bb; }
.swarm-hero .sh-reply p { color: #f2eadf; font-size: 12px; line-height: 1.65; margin-top: 11px; }
.sh-reply-foot { display: flex; justify-content: space-between; border-top: 1px solid rgba(219,195,170,.17); padding-top: 10px; margin-top: 12px; font-size: 9px; color: #aebccb; }
.sh-reply-foot b { color: #e0c9ad; font-weight: 400; }
.sh-gate { position: absolute; top: 72%; left: 11%; display: flex; gap: 9px; align-items: center; color: #d4c4b0; }
.sh-gate svg { width: 26px; height: 29px; }
.sh-gate strong { display: block; font-size: 11px; font-weight: 400; }
.sh-gate small { display: block; margin-top: 3px; color: #95a7bc; font-size: 9px; }
.sh-visual[data-stage="0"] .sh-discover,
.sh-visual[data-stage="1"] .sh-discover,
.sh-visual[data-stage="2"] .sh-write,
.sh-visual[data-stage="3"] .sh-write,
.sh-visual[data-stage="4"] .sh-reply { border-color: rgba(234,207,172,.67); transform: translateY(-3px); }
.sh-orbit-tag { position: absolute; top: 57%; left: 7%; color: #b5c3d2; font: 8px/1 ui-monospace, 'SF Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.sh-orbit-tag::before { content: '+'; color: #d9c3a8; margin-right: 8px; }
.sh-control-bar { display: flex; align-items: center; justify-content: space-between; margin: -24px 0 0; border-bottom: 1px solid rgba(187,198,214,.22); padding-bottom: 13px; position: relative; }
.sh-control-bar > span { color: #8b9fb6; font: 9px/1.5 ui-monospace, 'SF Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.sh-motion { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0 7px 10px; font: inherit; font-size: 10px; color: #acbbce; background: transparent; border: 0; cursor: pointer; }
.sh-motion svg { width: 10px; height: 10px; }
.sh-motion:hover { color: #f2e5d5; }
.sh-stage-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 0; padding-top: 15px; }
.sh-stage-nav button { border: 0; color: #94a7be; cursor: pointer; background: transparent; text-align: left; padding: 4px 6px 9px 0; font: inherit; font-size: 11px; transition: color .2s, transform .2s; }
.sh-stage-nav button span { display: block; color: #7b91aa; font: 9px/1.5 ui-monospace, 'SF Mono', monospace; margin-bottom: 5px; }
.sh-stage-nav button[aria-pressed="true"], .sh-stage-nav button[aria-pressed="true"] span { color: #f0d7b8; }
.sh-stage-nav button:hover { color: #f2e5d5; }
.sh-stage-nav button:active { transform: translateY(1px); }
.swarm-hero .sh-stage-detail { max-width: 460px; min-height: 48px; color: #a8b8cb; font-size: 11px; line-height: 1.65; margin: 5px 0 0; }
.sh-baseline { max-width: 1400px; margin: 26px auto 0; padding: 19px 0 0; border-top: 1px solid rgba(190,201,216,.15); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.swarm-hero .sh-baseline p { color: #b8c6d5; font-size: 11px; letter-spacing: .015em; }
.sh-baseline p span { color: #7790aa; margin: 0 12px; }
.sh-baseline a { color: #c8d0db; text-decoration: none; font: 9px/1.5 ui-monospace, 'SF Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }
.sh-baseline a span { padding-left: 12px; }
.swarm-hero :is(a, button):focus-visible { outline: 2px solid #e4cdb0; outline-offset: 5px; }
.swarm-hero [hidden] { display: none; }
@media (min-width: 1700px) { .swarm-hero { padding-top: 170px; } .sh-main { min-height: 650px; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .swarm-hero { padding: 132px 32px 28px; min-height: 780px; }
  .sh-main { grid-template-columns: .85fr 1.15fr; }
  .swarm-hero h1 { font-size: 73px; }
  .sh-subtitle { max-width: 330px; }
  .sh-visual { width: calc(100% + 20px); margin-left: -12px; }
  .sh-node { zoom: .85; }
  .sh-discover { left: -1%; }
  .sh-actions { gap: 10px; }
  .sh-cta { padding: 13px 15px; gap: 17px; }
  .sh-control-bar { margin-top: 0; }
  .sh-gate { left: 6%; }
  .sh-gate strong { font-size: 10px; }
  .sh-visual-title { left: 12%; }
}
@media (max-width: 760px) {
  .swarm-hero { padding: 120px 24px 24px; min-height: 0; }
  .swarm-hero::before { background-position: 63% center; opacity: .75; }
  .swarm-hero::after { background: linear-gradient(180deg, rgba(2,6,13,.63), rgba(2,6,13,.2) 65%, #02060d 100%); }
  .sh-main { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; max-width: 560px; }
  .sh-copy { padding: 0; }
  .swarm-hero .sh-eyebrow { font-size: 9px; letter-spacing: .16em; margin-bottom: 24px; }
  .swarm-hero h1 { font-size: clamp(63px, 15.6vw, 89px); margin-bottom: 23px; }
  .swarm-hero .sh-subtitle { font-size: 23px; max-width: 330px; }
  .sh-result { margin-top: 26px; }
  .sh-result-number strong { font-size: 46px; }
  .sh-actions { gap: 20px; margin-top: 26px; }
  .sh-cta { padding: 13px 16px; gap: 23px; font-size: 12px; }
  .sh-explore { font-size: 11px; }
  .swarm-hero .sh-promise { font-size: 11px; margin-top: 21px; }
  .sh-visual { width: 100%; margin: 52px 0 0; }
  .sh-universe { width: calc(100% + 20px); margin-left: -10px; aspect-ratio: 1.04; }
  .sh-visual-title { left: 2%; top: -1%; font-size: 8px; }
  .sh-node { border-radius: 4px; }
  .sh-discover { left: 0; top: 17%; width: 117px; padding: 10px; }
  .sh-node-head { font-size: 9px; gap: 6px; }
  .sh-node-head svg { width: 12px; height: 12px; }
  .sh-node-head span { display: none; }
  .sh-mini-list > span { font-size: 8px; gap: 5px; }
  .sh-mini-list em { font-size: 8px; }
  .sh-mini-list i { width: 4px; height: 4px; }
  .sh-discover .sh-mini-list { gap: 6px; margin-top: 9px; }
  .sh-write { width: 134px; top: 9%; padding: 10px; }
  .sh-write .sh-letter { font-size: 8px; line-height: 1.6; margin-top: 7px; padding-top: 7px; }
  .sh-letter-foot { font-size: 7px; margin-top: 7px; }
  .sh-reply { width: 150px; padding: 11px; top: 64%; right: 0; }
  .swarm-hero .sh-reply p { font-size: 10px; line-height: 1.55; margin-top: 8px; }
  .sh-reply-foot { font-size: 7px; padding-top: 8px; margin-top: 8px; }
  .sh-core-label strong { font-size: 14px; }
  .sh-core-label span { font-size: 7px; margin-top: 2px; }
  .sh-core-mark { width: 29px; height: 27px; margin-bottom: 5px; }
  .sh-gate { left: 2%; top: 77%; gap: 6px; }
  .sh-gate svg { width: 21px; }
  .sh-gate strong { font-size: 9px; }
  .sh-gate small { font-size: 7px; }
  .sh-orbit-tag { font-size: 7px; top: 58%; left: 1%; letter-spacing: .07em; }
  .sh-control-bar { margin-top: 14px; padding-bottom: 9px; }
  .sh-control-bar > span { font-size: 8px; }
  .sh-stage-nav { padding-top: 12px; }
  .sh-stage-nav button { font-size: 10px; }
  .swarm-hero .sh-stage-detail { font-size: 11px; min-height: 55px; }
  .sh-baseline { max-width: 560px; margin-top: 20px; align-items: flex-start; }
  .swarm-hero .sh-baseline p { font-size: 10px; max-width: 220px; }
  .sh-baseline p span { margin: 0 6px; }
  .sh-baseline a { font-size: 8px; white-space: nowrap; }
}
@media (max-width: 370px) {
  .swarm-hero { padding-left: 18px; padding-right: 18px; }
  .sh-actions { gap: 8px; }
  .sh-reply { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .swarm-hero *, .swarm-hero *::before, .swarm-hero *::after { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
