/* ==========================================================================
   asyrul.dev — Section styles: hero, builds, systems, craft, missions, contact
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--ay-section-pad) 80px;
  overflow: hidden;
}

.hero_starfield {
  position: absolute;
  inset: 0;
  /* canvas is a replaced element — inset alone leaves it at its intrinsic
     300x150; explicit width/height make it actually fill the hero */
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  /* subtle HUD grid overlay */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ay-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ay-hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  /* promote the masked overlay to its own layer — repainting it every scroll
     frame is a flicker source */
  transform: translateZ(0);
  will-change: transform;
}

.hero_inner {
  position: relative;
  z-index: 2;
  max-width: var(--ay-section-max);
  margin: 0 auto;
  width: 100%;
}

.hero_transmission {
  font-family: var(--ay-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ay-signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero_transmission_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ay-signal);
  box-shadow: 0 0 12px var(--ay-signal);
  animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero_name {
  font-family: var(--ay-font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ay-text-bright);
  margin-bottom: 14px;
}

.hero_name em {
  font-style: normal;
  background: var(--ay-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero_typewriter {
  font-family: var(--ay-font-mono);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: var(--ay-signal);
  min-height: 1.6em;
  margin-bottom: 24px;
}

.hero_typewriter .caret {
  display: inline-block;
  width: 0.6em;
  border-bottom: 2px solid var(--ay-signal);
  animation: caret-blink 900ms steps(1) infinite;
  transform: translateY(-2px);
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.hero_copy {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  margin-bottom: 36px;
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero_stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ay-line);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius);
  overflow: hidden;
  max-width: 980px;
}

.hero_stat {
  background: var(--ay-glass);
  padding: 20px 22px;
}

.hero_stat dt {
  font-family: var(--ay-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 6px;
}

.hero_stat dd {
  font-family: var(--ay-font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--ay-signal);
}

@media (max-width: 720px) {
  .hero_stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Certifications — the pilot-badge rack
   -------------------------------------------------------------------------- */

/* distinct band after the hero: lifted surface + a faint signal glow from
   the top (token-driven, so it holds in both themes) */
.certs {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, var(--ay-signal-faint), transparent 70%),
    var(--ay-space-900);
  border-top: 1px solid var(--ay-line);
}

.certbadge_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.certbadge {
  position: relative;
  text-align: center;
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius);
  padding: 26px 20px 22px;
  transition: transform 240ms var(--ay-ease), border-color 240ms var(--ay-ease),
    box-shadow 240ms var(--ay-ease);
}

.certbadge:hover {
  transform: translateY(-5px);
  border-color: var(--ay-line-bright);
  box-shadow: var(--ay-glow-signal);
}

.certbadge_emblem {
  width: 58px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* hexagonal pilot-wing emblem */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, var(--ay-space-700), var(--ay-space-800));
  border: 1px solid var(--ay-line);
}

.certbadge_emblem span {
  font-family: var(--ay-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: var(--ay-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.certbadge--pro .certbadge_emblem {
  background: var(--ay-gradient-signal);
  border: none;
}

.certbadge--pro .certbadge_emblem span {
  background: none;
  -webkit-text-fill-color: var(--ay-on-accent);
  color: var(--ay-on-accent);
}

.certbadge_tier {
  font-family: var(--ay-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--ay-text-dim);
  margin-bottom: 6px;
}

.certbadge--pro .certbadge_tier {
  color: var(--ay-flare);
}

.certbadge h3 {
  font-family: var(--ay-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  margin-bottom: 4px;
}

.certbadge_org {
  font-family: var(--ay-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ay-text-dim);
}

@media (max-width: 860px) {
  .certbadge_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .certbadge_grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Builds — AI agents & AI-powered apps
   -------------------------------------------------------------------------- */

.builds {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--ay-plasma-faint), transparent 70%),
    var(--ay-space-900);
}

.builds_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.build_card {
  position: relative;
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius);
  padding: 26px 24px;
  transition: transform 260ms var(--ay-ease), border-color 260ms var(--ay-ease),
    box-shadow 260ms var(--ay-ease);
}

.build_card:hover {
  transform: translateY(-6px);
  border-color: var(--ay-line-bright);
  box-shadow: var(--ay-glow-signal);
}

.build_card_glyph {
  font-family: var(--ay-font-mono);
  font-size: 1.1rem;
  color: var(--ay-plasma);
  margin-bottom: 16px;
}

.build_card h3 {
  font-family: var(--ay-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  margin-bottom: 10px;
}

.build_card p {
  font-size: 0.92rem;
  color: var(--ay-text);
}

@media (max-width: 960px) {
  .builds_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .builds_grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Systems Assembly — animated architecture diagram
   -------------------------------------------------------------------------- */

.systems_layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 24px;
}

.systems_diagram_panel {
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-lg);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: var(--ay-shadow-deep);
}

.systems_diagram_title {
  font-family: var(--ay-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.systems_diagram_title .live {
  color: var(--ay-signal);
}

.systems_diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* larger variant — fewer nodes, bigger boxes and labels */
.systems_diagram--big .sys_node text {
  font-size: 13.5px;
}

.sys_node rect {
  fill: var(--ay-space-800);
  stroke: var(--ay-line);
  stroke-width: 1;
  rx: 8;
}

.sys_node text {
  fill: var(--ay-text);
  font-family: var(--ay-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.sys_node--accent rect {
  stroke: var(--ay-signal-dim);
}

.sys_node--accent text {
  fill: var(--ay-signal);
}

.sys_edge {
  stroke: var(--ay-line);
  stroke-width: 1.4;
  fill: none;
}

.sys_packet {
  fill: var(--ay-signal);
  filter: drop-shadow(0 0 5px var(--ay-signal));
}

.sys_packet--plasma {
  fill: var(--ay-plasma);
  filter: drop-shadow(0 0 5px var(--ay-plasma));
}

.systems_points {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.systems_points li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.systems_points li::before {
  content: ">";
  font-family: var(--ay-font-mono);
  color: var(--ay-signal);
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .systems_layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Craft — the artist section + pilot profile card
   -------------------------------------------------------------------------- */

.craft {
  background:
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(124, 92, 255, 0.08), transparent 70%),
    var(--ay-space-900);
}

.craft_layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  /* center like the other diagram sections so the Pilot Profile card gets
     the same breathing room from the top */
  align-items: center;
  margin-top: 24px;
}

.craft_principles {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.craft_principles li {
  border-left: 2px solid var(--ay-plasma);
  padding-left: 18px;
}

.craft_principles strong {
  display: block;
  font-family: var(--ay-font-display);
  color: var(--ay-text-bright);
  font-weight: 600;
  margin-bottom: 2px;
}

.craft_principles span {
  font-size: 0.92rem;
  color: var(--ay-text-dim);
}

/* Pilot profile — sci-fi character sheet */
.pilot_photo_wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pilot_photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ay-signal);
  box-shadow: 0 0 16px var(--ay-signal-dim);
}

@media (max-width: 600px) {
  .pilot_photo {
    width: 140px;
    height: 140px;
  }
}

.pilot_card {
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-lg);
  padding: 28px 26px;
  box-shadow: var(--ay-shadow-deep);
}

.pilot_card_header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ay-line);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.pilot_card_header h3 {
  font-family: var(--ay-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ay-signal);
}

.pilot_card_header span {
  font-family: var(--ay-font-mono);
  font-size: 0.7rem;
  color: var(--ay-text-dim);
}

.pilot_attrs {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.pilot_attr_label {
  display: flex;
  justify-content: space-between;
  font-family: var(--ay-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 5px;
}

.pilot_attr_track {
  height: 6px;
  border-radius: var(--ay-radius-pill);
  background: var(--ay-space-800);
  overflow: hidden;
}

.pilot_attr_fill {
  height: 100%;
  width: 0;
  border-radius: var(--ay-radius-pill);
  background: var(--ay-gradient-signal);
  transition: width 1100ms var(--ay-ease);
}

.is-visible .pilot_attr_fill {
  width: var(--fill);
}

.pilot_traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot_traits li {
  list-style: none;
  font-family: var(--ay-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ay-text);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-pill);
  padding: 5px 12px;
}

@media (max-width: 960px) {
  .craft_layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Missions — career timeline + certifications
   -------------------------------------------------------------------------- */

.missions_timeline {
  list-style: none;
  margin-top: 48px;
  position: relative;
  padding-left: 28px;
}

.missions_timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--ay-signal), var(--ay-plasma), transparent);
}

.mission {
  position: relative;
  padding-bottom: 40px;
}

.mission:last-child {
  padding-bottom: 0;
}

.mission::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ay-space-950);
  border: 2px solid var(--ay-signal);
  box-shadow: 0 0 10px var(--ay-signal-dim);
}

.mission_period {
  font-family: var(--ay-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 4px;
}

.mission h3 {
  font-family: var(--ay-font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  margin-bottom: 8px;
}

.mission h3 span {
  color: var(--ay-signal);
}

.mission p {
  font-size: 0.94rem;
  max-width: 720px;
}

.mission_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}

.mission_tags li {
  font-family: var(--ay-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ay-plasma);
  background: var(--ay-plasma-faint);
  border-radius: var(--ay-radius-pill);
  padding: 4px 11px;
}

.certs_row {
  margin-top: 56px;
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius);
  background: var(--ay-glass);
  padding: 24px 26px;
}

.certs_row h3 {
  font-family: var(--ay-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ay-signal);
  margin-bottom: 16px;
}

.certs_note {
  color: var(--ay-text-dim);
  text-transform: none;
  letter-spacing: 0.06em;
}

.certs_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.certs_list li {
  font-family: var(--ay-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ay-text-bright);
  border: 1px solid var(--ay-signal-dim);
  border-radius: var(--ay-radius-sm);
  padding: 8px 14px;
  background: var(--ay-signal-faint);
}

.certs_list li strong {
  color: var(--ay-flare);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Education
   -------------------------------------------------------------------------- */

.education_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.edu_card {
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-lg);
  padding: 28px 26px;
  box-shadow: var(--ay-shadow-deep);
}

.edu_period {
  font-family: var(--ay-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 10px;
}

.edu_card h3 {
  font-family: var(--ay-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  margin-bottom: 6px;
}

.edu_card h3 span {
  color: var(--ay-signal);
  font-weight: 500;
}

.edu_school {
  font-size: 0.92rem;
  color: var(--ay-text);
  margin-bottom: 14px;
}

.edu_school strong {
  color: var(--ay-flare);
}

.edu_detail {
  font-size: 0.92rem;
  color: var(--ay-text);
  margin-bottom: 16px;
}

.edu_detail em {
  color: var(--ay-text-bright);
  font-style: normal;
}

@media (max-width: 860px) {
  .education_grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Transmission — architecture diagrams + CTA
   -------------------------------------------------------------------------- */

.tx_diagrams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  align-items: stretch;
}

.tx_cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.tx_cta .ay_btn {
  font-size: 1.05rem;
  padding: 16px 38px;
}

/* Context-window budget stack */
.ctx_stack {
  display: grid;
  gap: 8px;
}

.ctx_slot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-sm);
  background: var(--ay-space-800);
  padding: 11px 15px;
}

.ctx_slot_name {
  font-family: var(--ay-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ay-text-bright);
}

.ctx_slot_note {
  font-family: var(--ay-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ay-text-dim);
  text-align: right;
}

.ctx_slot--output {
  border-color: var(--ay-signal-dim);
  background: var(--ay-signal-faint);
}

.ctx_slot--output .ctx_slot_name {
  color: var(--ay-signal);
}

.ctx_caption {
  font-family: var(--ay-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ay-text-dim);
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .tx_diagrams {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service_flagship {
  margin-top: 44px;
  background: var(--ay-glass);
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius-lg);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--ay-shadow-deep);
}

.service_flagship .systems_layout {
  margin-top: 0;
}

.service_flagship_title {
  font-family: var(--ay-font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  margin: 8px 0 12px;
}

.service_flagship_copy {
  font-size: 0.96rem;
  color: var(--ay-text);
  margin-bottom: 20px;
}

.service_flagship .systems_diagram_panel {
  box-shadow: none;
  background: var(--ay-space-900);
}

.service_diagram_note {
  font-family: var(--ay-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ay-text-dim);
  margin-top: 10px;
  line-height: 1.6;
}

.services_row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .services_row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.services_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 720px) {
  .services_grid {
    grid-template-columns: 1fr;
  }
}

.contact_channels_eyebrow {
  margin-top: 64px;
}

.contact_channels {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.contact_channel {
  border: 1px solid var(--ay-line);
  border-radius: var(--ay-radius);
  background: var(--ay-glass);
  transition: border-color 240ms var(--ay-ease), transform 240ms var(--ay-ease);
}

.contact_channel:hover {
  border-color: var(--ay-line-bright);
  transform: translateY(-4px);
}

.contact_channel a {
  display: block;
  padding: 20px 22px;
}

.contact_channel_label {
  font-family: var(--ay-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ay-text-dim);
  margin-bottom: 6px;
}

.contact_channel_value {
  font-family: var(--ay-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ay-text-bright);
  overflow-wrap: anywhere;
}

.contact_channel_desc {
  font-size: 0.84rem;
  color: var(--ay-text-dim);
  margin-top: 8px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .contact_channels {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   THE PRESENCE — particle swarm with intent (js/presence.js)
   Fixed to the right of the viewport, desktop only, purely decorative.
   The canvas draws the swarm; this layer only positions it and supplies a
   faint ambient glow behind the flock.
   ========================================================================== */

.presence {
  /* mobile default: a small constellation tucked top-right, below the nav */
  position: fixed;
  top: 76px;
  right: 10px;
  width: 150px;
  height: 210px;
  z-index: 1;
  pointer-events: none;
  display: block;
  opacity: 0.8;
  background: radial-gradient(circle 46% at 50% 50%, var(--ay-signal-faint), transparent 72%);
}

@media (min-width: 960px) {
  .presence {
    top: 46%;
    right: clamp(28px, 5vw, 120px);
    transform: translateY(-50%);
    width: 340px;
    height: min(70vh, 660px);
    opacity: 0.85;
    transition: transform 0.9s var(--ay-ease);
  }

  /* On the hero the sphere takes the spotlight — pulled inward to sit
     just right of the viewport centre, and lifted. Scrolling into any
     section removes .is-hero and it glides back to the right rail. */
  .presence.is-hero {
    /* sit just to the right of the hero copy block (~640px wide from the
       centred 1160px inner's left edge) rather than at viewport centre */
    transform: translate(calc(-50vw + 535px + clamp(28px, 5vw, 120px)), calc(-50% - 48px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .presence {
    transition: none;
  }
}

/* ==========================================================================
   THE EXPLORER — roaming rocket + fading trail (js/rocket.js)
   Full-viewport fixed canvas, desktop only, purely decorative.
   ========================================================================== */

.rocket_canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block; /* all viewports — the explorer flies on mobile too */
}
