/* /agentic-marketing — night-skyline hero with an example "overnight run" log of six agents.
   Shiny CTA comes from audit.css. Body class: has-photo-hero (hero-photo.css). */

.am-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 100svh; margin-top: calc(-1 * var(--ev-hdr)); padding: calc(var(--ev-hdr) + 40px) 0 64px; color: #fff; overflow: hidden; background: #14110f; }
.am-hero__bg, .am-hero__bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.am-hero__bg img { object-fit: cover; object-position: 50% 70%; }
.am-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14,11,9,.88) 0%, rgba(14,11,9,.55) 45%, rgba(14,11,9,.2) 75%),
  linear-gradient(180deg, rgba(14,11,9,.45) 0%, rgba(14,11,9,0) 30%, rgba(14,11,9,0) 70%, #14110f 100%); }

.am-hero__inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .am-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }

.am-hero__title { margin: 0; font-size: clamp(3.5rem, 10.5vw, 8.25rem); line-height: .88; letter-spacing: -0.06em; font-weight: 700; text-wrap: balance; }
.am-hero__claim { margin: 28px 0 0; max-width: 21ch; font-size: clamp(1.375rem, 3.2vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.am-hero__lead { margin: 20px 0 0; max-width: 46ch; font-size: clamp(1rem, 2.4vw, 1.1875rem); line-height: 1.5; color: rgba(255,255,255,.78); }
.am-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.am-hero__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-soft); }
.am-hero__link:hover { color: var(--accent-soft); }

/* Overnight log */
.am-log { margin: 0; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); background: rgba(20,17,15,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.am-log__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9375rem; }
.am-log__head span:last-child { margin-left: auto; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.am-log__live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 0 rgba(255,122,69,.6); animation: am-live 2s infinite; }
.am-log__rows { margin: 0; padding: 0; list-style: none; }
.am-log__rows li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; grid-template-areas: "time who st" "time what st"; column-gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.am-log__rows time { grid-area: time; padding-top: 1px; color: rgba(255,255,255,.5); font-size: .875rem; font-variant-numeric: tabular-nums; }
.am-log__who { grid-area: who; font-weight: 600; font-size: .9375rem; }
.am-log__what { grid-area: what; margin-top: 2px; color: rgba(255,255,255,.72); font-size: .875rem; line-height: 1.4; }
.am-log__st { grid-area: st; align-self: center; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: .8125rem; white-space: nowrap; }
.am-log__st--wait { background: var(--accent); color: #fff; font-weight: 600; }
.am-log__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 2px; font-size: .9375rem; }
.am-log__btn { padding: 8px 16px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 600; font-size: .875rem; }

/* One orchestrated moment: the night plays back row by row, then the approval ask lands. */
.am-log__rows li, .am-log__foot { animation: am-row .5s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * .38s); }
.am-log__foot .am-log__btn { animation: am-ask 1.4s var(--ease-io) 3.4s 2; }
@keyframes am-row { from { opacity: 0; transform: translateY(8px); } }
@keyframes am-live { 70% { box-shadow: 0 0 0 8px rgba(255,122,69,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,69,0); } }
@keyframes am-ask { 50% { box-shadow: 0 0 0 6px rgba(255,122,69,.35); } }

@media (max-width: 999px) {
  .am-hero { align-items: start; }
  .am-hero::before { background: linear-gradient(180deg, rgba(14,11,9,.8) 0%, rgba(14,11,9,.55) 40%, rgba(14,11,9,.85) 75%, #14110f 100%); }
}
@media (max-width: 559px) {
  .am-hero { padding-bottom: 40px; }
  .am-log { padding: 14px; border-radius: var(--r-md); }
  .am-log__rows li { grid-template-columns: 2.75rem minmax(0, 1fr) auto; grid-template-areas: "time who st" "time what what"; column-gap: 10px; padding: 10px 2px; }
  .am-log__st { align-self: start; padding: 2px 8px; font-size: .75rem; }
  .am-hero__cta .shiny { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .am-log__rows li, .am-log__foot, .am-log__foot .am-log__btn, .am-log__live { animation: none; }
}

/* "Agents can …" scroll list (21st "you can scroll", jh3y) */
.am-can { background: #14110f; color: #fff; padding-block: 28vh 22vh; overflow: clip; }
.am-can__row { display: flex; justify-content: center; gap: 0.28em; font-size: clamp(1.75rem, 7vw, 6.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.05em; }
.am-can__lead { position: sticky; top: calc(50% - 0.56em); align-self: flex-start; margin: 0; font: inherit; white-space: nowrap; }
.am-can__list { margin: 0; padding: 0; list-style: none; }
.am-can__list li { white-space: nowrap; color: oklch(0.74 0.17 calc(28 + var(--i) * 4)); }
.am-can__fin { margin: 34vh 0 0; text-align: center; font-size: clamp(3rem, 12vw, 11rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; }
.am-can__fin span { color: var(--accent-soft); }
@supports (animation-timeline: view()) {
  .motion-ok .am-can__list li { animation: am-can linear both; animation-timeline: view(); animation-range: cover calc(50% - 1lh) cover calc(50% + 1lh); }
  .motion-ok .am-can__list li:first-child { --from: 1; }
  .motion-ok .am-can__list li:last-child { --to: 1; }
}
@keyframes am-can {
  0% { opacity: var(--from, 0.16); }
  50% { opacity: 1; filter: brightness(1.25); }
  100% { opacity: var(--to, 0.16); }
}
