/* TEICO homepage hero (2026-11-21): full-bleed scene + floating media card. Homepage only. */
main > section.w-full:first-child [data-slot="carousel-content"] > div { padding-bottom: 0 !important; }
main > section.w-full:first-child [data-slot="carousel-item"] > div { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: center; min-height: 680px !important; padding: 70px max(32px, calc((100% - 1280px) / 2 + 32px)) 120px; gap: 48px; isolation: isolate; }
/* the text scene takes the whole slide */
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:last-child { position: absolute; inset: 0; z-index: -1; display: block !important; }
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:last-child::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,10,38,.75) 0%, rgba(6,10,38,.35) 55%, rgba(6,10,38,.1) 100%), linear-gradient(0deg, rgba(6,10,38,.7) 0%, rgba(6,10,38,0) 40%); }
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:last-child > div { position: absolute; z-index: 1; left: max(32px, calc((100% - 1280px) / 2 + 32px)); top: 50%; transform: translateY(-46%); width: min(640px, 52%); max-width: none !important; padding: 0 !important; }
main > section.w-full:first-child [data-slot="carousel-item"] p:first-child { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(251,218,12,.14); border: 1px solid rgba(251,218,12,.45); color: #FBDA0C; font-size: 12.5px !important; letter-spacing: .14em; margin-bottom: 20px !important; }
main > section.w-full:first-child [data-slot="carousel-item"] h1 { font-size: clamp(34px, 4.2vw, 56px) !important; line-height: 1.08 !important; letter-spacing: -.015em; margin-bottom: 20px !important; }
main > section.w-full:first-child [data-slot="carousel-item"] h1 + p { font-size: 18px !important; line-height: 1.65; color: #D5DCEE !important; max-width: 560px; }
/* the photo + video column becomes a floating card on the right */
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:first-child { grid-column: 2; grid-row: 1; height: 440px; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.18) !important; padding: 0 !important; justify-content: flex-end !important; align-items: flex-start !important; transform: rotate(1.5deg); transition: transform .5s ease; }
main > section.w-full:first-child [data-slot="carousel-item"]:hover > div > div:first-child { transform: rotate(0deg) translateY(-6px); }
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:first-child::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,38,0) 35%, rgba(6,10,38,.85) 100%); z-index: -1; }
main > section.w-full:first-child [data-slot="carousel-item"] h3 { position: relative; margin: 0 !important; padding: 0 28px 30px; max-width: none !important; font-size: 30px !important; line-height: 1.15 !important; text-align: left !important; }
main > section.w-full:first-child [data-slot="carousel-item"] > div > div:first-child > button { position: absolute !important; left: auto !important; right: 26px !important; top: 26px !important; bottom: auto !important; margin: 0 !important; width: 64px !important; height: 64px !important; background: #FBDA0C !important; color: #060A26 !important; box-shadow: 0 0 0 10px rgba(251,218,12,.25) !important; }
/* counter + arrows: slim bar floating over the bottom of the scene */
main > section.w-full:first-child [data-slot="carousel"] > div.absolute { background: transparent !important; height: 96px !important; bottom: 0 !important; color: #fff; }
main > section.w-full:first-child [data-slot="carousel"] > div.absolute .bg-foreground\/50 { background: rgba(255,255,255,.3) !important; }
main > section.w-full:first-child [data-slot="carousel"] > div.absolute .bg-primary { background: #FBDA0C !important; }
main > section.w-full:first-child [data-slot="carousel"] > div.absolute button { border-color: rgba(255,255,255,.6) !important; color: #fff !important; background: rgba(6,10,38,.35) !important; backdrop-filter: blur(6px); }
main > section.w-full:first-child [data-slot="carousel"] > div.absolute button:hover { background: #FBDA0C !important; border-color: #FBDA0C !important; color: #060A26 !important; }
@media (max-width: 1023px) {
  main > section.w-full:first-child [data-slot="carousel-item"] > div { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); min-height: 600px !important; }
  main > section.w-full:first-child [data-slot="carousel-item"] > div > div:first-child { height: 360px; }
  main > section.w-full:first-child [data-slot="carousel-item"] > div > div:last-child > div { width: 50%; }
}
@media (max-width: 767px) {
  main > section.w-full:first-child [data-slot="carousel-item"] > div { display: flex !important; flex-direction: column; justify-content: flex-end; min-height: 0 !important; padding: 300px 16px 96px; gap: 24px; }
  main > section.w-full:first-child [data-slot="carousel-item"] > div > div:last-child > div { position: absolute; left: 16px; right: 16px; top: 36px; transform: none; width: auto; }
  main > section.w-full:first-child [data-slot="carousel-item"] h1 { font-size: 30px !important; }
  main > section.w-full:first-child [data-slot="carousel-item"] h1 + p { font-size: 15px !important; }
  main > section.w-full:first-child [data-slot="carousel-item"] > div > div:first-child { width: 100%; height: 240px; transform: none; margin-top: 160px; }
  main > section.w-full:first-child [data-slot="carousel-item"] h3 { font-size: 24px !important; padding: 0 20px 22px; }
  main > section.w-full:first-child [data-slot="carousel"] > div.absolute { height: 80px !important; }
}
