/* TAMPA-MEDIA-2026-12: real Tampa video and photos behind heroes, a neighborhood strip on home,
   and a photo beside the gold CTA. Added by blog/tools/tampa_media_2026_12.py. */

/* ---------- Hero media layer ---------- */
.hero.tm-has-media { background: var(--ink, #0D0D0D); }
.hero.tm-has-media:not(.hero-home) { min-height: min(76vh, 700px) !important; align-items: flex-end; }
.tm-media { position: absolute; inset: 0; z-index: 0; 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, .tm-media .tm-slide { opacity: 0; transition: opacity 1.4s cubic-bezier(.25,.46,.45,.94); }
.tm-media video.on, .tm-media .tm-slide.on { opacity: 1; }
.tm-media .tm-slide.on img { animation: tmDrift 14s ease-out forwards; }
@keyframes tmDrift { from { transform: scale(1.0); } to { transform: scale(1.06); } }
/* warm brand tint plus fine grain: makes clips shot at different times 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,.55), rgba(13,13,13,.2) 60%);
  mix-blend-mode: soft-light; opacity: .7;
}
/* readable text: dark on the headline side, a fade under the nav and at the bottom, soft corners */
.tm-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(90deg, rgba(13,13,13,.86) 0%, rgba(13,13,13,.6) 36%, rgba(13,13,13,.16) 66%, rgba(13,13,13,0) 82%),
    linear-gradient(0deg, rgba(13,13,13,.8) 0%, rgba(13,13,13,0) 40%),
    linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,0) 26%),
    radial-gradient(120% 90% at 70% 40%, rgba(13,13,13,0) 55%, rgba(13,13,13,.5) 100%);
}
@media (max-width: 760px) {
  .tm-media::after {
    background:
      linear-gradient(0deg, rgba(13,13,13,.94) 0%, rgba(13,13,13,.82) 45%, rgba(13,13,13,.7) 70%, rgba(13,13,13,.68) 88%, rgba(13,13,13,.78) 100%),
      radial-gradient(130% 80% at 50% 30%, rgba(13,13,13,0) 50%, rgba(13,13,13,.45) 100%);
  }
  .hero.tm-has-media:not(.hero-home) { min-height: 560px !important; }
}
.hero.tm-has-media canvas#heroCanvas { z-index: 1; opacity: .5; }
.hero-home.tm-has-media canvas#heroCanvas { opacity: .62; mix-blend-mode: screen; }
.hero.tm-has-media .hero-content { z-index: 4; }
.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 .eyebrow, .hero.tm-has-media .section-label { 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; gap: 6px; 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, #C8902A); }
.tm-pause:focus-visible { outline: 2px solid var(--gold, #C8902A); outline-offset: 2px; }
.tm-pause[hidden] { display: none; }

/* ---------- Home: neighborhood strip ---------- */
.tm-strip { background: var(--ink, #0D0D0D); color: var(--soft, #EDECE8); }
.tm-strip-inner { max-width: var(--dh-wrap, 1200px); margin: 0 auto; }
.tm-strip .section-label { color: var(--gold, #C8902A); }
.tm-strip h2 { font-family: var(--font-h, 'Playfair Display', Georgia, serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin: 12px 0 12px; color: var(--soft, #EDECE8); }
.tm-strip-sub { color: var(--mist, #D6D3CC); 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: 6px; 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,.18), 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-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 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); padding: 0 !important; text-align: left; align-items: stretch; }
.tm-cta-photo { position: relative; margin: 0; min-height: 360px; 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; }
.tm-cta-body { padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tm-cta-body > * { margin-left: 0 !important; margin-right: 0 !important; text-align: left; }
@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%); }
  .tm-cta-body { padding: 48px 24px 56px; }
}

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

/* CONTACT-2026-12: quiet second path under the audit button */
.tm-cta-alt { margin: 22px 0 0 !important; font-size: .9375rem; color: var(--dh-ink, #0D0D0D); opacity: .85; }
.tm-cta-alt a { color: var(--dh-ink, #0D0D0D); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tm-cta-alt a:hover { opacity: .75; }
