/* Phase 29: arrival proof blocks, surf utility links and route-specific Tere handoff. */
html[data-agoversion-phase29="ready"] {
  --ago29-ink: #0b1914;
  --ago29-panel: #0d211a;
  --ago29-cream: #fff8e8;
  --ago29-muted: #dfd4bc;
  --ago29-gold: #edc86a;
  --ago29-green: #0c7c70;
  --ago29-coral: #ee846d;
  --ago29-line: #ffffff24;
}

html[data-agoversion-phase29="ready"] .ago29-module {
  width: min(1180px, calc(100% - clamp(28px, 7vw, 96px)));
  margin: clamp(20px, 4vw, 46px) auto;
  scroll-margin-top: 124px;
  color: var(--ago29-cream);
}

html[data-agoversion-phase29="ready"] .ago29-module__frame {
  overflow: hidden;
  border: 1px solid var(--ago29-line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, #0d211a 0%, #07130f 58%, #102820 100%);
  box-shadow: 0 20px 58px #00000042;
}

html[data-agoversion-phase29="ready"] .ago29-module__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: clamp(16px, 4vw, 42px);
  align-items: end;
  padding: clamp(20px, 3.4vw, 38px);
  border-bottom: 1px solid #ffffff18;
}

html[data-agoversion-phase29="ready"] .ago29-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ago29-gold);
  font: 900 11px/1 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-agoversion-phase29="ready"] .ago29-module h2 {
  max-width: 15ch;
  margin: 0;
  color: #fffaf0;
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

html[data-agoversion-phase29="ready"] .ago29-module p {
  margin: 0;
  color: var(--ago29-muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.42;
}

html[data-agoversion-phase29="ready"] .ago29-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #ffffff18;
}

html[data-agoversion-phase29="ready"] .ago29-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(17px, 2.1vw, 24px);
  color: #fff8e8;
  background: #0a1914;
  text-decoration: none;
}

html[data-agoversion-phase29="ready"] .ago29-card:hover,
html[data-agoversion-phase29="ready"] .ago29-card:focus-visible {
  color: #fff8e8;
  background: linear-gradient(135deg, #123c35, #0b1e18);
  outline: 2px solid var(--ago29-gold);
  outline-offset: -2px;
}

html[data-agoversion-phase29="ready"] .ago29-card strong {
  display: block;
  color: #fffdf5;
  font: 900 clamp(16px, 1.6vw, 22px)/1.05 system-ui, sans-serif;
  letter-spacing: 0;
}

html[data-agoversion-phase29="ready"] .ago29-card span {
  display: block;
  max-width: 34ch;
  color: var(--ago29-muted);
  font: 600 13px/1.32 system-ui, sans-serif;
}

html[data-agoversion-phase29="ready"] .ago29-card em {
  color: var(--ago29-gold);
  font: 900 12px/1 system-ui, sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

html[data-agoversion-phase29="ready"] .ago29-tere-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-top: 1px solid #ffffff16;
  background: #07130f;
}

html[data-agoversion-phase29="ready"] .ago29-tere-strip a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #f3cd70;
  border-radius: 999px;
  color: var(--ago29-ink);
  background: linear-gradient(105deg, #fff0a4, var(--ago29-gold), var(--ago29-coral));
  font: 900 12px/1 system-ui, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

html[data-agoversion-phase29="ready"] .ago29-source-note {
  padding: 12px clamp(18px, 3vw, 28px);
  color: #d2c5a7;
  background: #06110d;
  border-top: 1px solid #ffffff12;
  font: 700 12px/1.35 system-ui, sans-serif;
}

html[data-agoversion-phase29="ready"] .ago29-missing-media {
  width: min(1180px, calc(100% - clamp(28px, 7vw, 96px)));
  margin: clamp(16px, 3vw, 34px) auto;
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px dashed #e7c26866;
  border-radius: 8px;
  color: #fff8e8;
  background: #091712;
}

html[data-agoversion-phase29="ready"] .ago29-missing-media strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ago29-gold);
  font: 900 12px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-agoversion-phase29="ready"] .ago29-missing-media p {
  max-width: 72ch;
  margin: 0;
  color: var(--ago29-muted);
  font: 600 14px/1.45 system-ui, sans-serif;
}

@media (max-width: 820px) {
  html[data-agoversion-phase29="ready"] .ago29-module__head,
  html[data-agoversion-phase29="ready"] .ago29-tere-strip {
    grid-template-columns: 1fr;
  }

  html[data-agoversion-phase29="ready"] .ago29-card-grid {
    grid-template-columns: 1fr;
  }

  html[data-agoversion-phase29="ready"] .ago29-card {
    min-height: 116px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-agoversion-phase29="ready"] .ago29-card {
    transition: background .24s ease, transform .24s ease, outline-color .24s ease;
  }

  html[data-agoversion-phase29="ready"] .ago29-card:hover,
  html[data-agoversion-phase29="ready"] .ago29-card:focus-visible {
    transform: translateY(-2px);
  }
}
