/* TAMPA-MEDIA-2026-12: Charles's own Tampa footage and photos. Home hero streetcar cab loop, Tampa still on
   /acquisition/, a Tampa photo strip on /about/, and a photo beside the gold CTA. Added by
   blog/tools/tampa_media_2026_12.py. */

/* ---------- Hero media ---------- */
.hero-bg.tm-media { background-image: none !important; overflow: hidden; pointer-events: none; }
.tm-media picture, .tm-media img, .tm-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-media img, .tm-media video { filter: saturate(.88) contrast(1.06) brightness(.9); }
.tm-media video { opacity: 0; transition: opacity 1.4s cubic-bezier(.25,.46,.45,.94); }
.tm-media video.on { opacity: 1; }
/* warm gold tint plus fine grain so footage and photos read as one set */
.tm-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(200,144,42,.5), rgba(13,13,13,.2) 60%);
  mix-blend-mode: soft-light; opacity: .7;
}
/* readable headline: darker on the text side, soft fade top and bottom */
.hero.tm-has-media .hero-overlay {
  background:
    linear-gradient(90deg, rgba(13,13,13,.84) 0%, rgba(13,13,13,.58) 38%, rgba(13,13,13,.18) 68%, rgba(13,13,13,.05) 85%),
    linear-gradient(0deg, rgba(13,13,13,.85) 0%, rgba(13,13,13,0) 38%),
    linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,0) 24%) !important;
}
@media (max-width: 760px) {
  .hero.tm-has-media .hero-overlay {
    background: linear-gradient(0deg, rgba(13,13,13,.92) 0%, rgba(13,13,13,.78) 45%, rgba(13,13,13,.66) 72%, rgba(13,13,13,.72) 100%) !important;
  }
}
.hero.tm-has-media h1, .hero.tm-has-media .hero-sub { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero.tm-has-media .hero-meta, .hero.tm-has-media .hero-breadcrumb { text-shadow: 0 1px 10px rgba(0,0,0,.7); }

.tm-pause { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: inline-flex; align-items: center; background: rgba(13,13,13,.5); color: #EDECE8; border: 1px solid rgba(237,236,232,.35); border-radius: 999px; font: 500 12px/1 var(--font-b, Inter, system-ui, sans-serif); padding: 7px 12px; cursor: pointer; }
.tm-pause:hover { border-color: var(--gold); }
.tm-pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tm-pause[hidden] { display: none; }

/* ---------- About: Tampa photo strip ---------- */
.tm-strip { background: var(--ink); color: var(--soft, #EDECE8); padding: 96px 0; }
.tm-strip-inner { max-width: var(--max-w, 1200px); margin: 0 auto; padding: 0 40px; }
.tm-strip .tm-label { display: inline-block; font-family: var(--font-b); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tm-strip h2 { margin: 12px 0 12px; }
.tm-strip-sub { color: var(--mist); max-width: 560px; margin: 0 0 36px; }
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tm-grid li { margin: 0; }
.tm-card { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: #1a1a1a; }
.tm-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); transition: transform .8s cubic-bezier(.25,.46,.45,.94); }
.tm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,.72) 0%, rgba(13,13,13,0) 48%), linear-gradient(135deg, rgba(200,144,42,.16), rgba(13,13,13,0) 55%); pointer-events: none; }
.tm-card figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #EDECE8; }
.tm-card:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tm-strip { padding: 64px 0; }
  .tm-strip-inner { padding: 0 20px; }
  .tm-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .tm-grid::-webkit-scrollbar { display: none; }
  .tm-grid li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Gold CTA with a photo beside it ---------- */
.cta-bar.tm-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.tm-cta-photo { position: relative; z-index: 1; margin: 0; min-height: 380px; overflow: hidden; background: #1a1a1a; }
.tm-cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.tm-cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 45%), linear-gradient(90deg, rgba(200,144,42,0) 70%, rgba(200,144,42,.35) 100%); pointer-events: none; }
.tm-cta-photo figcaption { position: absolute; z-index: 1; left: 20px; bottom: 16px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #EDECE8; }
.cta-bar.tm-cta .cta-bar-inner { text-align: left; margin: 0; max-width: 620px; padding: clamp(64px, 7vw, 96px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-bar.tm-cta .section-mark { justify-content: flex-start !important; }
@media (max-width: 760px) {
  .cta-bar.tm-cta { grid-template-columns: minmax(0, 1fr); }
  .tm-cta-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .tm-cta-photo::after { background: linear-gradient(0deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,0) 45%); }
  .cta-bar.tm-cta .cta-bar-inner { padding: 48px 20px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-media video { transition: none; }
  .tm-card img { transition: none; }
}
