/**
 * /try-engage redesign. Loaded after style.css and the inline form-card
 * block, so it overrides both. Everything is scoped to this page.
 * Two fonts only: Space Grotesk (display) + Inter (body).
 */

:root {
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #08080f;
  --bg-2: #0d0d18;
  --text: #f4f2fb;
  --text-dim: #b4b0c6;
  --text-faint: #8a86a0;
  --purple: #7b4ff5;
  --purple-hi: #a78bfa;
  --line: rgba(255, 255, 255, 0.1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
}

html {
  scroll-behavior: smooth;
}

body[data-page="try-engage"] {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body[data-page="try-engage"] h1,
body[data-page="try-engage"] h2,
body[data-page="try-engage"] h3,
body[data-page="try-engage"] .te-step-num,
body[data-page="try-engage"] .te-cap strong,
body[data-page="try-engage"] .te-wm {
  font-family: var(--font-display);
}

.te-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.te-h2 {
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: left;
  margin: 0 0 20px;
  text-wrap: balance;
}

.te-h3 {
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.te-lede,
.te-how-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 560px;
}

/* ---------------------------------------------------------------- */
/* Header: transparent at top, blurred once scrolled (motion.js)     */
/* ---------------------------------------------------------------- */

body[data-page="try-engage"] .site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

body[data-page="try-engage"] .site-header.is-scrolled {
  background: rgba(8, 8, 15, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}

body[data-page="try-engage"] .site-header-logo {
  /* the logo is a dark mark on transparent; keep it legible on dark */
  filter: brightness(0) invert(1);
}

body[data-page="try-engage"] .site-header-cta {
  font-family: var(--font-display);
  border-radius: 999px;
  padding: 10px 20px;
  position: relative;
  overflow: hidden;
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

.te-hero {
  position: relative;
  background: var(--bg);
  padding: clamp(32px, 6vw, 72px) 0 var(--section-y);
  overflow: hidden;
  isolation: isolate;
}

.te-glow {
  position: absolute;
  top: 4%;
  right: -10%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(123, 79, 245, 0.55), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(236, 72, 153, 0.28), transparent 70%),
    radial-gradient(closest-side at 50% 80%, rgba(56, 189, 248, 0.22), transparent 70%);
  filter: blur(40px);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: te-glow 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes te-glow {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  100% { transform: translate3d(-6%, 8%, 0) scale(1.15) rotate(18deg); }
}

.te-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 8px;
}

.te-eyebrow-dark {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-hi);
  padding: 7px 14px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  background: rgba(123, 79, 245, 0.1);
  margin: 0 0 24px;
}

body[data-page="try-engage"] .te-hero-copy h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 1rem + 7.2vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: left;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}

.te-hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 540px;
}

.te-payoff {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.3;
  color: #fff;
  margin: 0 0 20px;
}

.te-payoff-line2 {
  display: inline-block;
  color: var(--purple-hi);
  margin-top: 2px;
}

.te-trust-line {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
  margin: 0 0 24px;
}

.te-cta-dark,
.te-cta {
  position: relative;
  overflow: hidden;
}

.te-cta-dark {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 18px 40px -14px rgba(123, 79, 245, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.te-cta-dark:hover {
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -14px rgba(123, 79, 245, 0.95);
}

/* hover shine shared by every button */
.te-cta-dark::after,
.te-cta::after,
.site-header-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.te-cta-dark:hover::after,
.te-cta:hover:not(:disabled)::after,
.site-header-cta:hover::after {
  animation: te-shine 0.8s ease;
}

@keyframes te-shine {
  to { left: 130%; }
}

.te-hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------- */
/* Device card (hero, 4:5) and larger device (proof, 4:5)            */
/* ---------------------------------------------------------------- */

.te-tilt {
  --ry: 0deg;
  --rx: 0deg;
  --ty: 0px;
  width: 100%;
  perspective: 1200px;
  transform: translate3d(0, var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}

.te-hero-visual .te-tilt {
  max-width: 440px;
}

.te-device {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a2a3c, #111119);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -10px rgba(123, 79, 245, 0.55);
  animation: te-float 7s ease-in-out infinite;
}

.te-device--lg {
  animation-delay: -3s;
}

@keyframes te-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.te-device-screen {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}

.te-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.te-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.te-sound:hover {
  background: rgba(123, 79, 245, 0.85);
  transform: scale(1.04);
}

.te-sound:focus-visible {
  outline: 2px solid var(--purple-hi);
  outline-offset: 2px;
}

.te-sound svg {
  fill: currentColor;
  flex: none;
}

.te-sound .te-i-on { display: none; }
.te-sound[aria-pressed="true"] .te-i-on { display: block; }
.te-sound[aria-pressed="true"] .te-i-off { display: none; }

.te-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  text-align: left;
}

.te-cap strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.te-cap span {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- */
/* Logo marquee (placeholder wordmarks)                              */
/* ---------------------------------------------------------------- */

.te-proof {
  background: var(--bg);
  border-block: 1px solid var(--line);
  padding: 36px 0;
  overflow: hidden;
}

.te-proof-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  margin: 0 0 24px;
}

.te-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.te-marquee-track {
  display: flex;
  width: max-content;
  animation: te-marquee 60s linear infinite;
}

.te-proof-logos {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(48px, 7vw, 96px);
  padding-right: clamp(48px, 7vw, 96px);
}

.te-proof-logos span.te-wm {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.te-wm-netflix { letter-spacing: 0.08em !important; text-transform: uppercase; }
.te-wm-rbc { letter-spacing: 0.16em !important; }
.te-wm-porsche { letter-spacing: 0.3em !important; text-transform: uppercase; font-weight: 500 !important; }
.te-wm-loreal { font-weight: 500 !important; letter-spacing: 0.04em !important; text-transform: uppercase; }

.te-marquee:hover .te-marquee-track {
  animation-play-state: paused;
}

@keyframes te-marquee {
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- */
/* Video proof                                                       */
/* ---------------------------------------------------------------- */

.te-videos {
  background: var(--bg);
  padding: var(--section-y) 0;
  overflow: hidden;
}

.te-vp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

/* Two client videos side by side (Richmond + Discover Saskatoon). */
.te-vp-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 520px) {
  .te-vp-pair { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Tablet widths: the left column is too narrow for two devices, so the
   pair gets the full row above the venue photos. */
@media (min-width: 768px) and (max-width: 1099px) {
  .te-videos .te-vp-layout { grid-template-columns: 1fr; }
  .te-vp-pair { max-width: 640px; }
}

.te-vp-main {
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.te-theme-caption {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 520px;
}

.te-theme-caption strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.te-venue-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 20px;
  scroll-padding-inline: var(--gutter);
}

.te-venue-rail::-webkit-scrollbar {
  display: none;
}

.te-venue {
  position: relative;
  flex: 0 0 78%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #14141f;
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px rgba(0, 0, 0, 0.8);
  animation: te-float 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.7s);
}

.te-venue img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.te-venue:hover img {
  transform: scale(1.08);
}

.te-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 600 13px/1 var(--font-body);
}

@media (min-width: 768px) {
  .te-vp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .te-vp-main {
    max-width: none;
    margin: 0;
  }

  .te-venue-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 16px;
  }

  .te-venue {
    flex: none;
  }

  .te-venue:nth-child(even) {
    transform: translateY(24px);
  }
}

/* ---------------------------------------------------------------- */
/* Holiday before / after showcase                                   */
/* ---------------------------------------------------------------- */

.te-themes {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(60% 70% at 85% 25%, rgba(229, 72, 77, 0.34), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(47, 158, 99, 0.26), transparent 70%),
    #140a0c;
  overflow: hidden;
}

.te-showcase {
  width: 100%;
  max-width: 480px;
  margin: 40px auto 0;
}

.te-compare {
  --pos: 0%;
  --accent: #e5484d;
  position: relative;
  aspect-ratio: 3 / 4; /* matches the 420x560 photos, so nothing is cropped or shifts */
  border-radius: 28px;
  overflow: hidden;
  background: #1a0f12;
  box-shadow:
    0 0 0 1px rgba(229, 72, 77, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 100px -20px var(--accent);
  cursor: ew-resize;
  touch-action: pan-y; /* horizontal drags are ours, vertical scroll still works */
  user-select: none;
  -webkit-user-select: none;
}

.te-cmp-after,
.te-cmp-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.te-cmp-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.te-cmp-tag {
  position: absolute;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.te-cmp-tag--l { left: 14px; }
.te-cmp-tag--r { right: 14px; background: var(--accent); border-color: var(--accent); color: #0b0b12; }

.te-cmp-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 500 12px/1 var(--font-body);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.te-compare.is-touched .te-cmp-hint {
  opacity: 0;
}

/* The slider: a focusable role="slider" (arrow keys, Home/End, PageUp/Down).
   Pointer input is handled by the whole card, so this never needs to be hit. */
.te-cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
  outline: none;
  pointer-events: none;
}

.te-cmp-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  animation: te-knob 1.8s ease-in-out 3;
}

.te-cmp-handle i::before,
.te-cmp-handle i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 2px solid #14121a;
  border-left: 2px solid #14121a;
}

.te-cmp-handle i::before { left: 11px; transform: rotate(-45deg); }
.te-cmp-handle i::after { right: 11px; transform: rotate(135deg); }

.te-cmp-handle:focus-visible i {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@keyframes te-knob {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(255, 255, 255, 0); }
}

.te-showcase-caption {
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
}

/* theme names: slow marquee, static wrapped list under reduced motion */
.te-names {
  margin-top: 48px;
  /* reserve the row's height before motion.js fills it, so nothing shifts */
  min-height: calc(clamp(1.1rem, 0.9rem + 1vw, 1.6rem) * 1.25);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.te-names-track {
  display: flex;
  width: max-content;
  animation: te-marquee 70s linear infinite;
}

.te-names:hover .te-names-track {
  animation-play-state: paused;
}

.te-names-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 28px;
  padding-right: 28px;
}

.te-names-group span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.te-names-group span::after {
  content: "\2022";
  margin-left: 28px;
  color: rgba(229, 72, 77, 0.8);
}

/* ---------------------------------------------------------------- */
/* What Happens at Your Event: scroll driven sequence                */
/* ---------------------------------------------------------------- */

.te-how {
  background: var(--bg);
  padding: var(--section-y) 0;
  border: 0;
  overflow-x: clip;
}

.te-how-inner {
  text-align: left;
}

.te-steps-grid {
  --p: 0;
  --num-col: clamp(84px, 14vw, 180px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 7vw, 88px);
  margin-top: 24px;
  padding-left: var(--num-col);
}

.te-steps-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--num-col) - 22px);
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.te-steps-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--purple-hi), var(--purple) 60%, #ec4899);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(var(--p));
  box-shadow: 0 0 18px rgba(123, 79, 245, 0.8);
}

.te-step {
  position: relative;
  display: block;
}

.te-step-num {
  position: absolute;
  left: calc(var(--num-col) * -1);
  top: -0.12em;
  font-size: clamp(3.5rem, 1.5rem + 8vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
  transition: -webkit-text-stroke-color 0.5s ease, color 0.5s ease, text-shadow 0.5s ease;
  letter-spacing: -0.04em;
}

.te-step.is-in .te-step-num {
  -webkit-text-stroke-color: var(--purple-hi);
  text-shadow: 0 0 40px rgba(123, 79, 245, 0.55);
}

.te-step h3 {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
  padding-top: 0.4em;
  max-width: 640px;
}

.te-step p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
  max-width: 560px;
}

.te-js .te-step .te-step-body {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.te-js .te-step.is-in .te-step-body {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- */
/* What Your Brand Gets: bento                                       */
/* ---------------------------------------------------------------- */

.te-benefits {
  background: var(--bg-2);
  padding: var(--section-y) 0;
  border: 0;
}

.te-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.te-benefit-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#0f0f1b, #0f0f1b) padding-box,
    linear-gradient(135deg, rgba(167, 139, 250, 0.6), rgba(255, 255, 255, 0.06) 40%, rgba(236, 72, 153, 0.35)) border-box;
  box-shadow: none;
  overflow: hidden;
  flex: initial;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.te-benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(123, 79, 245, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.te-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(123, 79, 245, 0.6);
}

.te-benefit-card:hover::before {
  opacity: 1;
}

.te-benefit-card h3 {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 10px;
}

.te-benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.te-b1 {
  background:
    linear-gradient(160deg, #1b1233, #0f0f1b 70%) padding-box,
    linear-gradient(135deg, rgba(167, 139, 250, 0.8), rgba(255, 255, 255, 0.06) 40%, rgba(236, 72, 153, 0.4)) border-box;
}

.te-b1 h3 {
  font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem);
}

.te-benefits-footnote {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: left;
  margin: 24px 0 0;
}

@media (min-width: 640px) {
  .te-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .te-b1 {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .te-benefits-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }

  .te-b1 { grid-column: span 4; }
  .te-b2 { grid-column: span 2; }
  .te-b3 { grid-column: span 2; }
  .te-b4 { grid-column: span 2; }
  .te-b5 { grid-column: span 2; }
}

/* ---------------------------------------------------------------- */
/* Form card                                                         */
/* ---------------------------------------------------------------- */

.te-shell {
  position: relative;
  background: var(--bg);
  padding: var(--section-y) var(--gutter);
  min-height: auto;
}

.te-shell::before {
  top: 40px;
  width: min(1000px, 140vw);
  height: 640px;
  background: radial-gradient(closest-side, rgba(123, 79, 245, 0.28), rgba(123, 79, 245, 0));
}

.te-card {
  max-width: 520px;
  padding: clamp(28px, 5vw, 44px);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#10101c, #10101c) padding-box,
    linear-gradient(135deg, #a78bfa, rgba(255, 255, 255, 0.08) 40%, #ec4899) border-box;
  box-shadow: 0 40px 100px -40px rgba(123, 79, 245, 0.6);
}

.te-card [hidden] {
  display: none !important;
}

body[data-page="try-engage"] .te-card h1,
body[data-page="try-engage"] .te-card h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: left;
}

.te-card .te-sub {
  font-size: 1rem;
  color: var(--text-dim);
}

/* floating labels: pure CSS on the existing label + input. The inputs
   carry placeholder=" " so :placeholder-shown tells us if they're empty. */
#te-form .te-field {
  position: relative;
  margin-bottom: 14px;
}

#te-form .te-field input {
  width: 100%;
  padding: 24px 16px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#te-form .te-field label {
  position: absolute;
  left: 17px;
  top: 17px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s ease, color 0.2s ease;
}

#te-form .te-field:focus-within label,
#te-form .te-field:has(input:not(:placeholder-shown)) label,
#te-form .te-field:has(input:-webkit-autofill) label {
  transform: translateY(-11px) scale(0.75);
  color: var(--purple-hi);
}

.te-card .te-field input:focus,
.te-card .te-field textarea:focus {
  background: rgba(123, 79, 245, 0.08);
  border-color: var(--purple-hi);
  box-shadow: 0 0 0 4px rgba(123, 79, 245, 0.28), 0 0 32px -4px rgba(123, 79, 245, 0.55);
}

.te-card .te-field label {
  font-family: var(--font-body);
}

.te-cta {
  background: linear-gradient(135deg, #8b5cf6, #6d3df0);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 18px 24px;
  margin-top: 10px;
}

.te-cta:hover {
  background: linear-gradient(135deg, #9b6dff, #7b4ff5);
}

/* Success state: restyled "You're in" panel, CSS only */
#te-confirm-state:not([hidden]),
#te-credits-sent-state:not([hidden]) {
  animation: te-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes te-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

#te-confirm-state .te-eyebrow,
#te-credits-sent-state .te-eyebrow {
  font-size: 13px;
  color: #6ee7b7;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-bottom: 16px;
}

#te-confirm-state .te-eyebrow::before,
#te-credits-sent-state .te-eyebrow::before {
  width: 16px;
  height: 16px;
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: te-ring 1.8s ease-out 2;
}

@keyframes te-ring {
  to { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
}

body[data-page="try-engage"] #te-confirm-state h1 {
  background: linear-gradient(90deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#te-confirm-state .te-qr {
  border-radius: 20px;
  margin-inline: 0;
  box-shadow: 0 0 0 6px rgba(123, 79, 245, 0.18), 0 0 60px -10px rgba(123, 79, 245, 0.7);
}

/* ---------------------------------------------------------------- */
/* Reveal on scroll + custom cursor                                  */
/* ---------------------------------------------------------------- */

.te-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.te-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* tilt wrapper is also a reveal target in the proof section; its own
   transform is driven by motion.js, so reveal only fades there */
.te-js .te-tilt[data-reveal] {
  transform: translate3d(0, var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 0.8s ease;
}

.te-cursor,
.te-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.te-cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(167, 139, 250, 0.7);
}

.te-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--purple-hi);
}

.te-cursor.is-on,
.te-cursor-dot.is-on {
  opacity: 1;
}

.te-cursor.is-hot {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(123, 79, 245, 0.18);
  border-color: var(--purple-hi);
}

/* ---------------------------------------------------------------- */
/* Reduced motion: no float, glow, marquee, parallax, reveals        */
/* ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .te-js [data-reveal],
  .te-js .te-step .te-step-body {
    opacity: 1;
    transform: none;
  }

  .te-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .te-marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .te-marquee-track .te-proof-logos:not(:first-child) {
    display: none;
  }

  .te-names {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .te-names-track {
    display: block;
    width: auto;
  }

  .te-names-track .te-names-group:not(:first-child) {
    display: none;
  }

  .te-names-group {
    flex: 1 1 auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-right: 0;
  }

  .te-names-group span:last-child::after {
    display: none;
  }

  .te-proof-logos {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-inline: var(--gutter);
  }

  .te-cursor,
  .te-cursor-dot {
    display: none;
  }
}

/* ---------------------------------------------------------------- */
/* Desktop hero layout                                               */
/* ---------------------------------------------------------------- */

@media (min-width: 900px) {
  .te-hero-inner {
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(32px, 5vw, 80px);
  }

  .te-hero-visual .te-tilt {
    max-width: 420px;
  }
}

@media (min-width: 1100px) {
  .te-hero-inner {
    grid-template-columns: 1.3fr 0.7fr;
  }
}
