/* Turhan Law homepage hero animation v2.
   Original SR7 timelines preserved with native Web Animations API.
   Scope is strictly the existing homepage hero. */
#header-slider-container.tl-hero-container {
  width: 100%; max-width: none; margin: 0; padding: 0;
  position: relative; overflow: hidden;
}
#header-slider-container .tl-hero-v1 {
  position: relative; isolation: isolate; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  min-height: 720px; width: 100%; overflow: hidden;
  background-color: #142334;
  background-image: var(--tl-home-hero-poster);
  background-position: center; background-repeat: no-repeat; background-size: cover;
  color: #fff; font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}
#header-slider-container .tl-hero-video {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
#header-slider-container .tl-hero-v1::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(to bottom, rgba(5,12,23,.30), rgba(5,12,23,.43));
  pointer-events: none;
}
/* The source SR7 used a 610px-wide, left-aligned stage positioned at x=-26px,
   heading y=-108px, and messages y=+50px relative to slide center. */
#header-slider-container .tl-hero-copy {
  position: absolute; inset: 0; box-sizing: border-box;
  width: 100%; max-width: none; margin: 0; padding: 0;
  text-align: left; text-shadow: none; pointer-events: none;
}
#header-slider-container .tl-hero-heading,
#header-slider-container .tl-hero-message,
#header-slider-container .tl-hero-tagline {
  position: absolute; left: calc(50% - 26px);
  box-sizing: border-box; width: min(610px, calc(100% - 40px)); max-width: none;
  margin: 0; padding: 0; text-align: left; font-weight: 400;
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0; line-height: 1.25;
  transform: translate(-50%, 0);
  will-change: transform, opacity;
}
#header-slider-container .tl-hero-heading {
  top: calc(50% - 140px); font-size: 30px; color: #fff;
  text-align: justify !important;
}
.en #header-slider-container h1.tl-hero-heading {
    top: calc(50% - 160px) !important;
}
/* Masked message stage: its top edge is the reveal boundary below the heading.
   Grid stacking makes the stage as tall as its longest message; every message
   fills the same track so translateY(-100%/+100%) starts/ends fully off-stage. */
#header-slider-container .tl-hero-message-area {
  position: absolute;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  left: calc(50% - 26px);
  top: calc(50% - 30px);
  width: min(610px, calc(100% - 40px));
  transform: translateX(-50%);
  overflow: hidden;
  margin: 0;
  padding: 0;
}
#header-slider-container .tl-hero-message {
  position: relative;
  grid-area: 1 / 1;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  font-size: 23px;
  color: #ddd;
  opacity: 1;
  transform: translateY(0);
  will-change: transform;
  text-align: justify !important;
}
#header-slider-container .tl-hero-tagline {
  top: calc(50% - 108px); font-size: 30px; color: #fff;
  opacity: 0;
}
/* With scripting disabled, the headline and initial message remain readable. */
#header-slider-container .tl-hero-message:not(.is-active) { display: none; }
#header-slider-container .tl-hero-v1.tl-hero-animated .tl-hero-heading,
#header-slider-container .tl-hero-v1.tl-hero-animated .tl-hero-tagline,
#header-slider-container .tl-hero-v1.tl-hero-animated .tl-hero-message {
  display: block; opacity: 0;
}
#header-slider-container .tl-hero-controls {
  position: absolute; z-index: 2; display: flex; gap: 12px;
  align-items: center; right: clamp(16px,3vw,44px); bottom: 22px;
  display: none;
}
#header-slider-container .tl-hero-control {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
  background: rgba(0,0,0,.22); color: #fff;
  font: 24px/1 Arial, sans-serif; cursor: pointer;
  transition: background .2s;
}
#header-slider-container .tl-hero-control:hover,
#header-slider-container .tl-hero-control:focus-visible {
  background: rgba(0,0,0,.58); outline-offset: 3px;
}
#header-slider-container .tl-hero-v1:not(.tl-hero-animated) .tl-hero-controls { display: none; }
@media (max-width: 767px) {
  #header-slider-container .tl-hero-v1 { min-height: 500px; }
  #header-slider-container .tl-hero-heading,
  #header-slider-container .tl-hero-tagline {
    left: 50%; top: calc(50% - 120px);
    width: min(300px, calc(100% - 36px)); font-size: 20px;
  }
  #header-slider-container .tl-hero-message-area {
    left: 50%; top: calc(50% + 5px);
    width: min(300px, calc(100% - 36px));
    transform: translateX(-50%);
  }
  #header-slider-container .tl-hero-message { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #header-slider-container .tl-hero-video { display: none; }
  #header-slider-container .tl-hero-v1.tl-hero-animated .tl-hero-heading,
  #header-slider-container .tl-hero-v1.tl-hero-animated .tl-hero-message.is-active { opacity: 1; }
  #header-slider-container .tl-hero-control { transition: none; }
}

/* TURHANLAW_HERO_FIRST_PAINT_GUARD_V1_START */
/* CSS is in <head>, so this rule hides the text before its first paint.
   Once the Web Animations API starts, its opacity keyframes take precedence.
   With JavaScript disabled, (scripting: enabled) is false, preserving the
   original heading/first-message fallback. The JS sets .tl-hero-static when
   reduced motion is requested or Web Animations are unsupported. */
@media (scripting: enabled) {
  #header-slider-container .tl-hero-v1:not(.tl-hero-static) .tl-hero-heading,
  #header-slider-container .tl-hero-v1:not(.tl-hero-static) .tl-hero-message,
  #header-slider-container .tl-hero-v1:not(.tl-hero-static) .tl-hero-tagline {
    opacity: 0;
  }
}
/* TURHANLAW_HERO_FIRST_PAINT_GUARD_V1_END */
