/* =========================================================
   Home hero (layout inspired by elementis.co/the-story)
   full-screen image + slow zoom, giant sliding headline,
   bottom rule with scroll arrow + tagline
   ========================================================= */
.hh{
  position:relative;
  display:block !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  height:100vh !important;
  height:100svh !important;
  min-height:560px;
  overflow:hidden;
  background:#0e1524;
  color:#fff;
  isolation:isolate;
}
.hh-media{
  position:absolute; inset:0; z-index:-2;
  display:block;
  width:100% !important; height:100% !important; max-width:none !important;
  object-fit:cover; object-position:center;
  filter:brightness(1.05) saturate(1.05);
  transform:scale(1.08);
  animation:hh-zoom 24s ease-in-out infinite alternate;
}
@keyframes hh-zoom{ from{ transform:scale(1.08) translate3d(0,0,0); } to{ transform:scale(1.18) translate3d(-1.5%,-1%,0); } }
.hh::after{               /* readability shade */
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(14,21,36,.45) 0%, rgba(14,21,36,0) 30%, rgba(14,21,36,.1) 58%, rgba(14,21,36,.78) 100%),
    radial-gradient(70% 60% at 85% 10%, rgba(241,81,27,.25), rgba(241,81,27,0) 60%);
}

/* giant sliding headline */
.hh-marquee{
  position:absolute;
  left:0; right:0;
  bottom:150px;
  overflow:hidden;
  white-space:nowrap;
  pointer-events:none;
}
.hh-track{
  display:inline-flex;
  animation:hh-slide 38s linear infinite;
  will-change:transform;
}
.hh-track span{
  display:inline-flex;
  align-items:center;
  padding-right:.35em;
  font-family:'Inter Tight', 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  font-size:clamp(84px, 11vw, 190px) !important;
  line-height:1 !important;
  font-weight:400 !important;
  letter-spacing:-.035em !important;
  color:#fff;
}
.hh-track span::after{
  content:"";
  display:inline-block;
  width:.14em; height:.14em;
  margin-left:.35em;
  border-radius:50%;
  background:#f1511b;
  transform:translateY(.05em);
}
@keyframes hh-slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* bottom rule */
.hh-bottom{
  position:absolute;
  left:48px; right:48px; bottom:0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  padding:22px 0 30px;
  border-top:1px solid rgba(255,255,255,.35);
}
.hh-down{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:50%;
  color:#fff !important;
  transition:background .25s ease, transform .25s ease;
}
.hh-down svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; animation:hh-bob 2.4s ease-in-out infinite; }
.hh-down:hover{ background:rgba(255,255,255,.12); }
@keyframes hh-bob{ 0%,100%{ transform:translateY(-2px); } 50%{ transform:translateY(4px); } }
.hh-tag{
  max-width:360px;
  margin:0 !important;
  text-align:center !important;
  font-size:17px !important;
  line-height:1.4 !important;
  color:#fff !important;
}
.hh-meta{
  justify-self:end;
  margin:0 !important;
  font-size:12px !important;
  font-weight:600 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
  color:rgba(255,255,255,.75) !important;
}

/* ---------- transparent header over the hero (home page only) ---------- */
.tph .tph-logo-w{ display:none; }
body.tph-over:not(.tph-solid) .tph .tph-bar{
  background:transparent;
  border-bottom-color:rgba(255,255,255,.18);
}
body.tph-over:not(.tph-solid) .tph .tph-bar .tph-logo-d{ display:none; }
body.tph-over:not(.tph-solid) .tph .tph-bar .tph-logo-w{ display:block; }
body.tph-over:not(.tph-solid) .tph .tph-menu-btn{ color:#fff !important; }
body.tph-over:not(.tph-solid) .tph .tph-menu-btn:hover{ background:rgba(255,255,255,.12); }
body.tph-over .tph .tph-bar{ transition:background .35s ease, border-color .35s ease; }

/* ---------- phones ---------- */
@media screen and (max-width:700px){
  .hh{ min-height:520px; }
  .hh-marquee{ bottom:190px; }
  .hh-track span{ font-size:24vw !important; }
  .hh-bottom{ left:20px; right:20px; grid-template-columns:auto 1fr; padding:18px 0 24px; }
  .hh-tag{ text-align:left !important; font-size:15px !important; }
  .hh-meta{ grid-column:1 / -1; justify-self:start; }
}

@media (prefers-reduced-motion: reduce){
  .hh-media,.hh-track,.hh-down svg{ animation:none; }
}

/* keep hero text white even against older mobile rules */
html body .hh .hh-tag{ color:#fff !important; opacity:1 !important; }
html body .hh .hh-meta{ color:rgba(255,255,255,.75) !important; opacity:1 !important; }
@media screen and (max-width:700px){ html body .hh .hh-meta{ display:none !important; } }

/* ===== white-based hero with black text ===== */
html body .hh{ background:#fff !important; color:#0e1524; }
html body .hh::after{
  background:
    radial-gradient(50% 55% at 6% 96%, rgba(6,183,174,.10), rgba(6,183,174,0) 62%) !important;
}
html body .hh .hh-track span{ color:#0e1524 !important; }
html body .hh .hh-bottom{ border-top-color:rgba(14,21,36,.18); }
html body .hh .hh-down{ color:#0e1524 !important; }
html body .hh .hh-down:hover{ background:rgba(14,21,36,.06); }
html body .hh .hh-tag{ color:#0e1524 !important; }
html body .hh .hh-meta{ color:#5d6472 !important; }
.hh{ height:calc(100vh - 72px) !important; height:calc(100svh - 72px) !important; margin-top:72px !important; }
@media screen and (max-width:700px){ .hh{ height:calc(100svh - 64px) !important; margin-top:64px !important; } }

/* ===== animated line art (behind the headline) ===== */
.hh-lines{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:-1;
  pointer-events:none;
  overflow:visible;
}
.hh-line{
  fill:none;
  stroke:#0e1524;
  stroke-opacity:.14;
  stroke-width:1.2;
  vector-effect:non-scaling-stroke;
  stroke-dasharray:1000;
  stroke-dashoffset:1000;
  animation:hh-draw 2.6s cubic-bezier(.65,0,.25,1) forwards, hh-flow 14s linear 2.8s infinite;
}
.hh-l2{ animation-delay:.15s, 2.95s; }
.hh-l3{ animation-delay:.3s, 3.1s; }
.hh-l4{ animation-delay:.45s, 3.25s; }
.hh-l5{ animation-delay:.6s, 3.4s; }
.hh-l6{ animation-delay:.2s, 3s; stroke-opacity:.1; }
.hh-accent{ stroke:#06b7ae; stroke-opacity:.55; stroke-width:1.5; }
@keyframes hh-draw{ to{ stroke-dashoffset:0; } }
/* after drawing, a long dash keeps travelling along each line */
@keyframes hh-flow{
  0%  { stroke-dasharray:620 380; stroke-dashoffset:0; }
  100%{ stroke-dasharray:620 380; stroke-dashoffset:-2000; }
}
.hh-node{
  fill:#0e1524;
  opacity:0;
  animation:hh-node-in .6s ease 2.4s forwards, hh-pulse 3.2s ease-in-out 3s infinite;
  transform-box:fill-box; transform-origin:center;
}
.hh-node2{ fill:#06b7ae; animation-delay:2.7s, 3.4s; }
@keyframes hh-node-in{ to{ opacity:.55; } }
@keyframes hh-pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.8); } }

@media screen and (max-width:700px){
  .hh-line{ stroke-width:1; }
}
@media (prefers-reduced-motion: reduce){
  .hh-line{ animation:none; stroke-dashoffset:0; stroke-dasharray:none; }
  .hh-node{ animation:none; opacity:.55; }
}

/* removed: bottom divider line, teal glow, teal dot */
html body .hh .hh-bottom{ border-top:0 !important; }
html body .hh::after{ background:none !important; }
.hh-node2{ display:none; }
