/* ==========================================================================
   HOME HERO VARIANTS
   G — "Marketing you can measure": 3D wall of work + live result toasts
   F — "Your brand, at the center": logo with orbiting work and services
   ========================================================================== */

/* ---------- Shared hero pieces ---------- */
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(232, 234, 238, 0.14); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232, 234, 238, 0.8); }
.hero-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--ignite); box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.2); }
.hero-title { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(2.5rem, 5.5vw, 4.9rem); line-height: 1.08; letter-spacing: -0.03em; color: #f4f5f8; }
.hero-title em { font-style: italic; color: var(--ignite); padding-right: 0.06em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: rgba(232, 234, 238, 0.82); }
.hero-checks svg { width: 16px; height: 16px; color: var(--ignite); }
.hero-g.is-paused *, .hero-f.is-paused * { animation-play-state: paused !important; }

/* ---------- Creative cards (brand-style posts used in both heroes) ---------- */
/* The wrapper around each card is the size container, so cqw always means "% of the card width". */
.hg-tile, .hf-face { container-type: inline-size; }
.cr { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: 16px; padding: 9cqw; display: flex; flex-direction: column; gap: 6cqw; font-family: var(--f-display); line-height: 1.2; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cr--between { justify-content: space-between; }
.cr-h { margin: 0; font-stretch: 112%; font-weight: 800; font-size: 15cqw; line-height: 0.95; letter-spacing: -0.02em; }
.cr-m { font-family: var(--f-mono); font-size: 5.2cqw; letter-spacing: 0.1em; text-transform: uppercase; }
.cr-logo { width: 24cqw; height: auto; }
.cr-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 36%; }
.cr-target { position: absolute; right: -16cqw; bottom: -16cqw; width: 74cqw; height: 74cqw; border-radius: 50%; background: radial-gradient(circle, #e9433a 0 7cqw, #fff 7cqw 14cqw, #ff6200 14cqw 21cqw, #fff 21cqw 28cqw, #0b1f42 28cqw 37cqw); }
.cr-phone { border-radius: 24px; padding: 0; border: 5px solid #1b2b4d; background: linear-gradient(170deg, #234f9e 0%, #0b1f42 48%, #ff6200 100%); justify-content: space-between; }
.cr-phone__top { display: flex; flex-direction: column; gap: 5cqw; padding: 8cqw 8cqw 0; }
.cr-phone__bot { display: flex; flex-direction: column; gap: 3cqw; padding: 0 8cqw 9cqw; }
.cr-segs { display: flex; gap: 2cqw; }
.cr-segs i { flex: 1; height: 1.6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.35); }
.cr-segs i:first-child { background: #fff; }
.cr-ln { height: 2.4cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.4); }
.cr-bars { display: flex; align-items: flex-end; gap: 3cqw; height: 34cqw; }
.cr-bars i { flex: 1; border-radius: 2cqw 2cqw 0 0; background: rgba(255, 255, 255, 0.22); }
.cr-search { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 5cqw; border-radius: 99px; background: #f4f5f8; font-family: var(--f-body); font-size: 5.6cqw; color: #5a6b8c; }
.cr-rank { position: absolute; top: 7cqw; right: 7cqw; width: 14cqw; height: 14cqw; border-radius: 50%; background: #ff6200; color: #0b1f42; display: grid; place-items: center; font-weight: 800; font-size: 6cqw; }
.cr-sw { display: flex; gap: 4cqw; }
.cr-sw i { width: 16cqw; height: 16cqw; border-radius: 50%; }

/* ---------- Hero G ---------- */
.hero-g {
  --ts: 1;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(45% 60% at 78% 45%, rgba(35, 79, 158, 0.5), transparent 70%),
    radial-gradient(30% 40% at 72% 88%, rgba(255, 98, 0, 0.14), transparent 70%),
    var(--midnight);
}
.hg-stage { position: absolute; top: 0; bottom: 0; left: 43%; right: -18%; perspective: 1800px; transition: opacity 1.6s ease 0.1s; }
.js .hg-stage { opacity: 0; }
.hero-g.is-ready .hg-stage { opacity: 1; }
.hg-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--midnight) 0%, rgba(11, 31, 66, 0) 24%), linear-gradient(180deg, var(--midnight) 0%, rgba(11, 31, 66, 0) 30%, rgba(11, 31, 66, 0) 78%, var(--midnight) 100%); }
.hg-wall { position: absolute; left: 5%; top: -42%; display: flex; align-items: flex-start; gap: calc(18px * var(--ts)); transform: rotateX(26deg) rotateY(-22deg) rotateZ(11deg); }
.hg-stage:hover .hg-col { animation-play-state: paused; }
.hg-col { width: calc(196px * var(--ts)); margin-top: calc(var(--mt, 0) * 1px * var(--ts)); display: flex; flex-direction: column; gap: calc(18px * var(--ts)); padding-bottom: calc(18px * var(--ts)); animation: hg-up var(--d, 60s) linear infinite; will-change: transform; }
.hg-col--down { animation-name: hg-down; }
@keyframes hg-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hg-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hg-tile { height: calc(var(--h) * 1px * var(--ts)); flex-shrink: 0; }
.hg-content { position: relative; z-index: 3; }
.hg-text { max-width: 600px; display: flex; flex-direction: column; gap: 28px; }
.hg-rot { display: inline-block; height: 1.08em; overflow: hidden; vertical-align: bottom; }
.hg-rot__in { display: flex; flex-direction: column; animation: hg-rot 11s cubic-bezier(0.76, 0, 0.24, 1) infinite; }
.hg-rot__in em { display: block; height: 1.08em; }
@keyframes hg-rot { 0%, 21% { transform: translateY(0); } 25%, 46% { transform: translateY(-1.08em); } 50%, 71% { transform: translateY(-2.16em); } 75%, 96% { transform: translateY(-3.24em); } 100% { transform: translateY(-4.32em); } }
.hg-toast { position: absolute; z-index: 2; width: 300px; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(11, 31, 66, 0.74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none; animation: hg-toast 12s var(--ease-out) var(--dl, 0s) infinite; }
@keyframes hg-toast { 0% { opacity: 0; transform: translateY(18px) scale(0.96); } 5% { opacity: 1; transform: none; } 30% { opacity: 1; transform: none; } 35% { opacity: 0; transform: translateY(-10px) scale(0.98); } 100% { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.hg-toast--1 { left: 56%; top: 27%; }
.hg-toast--2 { left: 71%; top: 55%; }
.hg-toast--3 { left: 58%; top: 75%; }
.hg-toast__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ignite); color: var(--midnight); display: grid; place-items: center; }
.hg-toast__ic svg { width: 20px; height: 20px; }
.hg-toast b { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; }
.hg-toast div span { display: block; font-size: 0.82rem; color: rgba(232, 234, 238, 0.74); margin-top: 2px; }

@media (max-width: 900px) {
  .hero-g { --ts: 0.64; flex-direction: column; align-items: stretch; min-height: 0; padding: 112px 0 0; }
  .hg-content { order: 1; }
  .hg-stage { order: 2; }
  .hg-toasts { order: 3; }
  .hg-text { gap: 20px; }
  .hg-stage { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 420px; margin-top: 28px; overflow: hidden; }
  .hg-stage::after { background: linear-gradient(180deg, var(--midnight) 0%, rgba(11, 31, 66, 0) 26%, rgba(11, 31, 66, 0) 80%, var(--midnight) 100%); }
  .hg-wall { left: -4%; top: -60%; transform: rotateX(28deg) rotateY(-12deg) rotateZ(10deg); }
  .hg-col:nth-child(4) { display: none; }
  .hg-toast { left: 16px; right: 16px; top: auto; bottom: 64px; width: auto; }
  .hero-g .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-g .hero-actions .btn--ghost { justify-content: center; }
}

/* ---------- Hero F ---------- */
.hero-f {
  --r: 430px; --r2: 600px; --cw: 108px; --ch: 144px; --logo: 340px; --stage-h: 490px;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(22% 26% at 50% 40%, rgba(255, 98, 0, 0.2), transparent 70%),
    radial-gradient(60% 62% at 50% 40%, rgba(35, 79, 158, 0.45), transparent 75%),
    var(--midnight);
}
.hf-stage { position: relative; flex-shrink: 0; height: var(--stage-h); perspective: 1600px; perspective-origin: 50% 42%; transition: opacity 1.6s ease 0.1s; }
.js .hf-stage { opacity: 0; }
.hero-f.is-ready .hf-stage { opacity: 1; }
.hf-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.hf-ring, .hf-ring2 { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.hf-ring { transform: rotateX(-14deg); animation: hf-ring 64s linear infinite; }
.hf-ring2 { transform: rotateX(-7deg); animation: hf-ring2 90s linear infinite; }
@keyframes hf-ring { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(-360deg); } }
@keyframes hf-ring2 { from { transform: rotateX(-7deg) rotateY(0deg); } to { transform: rotateX(-7deg) rotateY(360deg); } }
.hf-orbit { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1 + var(--drop, 0px)); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 1px solid rgba(232, 234, 238, 0.14); transform: rotateX(90deg); pointer-events: none; }
.hf-orbit--outer { left: calc(var(--r2) * -1); top: calc(var(--r2) * -1 + var(--drop, 0px)); width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); border: 1.5px dashed rgba(255, 98, 0, 0.35); }
.hf-slot { position: absolute; left: calc(var(--cw) / -2); top: calc(var(--ch) / -2 + var(--drop, 0px)); width: var(--cw); height: var(--ch); transform-style: preserve-3d; transform: rotateY(var(--a)) translateZ(var(--r)); }
.hf-face { width: 100%; height: 100%; animation: hf-face 64s linear var(--dl, 0s) infinite; }
.hf-face .cr { border-radius: 12px; }
@keyframes hf-face {
  0% { transform: rotateY(0deg) rotateX(14deg) scale(1.14); opacity: 1; filter: blur(0); }
  25% { transform: rotateY(90deg) rotateX(14deg) scale(1); opacity: 0.85; }
  50% { transform: rotateY(180deg) rotateX(14deg) scale(0.88); opacity: 0.22; filter: blur(1.5px); }
  75% { transform: rotateY(270deg) rotateX(14deg) scale(1); opacity: 0.85; }
  100% { transform: rotateY(360deg) rotateX(14deg) scale(1.14); opacity: 1; filter: blur(0); }
}
.hf-cslot { position: absolute; left: 0; top: var(--drop, 0px); transform-style: preserve-3d; transform: rotateY(var(--a)) translateZ(var(--r2)); }
.hf-cface { animation: hf-chip 90s linear var(--dl, 0s) infinite; }
@keyframes hf-chip { 0% { transform: rotateY(0deg) rotateX(7deg); opacity: 1; } 50% { transform: rotateY(-180deg) rotateX(7deg); opacity: 0.18; } 100% { transform: rotateY(-360deg) rotateX(7deg); opacity: 1; } }
.hf-chip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(14, 36, 78, 0.92); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); font-weight: 600; font-size: 0.88rem; color: #fff; }
.hf-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ignite); box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.2); }
.hf-core { position: absolute; left: calc(var(--logo) / -2); top: calc(var(--logo) * -0.235); width: var(--logo); animation: hf-core 64s linear infinite; }
@keyframes hf-core { from { transform: rotateY(0deg) rotateX(14deg); } to { transform: rotateY(360deg) rotateX(14deg); } }
.hf-logo { display: block; width: 100%; height: auto; }
.js .hf-logo { clip-path: inset(0 100% 0 0); }
.hero-f.is-ready .hf-logo { animation: hf-reveal 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
@keyframes hf-reveal { to { clip-path: inset(0 0 0 0); } }
.hf-ping { position: absolute; left: 94.3%; top: 11.3%; width: calc(var(--logo) * 0.12); height: calc(var(--logo) * 0.12); margin: calc(var(--logo) * -0.06) 0 0 calc(var(--logo) * -0.06); border-radius: 50%; border: 2px solid var(--ignite); opacity: 0; }
.hero-f.is-ready .hf-ping { animation: hf-ping 2.6s var(--ease-out) 1.8s infinite; }
@keyframes hf-ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.hf-stage:hover .hf-ring, .hf-stage:hover .hf-ring2, .hf-stage:hover .hf-face, .hf-stage:hover .hf-cface, .hf-stage:hover .hf-core { animation-play-state: paused; }
.hf-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-top: 4px; }
.hf-content .hero-title { font-size: clamp(1.85rem, 3.4vw, 3rem); letter-spacing: -0.02em; text-transform: uppercase; }
.hf-content .hf-lead { max-width: none; white-space: nowrap; font-size: clamp(0.76rem, 0.96vw, 0.98rem); line-height: 1.5; }
@media (max-width: 1080px) { .hf-content .hf-lead { white-space: normal; max-width: 42rem; font-size: clamp(0.95rem, 1.5vw, 1.05rem); } }
/* Orbiting cards and service chips are links */
.hf-link { display: block; width: 100%; height: 100%; border-radius: 12px; cursor: pointer; transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.hf-link:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 2px var(--ignite), 0 20px 40px -12px rgba(255, 98, 0, 0.55); }
a.hf-chip { cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
a.hf-chip:hover { background: var(--ignite); border-color: var(--ignite); color: var(--midnight); }
a.hf-chip:hover i { background: var(--midnight); box-shadow: none; }
.hf-content .hero-actions { justify-content: center; }
.hf-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.hf-hint { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 234, 238, 0.55); }

@media (max-width: 1200px) {
  .hero-f { --r: 33vw; --r2: 45vw; --cw: 92px; --ch: 122px; --logo: 260px; --stage-h: 430px; }
}
@media (max-width: 700px) {
  .hero-f { --r: 40vw; --r2: 55vw; --cw: 64px; --ch: 86px; --logo: 170px; --stage-h: 330px; padding: 84px 0 56px; }
  .hf-chip { font-size: 11px; padding: 6px 10px 6px 8px; gap: 6px; }
  .hf-chip i { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.2); }
  .hf-foot { display: none; }
  .hero-f .hero-actions { flex-wrap: nowrap; width: 100%; max-width: 420px; gap: 8px; }
  .hero-f .hero-actions .btn { flex: 1 1 0; min-width: 0; height: 52px; gap: 8px; padding: 0 6px 0 16px; font-size: 0.9rem; justify-content: space-between; }
  .hero-f .hero-actions .btn__icon { width: 32px; height: 32px; }
  .hero-f .hero-actions .btn--ghost { justify-content: center; padding: 0 16px; }
  /* Flatter orbit on phones: logo stays centred, cards ride a little lower so they pass under it */
  .hero-f { --drop: 40px; }
  .hf-ring { animation-name: hf-ring-m; }
  .hf-ring2 { animation-name: hf-ring2-m; }
  .hf-face { animation-name: hf-face-m; }
  .hf-cface { animation-name: hf-chip-m; }
  .hf-core { animation-name: hf-core-m; }
}
@keyframes hf-ring-m { from { transform: rotateX(-6deg) rotateY(0deg); } to { transform: rotateX(-6deg) rotateY(-360deg); } }
@keyframes hf-ring2-m { from { transform: rotateX(-4deg) rotateY(0deg); } to { transform: rotateX(-4deg) rotateY(360deg); } }
@keyframes hf-core-m { from { transform: rotateY(0deg) rotateX(6deg); } to { transform: rotateY(360deg) rotateX(6deg); } }
@keyframes hf-chip-m { 0% { transform: rotateY(0deg) rotateX(4deg); opacity: 1; } 50% { transform: rotateY(-180deg) rotateX(4deg); opacity: 0.18; } 100% { transform: rotateY(-360deg) rotateX(4deg); opacity: 1; } }
@keyframes hf-face-m {
  0% { transform: rotateY(0deg) rotateX(6deg) scale(1.08); opacity: 1; filter: blur(0); }
  25% { transform: rotateY(90deg) rotateX(6deg) scale(1); opacity: 0.85; }
  50% { transform: rotateY(180deg) rotateX(6deg) scale(0.88); opacity: 0.22; filter: blur(1.5px); }
  75% { transform: rotateY(270deg) rotateX(6deg) scale(1); opacity: 0.85; }
  100% { transform: rotateY(360deg) rotateX(6deg) scale(1.08); opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hg-col, .hg-rot__in, .hg-toast, .hf-ring, .hf-ring2, .hf-face, .hf-cface, .hf-core, .hf-ping { animation: none !important; }
  .hg-toast--1 { opacity: 1; }
  .hf-face { transform: rotateY(calc(var(--a) * -1)) rotateX(14deg); }
  .hf-cface { transform: rotateY(calc(var(--a) * -1)) rotateX(7deg); }
  .js .hf-logo { clip-path: none; }
  .js .hg-stage, .js .hf-stage { opacity: 1; }
}

/* ================= Recent campaigns · Warp Carousel (WebGL) ================= */
.warp-section { overflow: hidden; padding-bottom: clamp(56px, 7vw, 104px); }
.warp-stage { overflow: hidden; margin-top: clamp(0px, 1vw, 16px); }
.warp { width: 100%; height: clamp(420px, 54vw, 740px); outline: none; }
.warp:focus-visible { outline: 2px solid var(--ignite); outline-offset: -3px; }
.warp-section .carousel-controls { margin-top: clamp(20px, 2.4vw, 32px); }
@media (max-width: 700px) {
  /* wider than the screen so the front card stays large; the side flares run off the edges */
  .warp { width: 150vw; margin-left: -25vw; height: max(360px, 92vw); }
}
