/* The desktop artwork is registered against the 724px reference. */
.factory {
  background-image: url('/foundry/layered/registered-foundry.webp');
  overflow: clip;
}
.hero-orb { top: 21.82cqw; left: 41.44%; width: 24.17cqw; translate: none; }
.hero-copy { inset-inline-start: 5.25cqw; }
.mobile-crown { display: none; }
.hero-description { width: 36cqw; }
.hero-subtitle { margin-block: .49em .48em; }
.hero-badges { margin: 2.37cqw 0 2.25cqw; gap: .9cqw; }
.hero-badges li { font-size: 1.34cqw; padding-inline: .7em; }

.phone-ui { padding-inline: 4%; gap: .78em; }
.phone-top { font-size: .93em; font-weight: 800; letter-spacing: .05em; }
.phone-signal-icon { color: #82eab5; }
.phone-signal { grid-template-rows: auto auto 1fr auto; gap: .38em; }
.phone-signal > strong { font-size: 2.22em; }
.phone-probe-label { display: flex; align-items: center; justify-content: space-between; gap: .25em; font-size: .85em; color: #8abea8; }
.phone-probe-label b { padding: .25em .6em; color: #011a11; background: var(--green); border-radius: 99px; }
.phone-chart { position: relative; align-content: center; overflow: hidden; }
.phone-chart .health-chart { position: absolute; inset: auto 0 0; height: 72%; }
.phone-chart [data-readout] { z-index: 1; font-size: .9em; text-shadow: 0 1px 3px #000; }

.bridge { top: 59.94cqw; bottom: auto; left: 22.38%; width: 62.43cqw; aspect-ratio: 452 / 126; translate: none; }
.bridge::before {
  content: ""; position: absolute; inset: 12% 4% 13%; border-radius: 8cqw;
  background: radial-gradient(ellipse at 50% 80%, #166747a0, transparent 50%), linear-gradient(#080f0e, #0d201a);
}
.bridge-shell { inset: 0; height: 100%; }
.bridge-content { inset: 13% 10% 13%; grid-template-columns: 1.12fr .54fr 1.22fr .54fr 1.12fr; gap: .08em; }
.bridge-content .brand { font-size: 2.45cqw; gap: .12em; }
.bridge-content .grok-mark { width: 2.35em; height: 2.35em; }
.bridge-content .fomo-mark { width: 3em; height: 2.28em; object-fit: cover; }
.bridge-label {
  display: grid; place-items: center; min-height: 6.7cqw;
  background: linear-gradient(180deg, #0b21194d, #092a1df0);
  border-radius: 2.7cqw; border-bottom: 1px solid #46ffc659; line-height: 1.05;
}
.bridge-wave {
  width: 100%; height: auto; fill: none; stroke: #3effa7; stroke-width: 1.8; stroke-linejoin: round;
  filter: drop-shadow(0 0 .4cqw #00f48f); animation: signal-wave 4.8s ease-in-out infinite;
}
.bridge-wave:last-of-type { animation-delay: -2.4s; }

.agent-section { height: 107.7cqw; }
.agents { margin: 1.3cqw -.5cqw 0; row-gap: 1.3cqw; isolation: isolate; }
.agent { height: 35.2cqw; }
.agent::before {
  content: ""; position: absolute; inset: 13% 7% 13% 14%; border-radius: 20% 18% 5% 6% / 16% 14% 4% 5%;
  background: radial-gradient(ellipse at 51% 95%, #0a815277, transparent 63%), linear-gradient(#080f0e 0 42%, #082d23 100%);
  border: 1px solid #3cffad38;
}
.agent-shell { inset: 0 -2.5%; width: 105%; }
.agent-content { inset: 15.5% 10.5% 15.5% 16.5%; grid-template-rows: 22% 17% 14% 1fr; }
.agent-content .agent-mark { width: 5.25cqw; height: 5.25cqw; }
.agent-content > img.agent-mark { mix-blend-mode: screen; filter: contrast(1.24); }
.agent-role { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.agent h3 { max-width: 16.6cqw; font-size: 2.17cqw; }
.meter { width: 100%; height: 100%; }
.agent-state { border-color: #39c08b5e; }
.agent-executor .meter-active { transform-origin: 50% 50%; animation: executor-pass 5s ease-in-out infinite; }
.agent-risk .meter-active { transform-origin: 50% 50%; animation: shield-charge 6s ease-in-out infinite; }

.conveyor { isolation: isolate; }
.rail-trace {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: #39e9a4; stroke-width: 1.25; opacity: .65;
  filter: drop-shadow(0 0 3px #00ff9a);
}
@media (min-width: 650px) and (min-aspect-ratio: 801/1000), (min-width: 901px) {
  .conveyor { top: 82.73cqw; left: 0; bottom: auto; width: 62.98cqw; height: 19.2cqw; }
  .console-conveyor { top: 58.7cqw; width: 70.44cqw; height: 22.79cqw; }
  .conveyor .belt { inset: 0; width: 100%; height: 100%; }
  .conveyor .signal-orb { animation: none; bottom: auto; translate: -50% -50%; }
  .conveyor .signal-orb:nth-of-type(1) { left: 17.1%; top: 38%; width: 15%; }
  .conveyor .signal-orb:nth-of-type(2) { left: 41.2%; top: 40%; width: 11%; }
  .conveyor .signal-orb:nth-of-type(3) { left: 58.8%; top: 38%; width: 8%; }
  .conveyor .signal-orb:nth-of-type(4) { left: 72.6%; top: 34%; width: 6.7%; }
  .conveyor .signal-orb:nth-of-type(5) { left: 80.5%; top: 28%; width: 5%; }
  .console-conveyor .signal-orb:nth-of-type(1) { top: 33%; width: 19%; }
  .console-conveyor .signal-orb:nth-of-type(2) { left: 35%; top: 49%; width: 13%; }
  .console-conveyor .signal-orb:nth-of-type(3) { left: 49%; top: 62%; width: 9%; }
  .console-conveyor .signal-orb:nth-of-type(4) { left: 61%; top: 70%; width: 6%; }
  .console-conveyor .signal-orb:nth-of-type(5) { left: 71%; top: 74%; width: 5%; }
}
@supports (offset-path: shape(from 0% 0%, line to 100% 100%)) {
  @media (min-width: 650px) and (min-aspect-ratio: 801/1000) and (prefers-reduced-motion: no-preference), (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .conveyor .signal-orb:nth-of-type(n) {
      top: 0; left: 0; width: 17%; translate: none; offset-rotate: 0deg; offset-anchor: center;
      offset-path: shape(from 0% 43%, curve to 93% 16% with 40% 46% / 81% 35%);
      animation: follow-rail 13s linear infinite;
    }
    .console-conveyor .signal-orb:nth-of-type(n) {
      width: 21%;
      offset-path: shape(from 0% 15%, curve to 95% 71% with 34% 70% / 68% 93%);
    }
    .conveyor .signal-orb:nth-of-type(2) { animation-delay: -2.4s; }
    .conveyor .signal-orb:nth-of-type(3) { animation-delay: -4.8s; }
    .conveyor .signal-orb:nth-of-type(4) { animation-delay: -7.2s; }
    .conveyor .signal-orb:nth-of-type(5) { animation-delay: -9.7s; }
  }
}
.fomo-section { padding-top: 9.7cqw; min-height: 92cqw; }
.fomo-section h2 { font-size: 4.6cqw; }
.second-orb { top: 13.8cqw; left: 67.68%; width: 14.92cqw; translate: none; }
.second-reactor-light { left: 63.7%; top: 10.8cqw; width: 23%; }
.console { margin-inline: -1.32cqw; width: 94.89cqw; height: 52.76cqw; transform: none; }
.console::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(2.6% 12%, 3.4% 7.3%, 7% 4.4%, 12% 4.3%, 95% 19.5%, 97.2% 22.8%, 97.8% 28%, 97.8% 88%, 97% 93%, 94.5% 97%, 5.2% 96%, 2.4% 90%);
  background: radial-gradient(ellipse at 60% 24%, #16322a, #081211 60%);
}
.console-ui {
  inset: 15% 6.2% 11% 7.1%; font-size: 1.53cqw; gap: .6em .8em;
  transform: skewY(3deg); transform-origin: left top;
}
.console-sidebar, .console-right { gap: .52em; }
.console-sidebar .brand { margin-bottom: .63em; }
.console-sidebar > :is(a, button, .selected) { padding: .64em .46em; }
.system-panel, .fomo-panel { min-height: 4.15em; }
.telemetry { min-height: 4.4em; }
.telemetry .signal-grid { min-height: 4.3em; position: relative; align-content: end; padding: .5em; }
.telemetry .health-chart { height: 70%; position: absolute; bottom: 15%; inset-inline: 0; }
.telemetry [data-readout] { z-index: 1; }
.console-timestamp { color: #b5c2bc; }
.engine-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.engine-chip { padding: .24em .5em; border-radius: 99px; border: 1px solid #2d7c5b; font-size: .78em; }
.probe-bars {
  display: grid; grid-column: 1 / -1; grid-template-columns: repeat(12, 1fr);
  gap: .28em; min-height: 1.65em; align-items: end; padding-top: .2em;
}
.probe-bars i { display: block; height: .65em; border-radius: .12em; background: #4d8c73; }
.probe-bars .pending { height: .28em; background: #30463e; }
.probe-bars .reachable { height: 1.45em; background: #33e79f; }
.end-actions { margin-top: 6.4cqw; }
.end-actions .button:first-child { min-height: max(44px, 5.8cqw); }
.end-actions .outline { min-height: max(36px, 4.4cqw); }
@keyframes signal-wave { 50% { opacity: .56; transform: scaleX(.88); } }
@keyframes executor-pass { 25% { transform: translateX(6px); } 55% { transform: translateX(-3px); } }
@keyframes shield-charge { 50% { opacity: .53; transform: scale(.94); } }
@keyframes follow-rail {
  0% { offset-distance: 0%; transform: scale(1.12); opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { offset-distance: 100%; transform: scale(.18); opacity: 0; }
}
@media (min-width: 901px) {
  .site-header { padding-inline: 5.05cqw 4.1cqw; min-height: 9.2cqw; }
  .site-header nav { width: 37%; justify-content: space-between; margin-left: auto; margin-right: 4.6cqw; gap: 0; }
  .header-enter { min-height: 4.4cqw; }
}
@media (min-width: 1050px) and (min-aspect-ratio: 7/5) {
  .foundry { width: min(100%, 1440px, max(1000px, 137svh)); }
  body { background: radial-gradient(ellipse at center top, #142521, #050908 75%) fixed; }
}
@media (min-width: 650px) and (min-aspect-ratio: 801/1000), (min-width: 901px) {
  .agents::before, .agents::after {
    content: ""; position: absolute; z-index: -1; inset-inline: -5cqw; pointer-events: none;
  }
  .agents::before {
    top: 9.8cqw; height: 40cqw;
    --pipe: linear-gradient(180deg, #142b2b, #8ca6a5 15%, #213536 31%, #182120 66%, #58857c 85%, #0a1a16);
    background: var(--pipe) left top / 100% 3.5cqw no-repeat,
      var(--pipe) left bottom / 100% 3.5cqw no-repeat;
  }
  .agents::after {
    inset-block: 31.8cqw .2cqw;
    background: repeating-linear-gradient(180deg, #263733 0 .45cqw, #8b9e98 0 .7cqw, #141c1a 0 2.5cqw, #5e4f2c 0 2.8cqw, #111b17 0 3.1cqw, transparent 0 36.5cqw);
    opacity: .88;
  }
  .agent-fee h3, .agent-harvest h3, .agent-exit h3, .agent-flow h3 { max-width: 11cqw; }
  .hero-enter { min-height: max(34px, 4.75cqw); }
  .header-enter { min-height: max(30px, 4.35cqw); }
}
@media (max-width: 649px), (max-width: 900px) and (max-aspect-ratio: 4/5) {
  .hero::before {
    content: ""; position: absolute; inset: 0 0 31%; pointer-events: none;
    background: linear-gradient(180deg, #050a09 0%, #050a09d9 15%, #050a09a8 47%, transparent 100%);
  }
  .hero-copy { inset-inline-start: 5.2cqw; width: 89cqw; }
  .hero { height: calc(109px + 139cqw); }
  .hero-description { width: 62cqw; }
  .hero-badges { margin-block: 3cqw; width: 88cqw; }
  .hero-badges li { font-size: clamp(9px, 2.52cqw, 15px); }
  .hero-orb { width: 39.5cqw; left: 22%; top: calc(96px + 69cqw); }
  .mobile-crown {
    display: block; position: absolute; z-index: 1; top: calc(88px + 52cqw); left: 12%;
    width: 61cqw; aspect-ratio: 330 / 220; pointer-events: none;
    background: url('/foundry/layered/mobile-reactor-crown.webp') center / contain no-repeat;
  }
  .reactor-light {
    width: 58%; left: 12%; height: 29cqw; top: calc(89px + 52cqw);
  }
  .phone { right: 1.4cqw; top: calc(90px + 60cqw); width: 38cqw; }
  .bridge { top: auto; bottom: 0; left: 5%; width: 90cqw; }
  .bridge-content .brand { font-size: 3.25cqw; }
  .bridge-label { font-size: 2.35cqw; min-height: 9cqw; }
  .agent-section { height: auto; }
  .agents { margin: 3cqw -1cqw 0; row-gap: 1.8cqw; }
  .agent { height: 59cqw; }
  .agent-shell { inset-inline: -2%; width: 104%; }
  .agent-content .agent-mark { width: 9cqw; height: 9cqw; }
  .agent h3 { max-width: 29cqw; font-size: clamp(13px, 4.05cqw, 22px); }
  .rail-trace { display: none; }
  .fomo-section { min-height: 0; padding-top: 12cqw; }
  .fomo-section h2 { font-size: 7cqw; }
  .second-orb { width: 26cqw; left: 66%; top: 30cqw; }
  .console { width: auto; height: auto; margin-inline: 0; }
  .console::before { display: none; }
  .console-ui { inset: auto; transform: none; font-size: clamp(13px, 3.4cqw, 17px); }
  .end-actions .outline { min-height: 44px; }
}
@media (max-width: 480px) {
  .agents { margin-inline: -5cqw; }
  .agent { height: 77cqw; }
  .agent-content .agent-mark { width: 11.5cqw; height: 11.5cqw; }
  .agent-content { inset: 15% 10% 15% 16%; }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-wave, .meter-active { animation: none !important; }
}
