/* =========================================================
   ag26 — extra hero visuals (constellation, type, terminal)
   ========================================================= */

/* shared svg sizing */
.ag26-cons,
.ag26-type {
  width: 100%; height: 100%;
}
.ag26-cons__svg,
.ag26-type__svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}

/* ---------- Constellation ---------- */
.ag26-cons__node {
  transform-origin: center;
  transform-box: fill-box;
  animation: ag-cons-pop 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ag-cons-pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
.ag26-cons__edges line {
  stroke-dasharray: 4 6;
  animation: ag-cons-dash 18s linear infinite;
}
@keyframes ag-cons-dash {
  to { stroke-dashoffset: -200; }
}
.ag26-cons__pulse {
  filter: drop-shadow(0 0 6px rgba(255,122,61,0.8));
}

/* ---------- Type stack ---------- */
.ag26-type__layer { transition: transform 1s ease; }
.ag26-type__layer--1 { animation: ag-drift-x 12s ease-in-out infinite alternate; }
.ag26-type__layer--2 { animation: ag-drift-y 10s ease-in-out infinite alternate; }
.ag26-type__layer--3 { animation: ag-drift-x 14s ease-in-out infinite alternate-reverse; }
.ag26-type__layer--4 { animation: ag-drift-y 16s ease-in-out infinite alternate; }
@keyframes ag-drift-x { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes ag-drift-y { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.ag26-type__rule line {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: ag-type-draw 2.4s cubic-bezier(.6,.2,.2,1) forwards;
  animation-delay: 0.5s;
}
@keyframes ag-type-draw { to { stroke-dashoffset: 0; } }

/* ---------- Terminal ---------- */
.ag26-term {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #0b0b0d;
  border: 1px solid var(--ag-line);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35), 0 8px 30px -8px rgba(255,122,61,0.25);
  display: grid;
  grid-template-rows: auto 1fr;
  font-family: var(--ag-mono);
  color: #e6e1d8;
  position: relative;
}
.ag26-term__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #131316;
  border-bottom: 1px solid rgba(244,239,230,0.08);
  position: relative;
}
.ag26-term__dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.ag26-term__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: #8a857c;
  letter-spacing: 0.04em;
}
.ag26-term__body {
  padding: 18px 18px 24px;
  font-size: clamp(0.72rem, 1.05vw, 0.88rem);
  line-height: 1.7;
  overflow: hidden;
}
.ag26-term__line {
  margin: 0;
  font-family: inherit;
  white-space: pre;
  overflow: hidden;
  width: 0;
  opacity: 0;
  animation: ag-type-line 0.6s steps(60, end) forwards, ag-term-show 0.01s linear forwards;
}
.ag26-term__line--1 { animation-delay: 0.20s, 0.20s; width: 100%; }
.ag26-term__line--2 { animation-delay: 1.10s, 1.10s; }
.ag26-term__line--3 { animation-delay: 1.80s, 1.80s; }
.ag26-term__line--4 { animation-delay: 2.50s, 2.50s; }
.ag26-term__line--5 { animation-delay: 3.20s, 3.20s; }
.ag26-term__line--6 { animation-delay: 3.90s, 3.90s; }
.ag26-term__line--7 { animation-delay: 4.40s, 4.40s; }
@keyframes ag-type-line { from { width: 0; } to { width: 100%; } }
@keyframes ag-term-show { to { opacity: 1; } }

.ag26-term__prompt { color: #ff7a3d; }
.ag26-term__c     { color: #c8b6ff; }
.ag26-term__str   { color: #7df0c5; }
.ag26-term__ok    { color: #7df0c5; }
.ag26-term__tool  { color: #ff7a3d; }
.ag26-term__dim   { color: #6a6660; }
.ag26-term__cursor {
  display: inline-block;
  color: #ff7a3d;
  animation: ag-blink 1s steps(1) infinite;
}
@keyframes ag-blink { 50% { opacity: 0; } }

/* ---------- Aurora (005) ---------- */
.ag26-aurora { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 80% at 30% 20%, rgba(255,122,61,0.08), transparent 60%), #0b0b0d; }
.ag26-aurora__stage { position: absolute; inset: 0; filter: blur(46px) saturate(120%); }
.ag26-aurora__blob { position: absolute; border-radius: 50%; opacity: 0.7; mix-blend-mode: screen; will-change: transform; }
.ag26-aurora__blob--1 { width: 60%; height: 60%; left: -10%; top: -15%; background: radial-gradient(circle, rgba(255,122,61,0.95), rgba(255,122,61,0) 65%); animation: ag-aurora-a 18s ease-in-out infinite alternate; }
.ag26-aurora__blob--2 { width: 70%; height: 70%; right: -20%; top: 10%;  background: radial-gradient(circle, rgba(200,182,255,0.85), rgba(200,182,255,0) 65%); animation: ag-aurora-b 22s ease-in-out infinite alternate; }
.ag26-aurora__blob--3 { width: 55%; height: 55%; left: 10%;  bottom: -20%; background: radial-gradient(circle, rgba(125,240,197,0.7), rgba(125,240,197,0) 65%); animation: ag-aurora-c 26s ease-in-out infinite alternate; }
.ag26-aurora__blob--4 { width: 40%; height: 40%; right: 10%; bottom: 10%; background: radial-gradient(circle, rgba(244,239,230,0.5), rgba(244,239,230,0) 65%); animation: ag-aurora-d 20s ease-in-out infinite alternate; }
.ag26-aurora__grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(244,239,230,0.05) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; opacity: 0.5; }
.ag26-aurora__caption { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; }
@keyframes ag-aurora-a { from { transform: translate(0,0) scale(1); }    to { transform: translate(20%, 15%)  scale(1.15); } }
@keyframes ag-aurora-b { from { transform: translate(0,0) scale(1.1); }  to { transform: translate(-15%, 10%) scale(0.95); } }
@keyframes ag-aurora-c { from { transform: translate(0,0) scale(0.95); } to { transform: translate(15%, -20%) scale(1.1); } }
@keyframes ag-aurora-d { from { transform: translate(0,0) scale(1); }    to { transform: translate(-10%, -15%) scale(1.2); } }

/* ---------- Clocks (006) ---------- */
.ag26-clocks { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; padding: 28px; background: #0b0b0d; border: 1px solid rgba(244,239,230,0.08); display: flex; flex-direction: column; justify-content: space-between; }
.ag26-clocks__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; flex: 1; }
.ag26-clock { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ag26-clock__face { width: 100%; max-width: 140px; aspect-ratio: 1; }
.ag26-clock__hand { transform-origin: 50px 50px; transition: transform 0.4s cubic-bezier(0.4, 2.3, 0.3, 1); }
.ag26-clock__hand[data-hand="s"] { transition: transform 0.15s linear; }
.ag26-clock__label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ag26-clock__city { font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(244,239,230,0.55); }
.ag26-clock__time { font-size: 0.95rem; color: #f4efe6; font-variant-numeric: tabular-nums; }
.ag26-clocks__caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(244,239,230,0.08); }

/* ---------- Monogram (007) ---------- */
.ag26-mono { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; padding: 24px; background: #0b0b0d; border: 1px solid rgba(244,239,230,0.08); display: flex; flex-direction: column; }
.ag26-mono__svg { width: 100%; flex: 1; max-height: 100%; }
.ag26-mono__stroke {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: ag-mono-draw 1.6s cubic-bezier(0.6, 0.05, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes ag-mono-draw { to { stroke-dashoffset: 0; } }
.ag26-mono__caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(244,239,230,0.08); }

/* respect reduced motion across new visuals */
@media (prefers-reduced-motion: reduce) {
  .ag26-cons__node,
  .ag26-cons__edges line,
  .ag26-type__layer,
  .ag26-type__rule line,
  .ag26-term__line,
  .ag26-term__cursor,
  .ag26-aurora__blob,
  .ag26-mono__stroke,
  .ag26-topo__lines ellipse,
  .ag26-heat__cell,
  .ag26-ticker__list,
  .ag26-globe__rotor,
  .ag26-wave__dot { animation: none !important; opacity: 1 !important; width: 100% !important; }
  .ag26-mono__stroke { stroke-dashoffset: 0 !important; }
}

/* ---------- Topo (008) ---------- */
.ag26-topo { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; overflow: hidden; background: #0b0b0d; }
.ag26-topo__svg { width: 100%; height: 100%; display: block; }
.ag26-topo__lines ellipse {
  transform-origin: 300px 320px;
  animation: ag-topo-pulse 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.4s);
}
@keyframes ag-topo-pulse {
  0%, 100% { transform: scale(1); stroke-opacity: 0.35; }
  50%      { transform: scale(1.04); stroke-opacity: 0.55; }
}

/* ---------- Heatmap (009) ---------- */
.ag26-heat { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; padding: 28px; background: #0b0b0d; border: 1px solid rgba(244,239,230,0.08); display: flex; flex-direction: column; gap: 18px; }
.ag26-heat__caption { display: flex; justify-content: space-between; gap: 12px; }
.ag26-heat__grid {
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  flex: 1;
  /* Re-flow rows: 7 days × 22 weeks (rendered column-major via grid-auto-flow) */
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
}
.ag26-heat__cell {
  background: rgba(244,239,230,0.06);
  border-radius: 3px;
  opacity: 0;
  animation: ag-heat-in 0.6s ease-out forwards;
  animation-delay: var(--d, 0s);
}
.ag26-heat__cell[data-i="1"] { background: rgba(255,122,61,0.20); }
.ag26-heat__cell[data-i="2"] { background: rgba(255,122,61,0.40); }
.ag26-heat__cell[data-i="3"] { background: rgba(255,122,61,0.65); }
.ag26-heat__cell[data-i="4"] { background: rgba(255,122,61,0.95); }
@keyframes ag-heat-in { to { opacity: 1; } }
.ag26-heat__legend {
  display: flex; align-items: center; gap: 6px; justify-content: flex-end;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px;
  color: rgba(244,239,230,0.5); letter-spacing: 0.1em; text-transform: uppercase;
}
.ag26-heat__legend .ag26-heat__cell {
  width: 12px; height: 12px; opacity: 1; animation: none; flex: 0 0 auto;
}

/* ---------- Ticker (010) ---------- */
.ag26-ticker { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; padding: 28px 36px; background: #0b0b0d; border: 1px solid rgba(244,239,230,0.08); display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.ag26-ticker__head, .ag26-ticker__foot { display: flex; justify-content: space-between; gap: 12px; }
.ag26-ticker__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #ff7a3d; margin-right: 8px;
  animation: ag-ticker-blink 1.5s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes ag-ticker-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ag26-ticker__viewport {
  flex: 1; position: relative; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.ag26-ticker__list {
  list-style: none; padding: 0; margin: 0;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.4;
  color: #f4efe6;
  text-align: center;
  animation: ag-ticker-scroll 22s linear infinite;
}
.ag26-ticker__list li { padding: 4px 0; }
.ag26-ticker__list li:nth-child(3n) { color: #ff7a3d; }
.ag26-ticker__list li:nth-child(7n) { color: #c8b6ff; }
@keyframes ag-ticker-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.ag26-ticker__rule { height: 1px; background: rgba(244,239,230,0.1); }

/* ---------- Globe (011) ---------- */
.ag26-globe { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; overflow: hidden; background: #0b0b0d; }
.ag26-globe__svg { width: 100%; height: 100%; display: block; }
.ag26-globe__longs {
  transform-origin: 300px 300px;
  animation: ag-globe-spin 24s linear infinite;
}
@keyframes ag-globe-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ag26-globe__pins g circle:nth-child(2) {
  animation: ag-globe-ping 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes ag-globe-ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Wave (012) ---------- */
.ag26-wave { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; overflow: hidden; background: #0b0b0d; }
.ag26-wave__svg { width: 100%; height: 100%; display: block; }
.ag26-wave__dot {
  transform-origin: center;
  animation: ag-wave-bob 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  fill-opacity: 0.55;
}
@keyframes ag-wave-bob {
  0%,100% { transform: translateY(0); fill-opacity: 0.35; }
  50%     { transform: translateY(-8px); fill-opacity: 1; }
}

/* ---------- Specimen (013) ---------- */
.ag26-specimen { position: relative; width: 100%; height: 100%; min-height: 420px; border-radius: 28px; padding: 28px; background: #0b0b0d; border: 1px solid rgba(244,239,230,0.08); display: flex; flex-direction: column; gap: 18px; }
.ag26-specimen__grid {
  flex: 1;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1px; background: rgba(244,239,230,0.08);
}
.ag26-specimen__cell {
  background: #0b0b0d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; gap: 8px;
  position: relative;
  transition: background 0.3s ease;
}
.ag26-specimen__cell:hover { background: #131316; }
.ag26-specimen__mark {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: #f4efe6;
  letter-spacing: -0.03em;
}
.ag26-specimen__cell:nth-child(1) .ag26-specimen__mark { color: #ff7a3d; }
.ag26-specimen__cell:nth-child(3) .ag26-specimen__mark { color: #c8b6ff; }
.ag26-specimen__cell:nth-child(4) .ag26-specimen__mark { color: #7df0c5; }
.ag26-specimen__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(244,239,230,0.5); text-align: center;
}
.ag26-specimen__caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
