/* ============================================================
   ADSage India — Home v3 stylesheet (loaded after styles.css)
   Complete homepage redesign. Scoped under .home-v3 so it can't
   leak into the rest of the site. Animations are driven by
   GSAP + ScrollTrigger / Swiper / CountUp (industry standard).
   ============================================================ */

.home-v3 {
  --hv-ink: #16110d;
  --hv-paper: #faf7f3;
  --hv-panel: #1a1410;
  --hv-accent: #ff6100;
  --hv-accent-2: #ff9a4d;
  --hv-line: #e9e2d9;
}

/* Respect reduced motion: GSAP also checks this, but ensure base visibility */
@media (prefers-reduced-motion: reduce) {
  .home-v3 [data-animate] { opacity: 1 !important; transform: none !important; }
}
/* Pre-animation state — JS removes via GSAP; if JS fails, a fallback timer shows them */
/* Animation is now fully driven by GSAP via inline styles (fromTo).
   Content is visible by default; if GSAP fails to load, nothing is hidden. */

/* ---------------- HERO ---------------- */
.hv-hero {
  position: relative;
  background: var(--hv-ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(96px, 16vh, 180px) 0 0;
  isolation: isolate;
}
/* animated gradient aurora behind hero */
.hv-hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 80%;
  background:
    radial-gradient(40% 60% at 18% 30%, rgba(255,97,0,0.55), transparent 70%),
    radial-gradient(45% 55% at 82% 20%, rgba(255,154,77,0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: hv-drift 16s ease-in-out infinite alternate;
}
@keyframes hv-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(4%, 6%, 0) scale(1.12); }
}
.hv-hero-inner { position: relative; }
.hv-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hv-accent-2); font-weight: 600;
  padding: 7px 14px; border: 1px solid rgba(255,154,77,0.35);
  border-radius: 999px; background: rgba(255,97,0,0.08);
}
.hv-hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hv-accent);
  box-shadow: 0 0 0 0 rgba(255,97,0,0.6); animation: hv-ping 2.2s ease-out infinite;
}
@keyframes hv-ping {
  0% { box-shadow: 0 0 0 0 rgba(255,97,0,0.55); }
  70%,100% { box-shadow: 0 0 0 10px rgba(255,97,0,0); }
}
.hv-hero-h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(33px, 6.1vw, 87px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  max-width: 16ch;
}
.hv-hero-h1 .accent { color: var(--hv-accent); }
/* each headline line wrapped for mask reveal */
.hv-line-mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hv-line-inner { display: block; }

.hv-hero-sub {
  margin: 28px 0 0; max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6;
  color: rgba(255,255,255,0.74);
}
.hv-hero-sub b { color: #fff; font-weight: 600; }
.hv-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hv-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.hv-btn-primary { background: var(--hv-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,97,0,0.7); }
.hv-btn-primary:hover { transform: translateY(-2px); background: #fff; color: var(--hv-ink); }
.hv-btn-line { border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.hv-btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hv-hero-note { font-size: 13.5px; color: rgba(255,255,255,0.55); margin: 22px 0 0; }
.hv-hero-note .stars { color: var(--hv-accent-2); letter-spacing: 2px; }

/* hero foot marquee strip */
.hv-hero-strip {
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; overflow: hidden; position: relative;
}
.hv-strip-track {
  display: inline-flex; gap: 40px; white-space: nowrap; will-change: transform;
}
.hv-strip-track span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.6vw, 19px); color: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 40px;
}
.hv-strip-track span::after { content: "✦"; color: var(--hv-accent); font-size: 13px; }

/* ---------------- METRICS BAND ---------------- */
.hv-metrics {
  background: var(--hv-paper);
  padding: clamp(56px, 8vh, 96px) 0;
  border-bottom: 1px solid var(--hv-line);
}
.hv-metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.hv-metric { text-align: left; }
.hv-metric .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em;
  color: var(--hv-ink);
}
.hv-metric .num .suf { color: var(--hv-accent); }
.hv-metric .lbl { margin-top: 12px; font-size: 14.5px; color: #6b6258; line-height: 1.5; max-width: 22ch; }
.hv-metric + .hv-metric { border-left: 1px solid var(--hv-line); padding-left: 28px; }

/* ---------------- BENTO SERVICES ---------------- */
.hv-services { padding: clamp(72px, 11vh, 130px) 0; background: #fff; }
.hv-head { max-width: 760px; margin: 0 0 48px; }
.hv-head .eyebrow {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hv-accent); font-weight: 700;
}
.hv-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 14px 0 0; color: var(--hv-ink);
}
.hv-head h2 .ital { font-style: italic; color: var(--hv-accent); font-weight: 700; }
.hv-head p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.6; color: #5e564c; max-width: 60ch; }

.hv-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
}
.hv-tile {
  position: relative; overflow: hidden;
  border: 1px solid var(--hv-line); border-radius: 20px;
  padding: 26px; background: var(--hv-paper);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  text-decoration: none; color: var(--hv-ink);
}
.hv-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(22,17,13,0.25); border-color: var(--hv-accent); }
.hv-tile .tile-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255,97,0,0.1); color: var(--hv-accent);
  margin-bottom: auto;
}
.hv-tile .tile-ico svg { width: 24px; height: 24px; }
.hv-tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 22px 0 6px; letter-spacing: -0.01em; }
.hv-tile p { font-size: 14px; line-height: 1.55; color: #6b6258; margin: 0; }
.hv-tile .tile-arrow { margin-top: 16px; color: var(--hv-accent); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
/* spans */
.hv-tile.span-3 { grid-column: span 3; }
.hv-tile.span-2 { grid-column: span 2; }
.hv-tile.span-4 { grid-column: span 4; }
.hv-tile.tall { grid-row: span 2; }
/* feature tile (dark) */
.hv-tile.feature {
  background: var(--hv-panel); color: #fff; border-color: #2a2018;
}
.hv-tile.feature .tile-ico { background: rgba(255,97,0,0.2); }
.hv-tile.feature p { color: rgba(255,255,255,0.7); }
.hv-tile.feature::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(255,97,0,0.4), transparent 70%); filter: blur(30px);
}

/* ---------------- HORIZONTAL WORK RAIL ---------------- */
.hv-work { background: var(--hv-ink); color: #fff; padding: clamp(72px,11vh,130px) 0; overflow: hidden; }
.hv-work .hv-head h2 { color: #fff; }
.hv-work .hv-head p { color: rgba(255,255,255,0.65); }
.hv-rail-wrap { position: relative; }
.hv-rail {
  display: flex; gap: 22px; padding: 8px 0 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--hv-accent) transparent;
}
.hv-rail::-webkit-scrollbar { height: 6px; }
.hv-rail::-webkit-scrollbar-thumb { background: var(--hv-accent); border-radius: 99px; }
.hv-rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
.hv-case {
  flex: 0 0 min(86vw, 420px); scroll-snap-align: start;
  background: #221a13; border: 1px solid #2f241a; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.hv-case:hover { transform: translateY(-4px); border-color: var(--hv-accent); }
.hv-case-top {
  aspect-ratio: 16/9; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; padding: 22px;
  line-height: 1.2;
}
.hv-case-top.g1 { background: linear-gradient(135deg, #ff6100, #ff9a4d); }
.hv-case-top.g2 { background: linear-gradient(135deg, #1a1410, #ff6100); }
.hv-case-top.g3 { background: linear-gradient(135deg, #2a1a0f, #ff9a4d); }
.hv-case-top.g4 { background: linear-gradient(135deg, #ff6100, #3a2414); }
.hv-case-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hv-case-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hv-case-tags span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.hv-case-tags span.svc { background: rgba(255,97,0,0.18); color: var(--hv-accent-2); }
.hv-case h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; line-height: 1.25; }
.hv-case .res { display: flex; align-items: baseline; gap: 10px; }
.hv-case .res strong { font-family: var(--font-display); font-size: 30px; color: var(--hv-accent); letter-spacing: -0.02em; }
.hv-case .res span { font-size: 13px; color: rgba(255,255,255,0.6); }
.hv-case .clink { margin-top: auto; color: #fff; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.hv-rail-hint { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 10px; }

/* ---------------- PROCESS RIBBON ---------------- */
.hv-process { background: var(--hv-paper); padding: clamp(72px,11vh,130px) 0; }
.hv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.hv-step { padding: 28px 26px 28px 0; border-top: 2px solid var(--hv-ink); position: relative; }
.hv-step .sn { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--hv-accent); letter-spacing: 0.04em; }
.hv-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 16px 0 8px; color: var(--hv-ink); }
.hv-step p { font-size: 14.5px; line-height: 1.55; color: #5e564c; margin: 0; max-width: 26ch; }
.hv-step::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--hv-accent);
}

/* ---------------- CTA ---------------- */
.hv-cta { padding: clamp(64px,9vh,110px) 0; background: #fff; }
.hv-cta-box {
  position: relative; overflow: hidden;
  background: var(--hv-panel); color: #fff; border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.hv-cta-box::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 50%; height: 120%;
  background: radial-gradient(circle, rgba(255,97,0,0.5), transparent 65%); filter: blur(40px);
}
.hv-cta-box h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,4vw,46px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; position: relative; }
.hv-cta-box p { margin: 16px 0 0; color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.6; position: relative; }
.hv-cta-actions { display: flex; flex-direction: column; gap: 14px; position: relative; }

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hv-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .hv-metric + .hv-metric { border-left: none; padding-left: 0; }
  .hv-metric:nth-child(even) { border-left: 1px solid var(--hv-line); padding-left: 24px; }
  .hv-bento { grid-template-columns: repeat(4, 1fr); }
  .hv-tile.span-3 { grid-column: span 2; }
  .hv-tile.span-4 { grid-column: span 4; }
  .hv-tile.span-2 { grid-column: span 2; }
  .hv-steps { grid-template-columns: repeat(2, 1fr); }
  .hv-cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hv-metrics-grid { grid-template-columns: 1fr 1fr; }
  .hv-bento { grid-template-columns: 1fr 1fr; }
  .hv-tile.span-3, .hv-tile.span-4, .hv-tile.span-2, .hv-tile.tall { grid-column: span 2; grid-row: auto; }
  .hv-steps { grid-template-columns: 1fr; }
  .hv-hero-h1 { font-size: clamp(30px, 9.7vw, 45px); }
}

/* ============================================================
   LIGHT-MODE OVERRIDES — Hero, Feature service tile, Case studies
   Removes dark backgrounds so content reads clearly on light.
   Appended last so these win over the dark rules above.
   ============================================================ */

/* ---------- HERO: dark -> light paper ---------- */
.hv-hero {
  background: var(--hv-paper);
  color: var(--hv-ink);
}
.hv-hero::before {
  /* keep a soft warm aurora but lighter so text stays crisp */
  background:
    radial-gradient(40% 60% at 18% 30%, rgba(255,97,0,0.16), transparent 70%),
    radial-gradient(45% 55% at 82% 20%, rgba(255,154,77,0.12), transparent 70%);
}
.hv-hero-eyebrow {
  color: var(--hv-accent);
  border-color: rgba(255,97,0,0.30);
  background: rgba(255,97,0,0.06);
}
.hv-hero-h1 { color: var(--hv-ink); }
.hv-hero-sub { color: #5e564c; }
.hv-hero-sub b { color: var(--hv-ink); }
.hv-hero-note { color: #6b6258; }
.hv-btn-primary:hover { background: var(--hv-ink); color: #fff; }
.hv-btn-line { border-color: rgba(22,17,13,0.25); color: var(--hv-ink); }
.hv-btn-line:hover { border-color: var(--hv-ink); background: rgba(22,17,13,0.05); }
.hv-hero-strip {
  border-top: 1px solid var(--hv-line);
  border-bottom: 1px solid var(--hv-line);
}
.hv-strip-track span { color: #8a8076; }

/* ---------- FEATURE SERVICE TILE: dark -> light ---------- */
.hv-tile.feature {
  background: #fff;
  color: var(--hv-ink);
  border-color: var(--hv-line);
  box-shadow: 0 1px 2px rgba(22,17,13,0.04), 0 10px 30px -16px rgba(22,17,13,0.12);
}
.hv-tile.feature .tile-ico { background: rgba(255,97,0,0.12); }
.hv-tile.feature p { color: #5e564c; }
.hv-tile.feature::after {
  background: radial-gradient(circle, rgba(255,97,0,0.16), transparent 70%);
}

/* ---------- CASE STUDIES (WORK RAIL): dark -> light ---------- */
.hv-work { background: var(--hv-paper); color: var(--hv-ink); }
.hv-work .hv-head h2 { color: var(--hv-ink); }
.hv-work .hv-head p { color: #5e564c; }
.hv-case {
  background: #fff;
  border-color: var(--hv-line);
  box-shadow: 0 1px 2px rgba(22,17,13,0.04), 0 12px 32px -18px rgba(22,17,13,0.16);
}
.hv-case-tags span { background: #f4efe9; color: #6b6258; }
.hv-case-tags span.svc { background: rgba(255,97,0,0.12); color: var(--hv-accent); }
.hv-case h3 { color: var(--hv-ink); }
.hv-case .res span { color: #6b6258; }
.hv-case .clink { color: var(--hv-ink); }
.hv-rail-hint { color: #8a8076; }
.hv-rail::-webkit-scrollbar-track { background: rgba(22,17,13,0.06); }
/* keep the gradient image tops (g1-g4) as-is; their text stays white on orange */

/* ============================================================
   HOMEPAGE v4 ADDITIONS
   Hero holo cinematic carousel, brands marquee, enriched
   feature tile, contact cards. Light theme, on-brand.
   ============================================================ */

/* ---- Hero two-column ---- */
.hv-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hv-hero-copy { min-width: 0; }

/* ---- Hero Holographic Cinematic Carousel ---- */
.hv-hero-holo { position: relative; display: grid; place-items: center; }
.holo-cine {
  position: relative;
  width: 100%; max-width: 460px;
  height: clamp(320px, 40vw, 420px);
  perspective: 1400px;
  transform-style: preserve-3d;
  margin-inline: auto;
}
.holo-cine-slide {
  position: absolute; top: 50%; left: 50%;
  width: min(240px, 62%); aspect-ratio: 5 / 6;
  transform: translate(-50%, -50%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s ease, filter .7s ease;
  text-decoration: none; will-change: transform, opacity, filter; z-index: 1;
}
.holo-cine-slide:not(.is-active) { pointer-events: none; }
.holo-mini {
  position: relative; width: 100%; height: 100%; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,241,232,.9));
  border: 1px solid rgba(255,97,0,.4);
  box-shadow: 0 12px 26px -16px rgba(217,78,0,.35), inset 0 1px 0 rgba(255,255,255,.9);
  display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  padding: 26px 20px;
}
.holo-mini-ic {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff6100, #ff9a4d);
  box-shadow: 0 14px 30px -10px rgba(217,78,0,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.holo-mini-ic svg { width: 38px; height: 38px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.holo-mini b { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #16110d; line-height: 1.2; }
.holo-mini small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hv-accent); font-weight: 700; }
.holo-bars2 { display: inline-flex; gap: 5px; align-items: flex-end; height: 18px; }
.holo-bars2 i { width: 5px; border-radius: 3px; background: linear-gradient(180deg,#ff6100,#ff9a4d); animation: holoBars2 1.4s ease-in-out infinite; }
.holo-bars2 i:nth-child(1){height:55%;animation-delay:0s}
.holo-bars2 i:nth-child(2){height:100%;animation-delay:.2s}
.holo-bars2 i:nth-child(3){height:72%;animation-delay:.4s}
@keyframes holoBars2 { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }
/* stage floor fx */
.holo-cine-stagefx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.holo-platform2 {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%) rotateX(72deg);
  width: 60%; height: 70px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,97,0,.5), rgba(255,154,77,.2) 48%, transparent 72%);
  filter: blur(3px);
}
.holo-grid2 {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%) rotateX(74deg);
  width: 66%; height: 130px;
  background-image: linear-gradient(rgba(255,97,0,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,97,0,.28) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 26%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 26%, transparent 72%);
  opacity: .5;
}
.holo-cine-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.holo-cine-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(22,17,13,.2); cursor: pointer; padding: 0; transition: background .25s, width .25s; }
.holo-cine-dots button.active { background: var(--hv-accent); width: 22px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .holo-bars2 i { animation: none; }
  .holo-cine-slide { transition: opacity .3s ease; }
}

/* ---- Brands marquee ---- */
.hv-brands { background: #fff; padding: clamp(40px, 6vh, 70px) 0; border-bottom: 1px solid var(--hv-line); border-top: 1px solid var(--hv-line); }
.hv-brands-label { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8a8076; font-weight: 600; margin: 0 0 26px; }
.hv-brands-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hv-brands-track { display: flex; width: max-content; align-items: center; will-change: transform; animation: hv-brands-scroll 38s linear infinite; }
.hv-brands-set { display: inline-flex; align-items: center; gap: clamp(38px, 4.8vw, 67px); padding-right: clamp(38px, 4.8vw, 67px); flex: 0 0 auto; }
.hv-brands-track img { height: clamp(48px, 5.4vw, 67px); width: clamp(166px, 17.6vw, 224px); object-fit: contain; opacity: .62; filter: grayscale(100%); transition: opacity .3s ease, filter .3s ease; flex: 0 0 auto; }
.hv-brands-track img:hover { opacity: 1; filter: grayscale(0%); }
.hv-brands-marquee:hover .hv-brands-track { animation-play-state: paused; }
@keyframes hv-brands-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hv-brands-track { animation: none; } .hv-brands-set { flex-wrap: wrap; justify-content: center; } .hv-brands-set[aria-hidden="true"] { display: none; } }

/* ---- Services header centred + foot ---- */
.hv-head-center { text-align: center; margin-inline: auto; max-width: 760px; }
.hv-head-center .eyebrow { justify-content: center; display: inline-flex; }
.hv-services-foot { text-align: center; margin-top: 40px; }

/* ---- Enriched feature tile ---- */
.tile-feature-body { display: flex; flex-direction: column; gap: 12px; }
.tile-badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hv-accent); background: rgba(255,97,0,.1); padding: 5px 11px; border-radius: 999px; }
.tile-feature-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.tile-feature-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #4a423a; line-height: 1.4; }
.tile-feature-list li svg { color: var(--hv-accent); flex: 0 0 auto; }
.tile-feature-cta { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.tile-feature-sub { font-size: 12.5px; color: #8a8076; }

/* ---- Case studies grid (replaces fragile rail) ---- */
.hv-cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.hv-case-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hv-work-foot { margin-top: 36px; text-align: center; }
.hv-inline-link { color: var(--hv-accent); font-weight: 600; }
@media (max-width: 980px) { .hv-cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hv-cases-grid { grid-template-columns: 1fr; } }

/* ---- Contact cards in CTA ---- */
.hv-cta-box { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hv-cta-box h2, .hv-cta-box h2 .ital { color: #fff; }
.hv-cta-box h2 .ital { color: var(--hv-accent-2); }
.hv-cta-box p { color: rgba(255,255,255,0.74); }
.hv-cta-lead .eyebrow { color: var(--hv-accent-2); display: inline-flex; }
.hv-contact-cards { display: grid; gap: 12px; }
.hv-contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); text-decoration: none; transition: background .25s ease, border-color .25s ease, transform .2s ease; }
.hv-contact-card:hover { background: rgba(255,97,0,0.14); border-color: var(--hv-accent); transform: translateY(-2px); }
.hv-contact-ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: rgba(255,97,0,0.16); color: var(--hv-accent-2); }
.hv-contact-ic svg { width: 22px; height: 22px; }
.hv-contact-meta { display: flex; flex-direction: column; gap: 2px; }
.hv-contact-meta strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.hv-contact-meta span { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ---- Responsive: stack hero + cta on tablet/mobile ---- */
@media (max-width: 900px) {
  .hv-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hv-hero-holo { order: 2; margin-top: 6px; }
  .holo-cine { height: 340px; }
  .hv-cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .holo-cine { height: 300px; }
  .holo-cine-slide { width: 200px; }
}

/* ============================================================
   V9.4 — HOME HERO PHOTO WASH
   The hero is light paper with near-black copy and translucent
   holo cards. A full-bleed dark photo would make those cards
   disappear, so the photo goes in as a low-opacity warm wash
   instead, masked away from the headline column.

   Measured: at this opacity the lightest bokeh over paper lands
   around rgb(251,238,220) and the darkest around rgb(208,203,198).
   Near-black body copy clears WCAG AA on both by a wide margin,
   so the wash costs nothing in legibility.

   Path is root-relative for the same reason as the page heroes:
   a url() in a custom property resolves against /css/, not the page.
   ============================================================ */

.hv-hero.has-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;                 /* under the copy and the holo stage */
  background-image: var(--hero-lg);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.20;
  pointer-events: none;
  /* fade out across the headline column so copy sits on clean paper */
  -webkit-mask-image: linear-gradient(95deg,
      transparent 0%, rgba(0,0,0,0.25) 34%, rgba(0,0,0,0.9) 68%, #000 100%);
          mask-image: linear-gradient(95deg,
      transparent 0%, rgba(0,0,0,0.25) 34%, rgba(0,0,0,0.9) 68%, #000 100%);
}

@media (max-width: 800px) {
  .hv-hero.has-wash::after {
    background-image: var(--hero-sm);
    opacity: 0.14;             /* copy reflows full-width on mobile */
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
            mask-image: linear-gradient(180deg,
        transparent 0%, rgba(0,0,0,0.35) 45%, #000 100%);
  }
}
