:root {
  --accent: #c5c6cb;
}

html {
  font-family: "Poppins", sans-serif;
}

* {
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #121213;
  color: #e5e2e1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select,
.font-body-lg,
.font-body-md,
.font-display-lg,
.font-display-xl,
.font-headline-md,
.font-headline-sm,
.font-label-mono {
  font-family: "Poppins", sans-serif !important;
}

.tracking-tight,
.tracking-tighter,
.tracking-wider,
.tracking-widest {
  letter-spacing: 0 !important;
}

.text-body-lg {
  font-size: 1.0625rem !important;
  line-height: 1.75 !important;
}

.text-body-md {
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
}

.text-label-mono {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.text-headline-sm {
  font-size: 1.75rem !important;
  line-height: 1.18 !important;
}

.text-headline-md {
  font-size: 2.7rem !important;
  line-height: 1.12 !important;
}

.text-display-lg {
  font-size: 4.25rem !important;
  line-height: 1.04 !important;
}

.text-display-xl {
  font-size: 6.25rem !important;
  line-height: 0.98 !important;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.text-center,
.studio-hero-copy,
.studio-section-intro,
.studio-cta-copy {
  text-align: center;
}

.studio-hero {
  isolation: isolate;
}

.studio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(153, 0, 1, 0.24), transparent 34%),
    linear-gradient(to bottom, rgba(18, 18, 19, 0.34), rgba(18, 18, 19, 0.9) 86%);
}

.studio-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 5vw, 4.5rem);
  z-index: 1;
  width: min(78vw, 820px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.studio-hero-copy {
  width: min(100%, 880px);
  margin-inline: auto;
}

.studio-hero-logo {
  width: min(58vw, 250px);
  height: auto;
  margin: 0 auto 1.85rem;
}

.studio-kicker {
  margin-bottom: 1rem;
  font-weight: 700;
}

.studio-hero-title {
  max-width: 780px;
  margin: 0 auto 1.35rem;
}

.studio-hero-lede {
  max-width: 690px;
  margin: 0 auto 1.9rem;
}

.studio-hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 auto 2.2rem;
}

.studio-hero-proof span {
  min-width: 9.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 19, 0.56);
  color: rgba(229, 226, 225, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.studio-action {
  min-width: 13rem;
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studio-section-intro {
  max-width: 760px;
  margin: 0 auto 3.6rem;
}

.studio-section-intro h2 {
  margin-bottom: 1rem;
}

.studio-section-intro p:last-child {
  max-width: 680px;
  margin-inline: auto;
}

.studio-services-grid {
  align-items: stretch;
}

.studio-service-card {
  border-radius: 0.75rem;
}

.studio-service-card h3 {
  max-width: 16rem;
}

.studio-service-card p {
  max-width: 25rem;
}

.studio-cta-copy {
  max-width: 760px;
  margin-inline: auto;
}

.studio-cta-copy p:not(.studio-kicker) {
  max-width: 620px;
  margin-inline: auto;
}

.studio-crosslink {
  text-align: left;
}

.division-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.65rem auto 0;
}

.division-socials a {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(229, 226, 225, 0.74);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.division-socials a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transform: translateY(-2px);
}

.division-socials .material-symbols-outlined {
  font-size: 1.05rem;
}

.security-stats-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #171997 0%, #2124B1 48%, #090a35 100%);
}

.security-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
  opacity: 0.48;
}

.security-stats-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.security-stats-copy {
  max-width: 35rem;
}

.security-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.security-stat-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 2vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.security-stat-card .material-symbols-outlined {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
}

.security-stat-card strong {
  display: block;
  margin-top: 1.9rem;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  font-weight: 800;
}

.security-stat-card h3 {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.security-stat-card p {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .security-stats-inner {
    grid-template-columns: 1fr;
  }

  .security-stats-copy {
    max-width: 46rem;
    text-align: center;
    margin-inline: auto;
  }
}

img {
  max-width: 100%;
}

[data-bg] {
  background-image: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

::selection {
  background: var(--accent);
  color: #121213;
}

/* ---------- Layout helpers ---------- */

.ghost-border {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
  background: rgba(18, 18, 19, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.text-accent {
  color: var(--accent);
}
.bg-accent {
  background-color: var(--accent);
}
.border-accent {
  border-color: var(--accent);
}

/* ---------- Site header ---------- */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 19, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

#site-header.is-scrolled {
  background: rgba(18, 18, 19, 0.82);
}

.site-header-inner {
  min-height: 76px;
}

.site-brand {
  width: clamp(150px, 12vw, 198px);
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.site-brand-logo {
  width: 100%;
  max-height: 48px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.nav-link {
  position: relative;
  color: rgba(229, 226, 225, 0.65);
  transition: color 0.25s ease;
}
.nav-link:hover {
  color: #e5e2e1;
}
.nav-link.active {
  color: #e5e2e1;
  font-weight: 700;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

#mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 160;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.1), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(197, 198, 203, 0.08), transparent 34%),
    rgba(8, 8, 9, 0.98);
  transform: translateY(-10px);
  transition: opacity 0.32s ease, visibility 0.32s ease, transform 0.32s cubic-bezier(0.2, 0, 0, 1);
}

#mobile-menu-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-shell {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.1rem, env(safe-area-inset-bottom));
}

.mobile-menu-top {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu-brand {
  width: 156px;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #e5e2e1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-menu-close .material-symbols-outlined {
  font-size: 22px;
}

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: clamp(1.25rem, 5vh, 2.25rem) 0 0;
}

.mobile-menu-main-link {
  display: flex;
  align-items: center;
  min-height: 3.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e2e1;
  font-size: clamp(2rem, 11vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-menu-main-link.active {
  color: #ffffff;
}

.mobile-menu-companies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
}

.mobile-menu-label {
  color: rgba(229, 226, 225, 0.46);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-company-link {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.mobile-company-link:last-child {
  border-bottom: 0;
}

.mobile-company-link .material-symbols-outlined {
  color: var(--company-accent);
  font-size: 18px;
}

.mobile-menu-cta {
  width: 100%;
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.mobile-menu-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mobile-menu-button:hover,
.mobile-menu-button.open {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

.mobile-menu-button .bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: #e5e2e1;
  transform: translateX(-50%);
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1), opacity 0.2s ease, width 0.25s ease;
}

.mobile-menu-button .bar-1 {
  transform: translate(-50%, -6px);
}

.mobile-menu-button .bar-2 {
  width: 14px;
  transform: translate(-50%, 0);
}

.mobile-menu-button .bar-3 {
  transform: translate(-50%, 6px);
}

.mobile-menu-button.open .bar-1 {
  transform: translate(-50%, 0) rotate(45deg);
}

.mobile-menu-button.open .bar-2 {
  opacity: 0;
  width: 0;
}

.mobile-menu-button.open .bar-3 {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn-primary {
  background: #f5f4f3;
  color: #121213;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e2e1;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-accent:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn-accent-on-light {
  color: #121213 !important;
}

/* ---------- Panels ---------- */

.hover-fill-panel {
  transition: all 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.hover-fill-panel:hover {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.04);
}

.company-panel {
  transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.company-panel:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cinematic-img {
  transition: transform 6s ease-out;
}
.overflow-hidden:hover .cinematic-img {
  transform: scale(1.06);
}

/* ---------- GSAP scroll experience ---------- */

.tilt-card {
  will-change: transform;
  transform: perspective(900px);
}

[data-carousel] {
  overflow: hidden;
}
[data-carousel-track] {
  will-change: transform;
}

.scroll-video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.scroll-video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.scroll-video-section .scroll-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 4vw, 4rem);
}
[data-scroll-video-copy] {
  opacity: 0;
}

.brand-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-row {
  width: auto;
  height: 1.25rem;
  max-width: 150px;
}

.brand-logo-card {
  width: auto;
  height: 1.5rem;
  max-width: 188px;
}

.brand-logo-security {
  width: 108px;
  height: auto;
  max-height: 36px;
}

.brand-logo-security.brand-logo-card {
  width: 142px;
  max-height: 48px;
}

.home-hero {
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 18, 19, 0.96) 0%, rgba(18, 18, 19, 0.78) 38%, rgba(18, 18, 19, 0.26) 100%),
    radial-gradient(circle at 22% 46%, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 72% 24%, rgba(197, 198, 203, 0.12), transparent 38%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 18, 19, 0.48), transparent 18%, rgba(18, 18, 19, 0.92) 100%),
    radial-gradient(ellipse at center, transparent 18%, rgba(0, 0, 0, 0.46) 100%);
}

.hero-frame-grid {
  position: absolute;
  inset: 86px clamp(1.25rem, 1.5vw + 1rem, 4rem) 42px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 78%, transparent 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.82rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(229, 226, 225, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-eyebrow-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(197, 198, 203, 0.08), 0 0 22px rgba(197, 198, 203, 0.45);
}

.home-hero-title {
  font-size: 5.65rem !important;
  line-height: 0.96 !important;
  text-wrap: balance;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.hero-promise {
  max-width: 44rem;
  margin-bottom: 1.15rem;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.34;
  font-weight: 600;
  text-wrap: balance;
}

.hero-cta {
  width: fit-content;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 34rem;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof-strip > div {
  padding: 0.95rem 1rem;
  background: rgba(18, 18, 19, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-proof-strip strong {
  display: block;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
}

.hero-proof-strip span {
  display: block;
  margin-top: 0.42rem;
  color: rgba(229, 226, 225, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-ecosystem-panel {
  position: relative;
  overflow: hidden;
}

.hero-ecosystem-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(197, 198, 203, 0.14), transparent 36%);
  opacity: 0.9;
}

.hero-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-panel-index {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  font-size: 3.5rem;
  line-height: 0.82;
  font-weight: 800;
}

.hero-ecosystem-panel > .flex,
.hero-panel-note {
  position: relative;
  z-index: 1;
}

.hero-brand-meta {
  display: inline-block;
  min-width: 5rem;
  opacity: 0.72;
  transform: translateX(0);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-brand-link:hover .hero-brand-meta {
  opacity: 1;
  transform: translateX(0.15rem);
}

.hero-panel-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(229, 226, 225, 0.56);
  font-size: 0.88rem;
  line-height: 1.65;
}

.home-companies-title {
  max-width: 620px;
  font-size: 4rem !important;
  line-height: 1.02 !important;
}

/* Parallax GPU acceleration */
[data-parallax],
[data-depth] {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-video-section {
    height: auto;
  }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Misc ---------- */

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer a:focus-visible,
nav a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Social follow toggle ---------- */

.social-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: flex;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1), transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 20;
}
.social-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.social-panel a {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e2e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 19, 0.85);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.social-panel.open a {
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, opacity 0.3s ease 0ms, transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.social-panel a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.social-panel.open a:nth-child(1) { transition-delay: 0ms; }
.social-panel.open a:nth-child(2) { transition-delay: 60ms; }
.social-panel.open a:nth-child(3) { transition-delay: 120ms; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(18, 18, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===========================================
   ELITE ENHANCEMENTS — Vision Group Index
   =========================================== */

/* ---- Film grain overlay (injected via JS) ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 196px 196px;
  mix-blend-mode: overlay;
  opacity: 0.042;
  animation: grain-shift 0.4s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0%, 0%); }
  25%  { transform: translate(-1.5%, 2.2%); }
  50%  { transform: translate(2.2%, -1.5%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(1.5%, 1.5%); }
}

/* ---- Custom cursor follower ---- */
.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: #e5e2e1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  left: -100px;
  top: -100px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.18s ease, height 0.18s ease;
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(229, 226, 225, 0.32);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  left: -100px;
  top: -100px;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease;
  will-change: left, top;
}

.cursor-dot.cursor-hover {
  width: 10px;
  height: 10px;
}

.cursor-ring.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: rgba(229, 226, 225, 0.6);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---- Hero word-clip entrance animation ---- */
.hero-word-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.12;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  animation: word-rise 0.88s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes word-rise {
  from { transform: translateY(108%); opacity: 0; }
  to   { transform: translateY(0%);   opacity: 1; }
}

/* ---- Accent expanding line (on label) ---- */
.label-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.label-line::before {
  content: '';
  display: inline-block;
  height: 1px;
  width: 0;
  flex-shrink: 0;
  background: var(--accent);
  transition: width 0.85s 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.label-line.is-visible::before {
  width: 28px;
}

/* ---- Ghost numbers on company cards ---- */
.card-ghost-num {
  position: absolute;
  bottom: -0.06em;
  right: -0.02em;
  font-family: "Poppins", sans-serif;
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: -webkit-text-stroke-color 0.55s ease;
}

.company-panel:hover .card-ghost-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.10);
}

/* ---- Card accent glow on hover ---- */
.company-panel:hover {
  box-shadow: 0 0 80px -16px var(--card-glow, transparent);
}

/* ---- Kinetic quote shimmer ---- */
.kinetic-text {
  background: linear-gradient(
    90deg,
    rgba(229, 226, 225, 0.38) 0%,
    rgba(229, 226, 225, 0.80) 30%,
    rgba(229, 226, 225, 1.00) 50%,
    rgba(229, 226, 225, 0.80) 70%,
    rgba(229, 226, 225, 0.38) 100%
  );
  background-size: 260% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-sweep 7s linear infinite;
}

@keyframes shimmer-sweep {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* ---- CTA section — animated conic gradient ---- */
.cta-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-grad::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(197, 198, 203, 0.055) 55deg,
    transparent 110deg,
    rgba(197, 198, 203, 0.03) 195deg,
    transparent 250deg,
    rgba(197, 198, 203, 0.065) 315deg,
    transparent 360deg
  );
  animation: cta-spin 26s linear infinite;
}

@keyframes cta-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Ghost "V" in CTA background ---- */
.cta-ghost-v {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.cta-ghost-v span {
  font-family: "Poppins", sans-serif;
  font-size: 42rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.022);
}

/* ---- Stat count number ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---- Brand-specific hover effects in Hero Inside Panel ---- */
.hero-brand-link {
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-brand-link:hover {
  padding-left: 8px;
  background-color: rgba(255, 255, 255, 0.02);
}
.hero-brand-studio:hover {
  border-color: rgba(153, 0, 1, 0.4) !important;
}
.hero-brand-studio:hover .arrow-icon {
  color: #990001 !important;
  text-shadow: 0 0 10px rgba(153, 0, 1, 0.6);
}
.hero-brand-comms:hover {
  border-color: rgba(249, 234, 26, 0.4) !important;
}
.hero-brand-comms:hover .arrow-icon {
  color: #F9EA1A !important;
  text-shadow: 0 0 10px rgba(249, 234, 26, 0.6);
}
.hero-brand-aerial:hover {
  border-color: rgba(23, 163, 152, 0.4) !important;
}
.hero-brand-aerial:hover .arrow-icon {
  color: #17A398 !important;
  text-shadow: 0 0 10px rgba(23, 163, 152, 0.6);
}
.hero-brand-security:hover {
  border-color: rgba(33, 36, 177, 0.4) !important;
}
.hero-brand-security:hover .arrow-icon {
  color: #2124B1 !important;
  text-shadow: 0 0 10px rgba(33, 36, 177, 0.6);
}

@media (hover: none), (pointer: coarse) {
  .hover-fill-panel {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.04);
  }

  .hover-fill-panel .cinematic-img {
    opacity: 0.36 !important;
  }

  .company-panel {
    border-color: var(--card-accent, var(--accent));
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 58px -24px var(--card-glow, transparent);
  }

  .company-panel > .absolute.inset-0.bg-cover {
    opacity: 0.18 !important;
  }

  .company-panel .card-ghost-num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.11);
  }

  .company-panel h3 {
    transform: translateX(0.35rem);
  }

  .cinematic-img {
    transform: scale(1.035);
  }

  .hero-brand-link {
    padding-left: 8px;
    background-color: rgba(255, 255, 255, 0.025);
  }

  .hero-brand-link .arrow-icon {
    transform: translateX(3px);
  }

  .hero-brand-studio {
    border-color: rgba(153, 0, 1, 0.4) !important;
  }

  .hero-brand-studio .arrow-icon {
    color: #990001 !important;
  }

  .hero-brand-comms {
    border-color: rgba(249, 234, 26, 0.4) !important;
  }

  .hero-brand-comms .arrow-icon {
    color: #F9EA1A !important;
  }

  .hero-brand-aerial {
    border-color: rgba(23, 163, 152, 0.4) !important;
  }

  .hero-brand-aerial .arrow-icon {
    color: #17A398 !important;
  }

  .hero-brand-security {
    border-color: rgba(33, 36, 177, 0.4) !important;
  }

  .hero-brand-security .arrow-icon {
    color: #2124B1 !important;
  }
}

@media (max-width: 767px) {
  body {
    text-rendering: optimizeLegibility;
  }

  .site-header-inner {
    min-height: 68px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .site-brand {
    width: 100px;
    height: 42px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;  }

  .site-brand-logo {
    max-height: 48px;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-menu-brand {
    width: 158px;
    margin-left: 0.45rem;
  }

  .home-hero {
    min-height: auto;
    padding-top: 7.25rem;
    padding-bottom: 2.5rem;
  }

  .home-hero::before {
    background:
      linear-gradient(to bottom, rgba(18, 18, 19, 0.9) 0%, rgba(18, 18, 19, 0.72) 34%, rgba(18, 18, 19, 0.96) 100%),
      radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.13), transparent 44%);
  }

  .hero-frame-grid {
    inset: 78px 1rem 1.25rem;
    background-size: 72px 72px;
  }

  .hero-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.66rem;
  }

  .text-body-lg {
    font-size: 1rem !important;
    line-height: 1.72 !important;
  }

  .text-body-md {
    font-size: 0.925rem !important;
  }

  .text-headline-sm {
    font-size: 1.42rem !important;
    line-height: 1.22 !important;
  }

  .text-headline-md {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  .text-display-lg {
    font-size: 2.55rem !important;
    line-height: 1.08 !important;
  }

  .text-display-xl {
    font-size: 3.1rem !important;
    line-height: 1.02 !important;
  }

  .studio-hero {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }

  .studio-hero-logo {
    width: min(68vw, 190px);
    margin-bottom: 1.35rem;
  }

  .studio-hero-title {
    max-width: 21rem;
    margin-bottom: 1rem;
  }

  .studio-hero-lede {
    max-width: 22rem;
    margin-bottom: 1.45rem;
  }

  .studio-hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-bottom: 1.6rem;
  }

  .studio-hero-proof span {
    min-width: 0;
  }

  .studio-action {
    width: 100%;
  }

  .studio-section-intro {
    margin-bottom: 2.4rem;
  }

  .studio-service-card {
    min-height: 230px;
    padding: 1.6rem !important;
  }

  .studio-service-card h3,
  .studio-service-card p {
    max-width: none;
  }

  .studio-cta-copy {
    max-width: 24rem;
  }

  .studio-cta-copy .btn-primary {
    width: 100%;
  }

  .studio-crosslink {
    text-align: center;
  }

  .division-socials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .division-socials a {
    width: 100%;
  }

  .security-stats-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .security-stats-copy {
    max-width: 24rem;
    margin-inline: auto;
    text-align: center;
  }

  .security-stats-grid {
    grid-template-columns: 1fr;
  }

  .security-stat-card {
    min-height: 0;
  }

  .home-hero-title {
    font-size: 3rem !important;
    line-height: 0.98 !important;
    max-width: 20rem;
  }

  .hero-promise {
    max-width: 22rem;
    font-size: 1.16rem;
    line-height: 1.48;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 1.35rem;
    border-radius: 0.5rem;
  }

  .hero-proof-strip > div {
    padding: 0.75rem 0.65rem;
  }

  .hero-proof-strip strong {
    font-size: 1.02rem;
  }

  .hero-proof-strip span {
    font-size: 0.62rem;
  }

  .hero-ecosystem-panel {
    margin-top: 0.5rem;
    padding: 1.25rem !important;
    border-radius: 1rem;
  }

  .hero-panel-head {
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .hero-panel-index {
    font-size: 2.6rem;
  }

  .hero-brand-meta {
    min-width: auto;
    font-size: 0.62rem;
  }

  .home-companies-title {
    font-size: 2.35rem !important;
    line-height: 1.1 !important;
  }

  .card-ghost-num {
    font-size: 5.8rem;
  }

  .cta-ghost-v span {
    font-size: 20rem;
  }

  .glass-panel {
    border-radius: 1rem;
  }

  .hero-brand-link {
    min-height: 62px;
    gap: 1rem;
  }

  .brand-logo-row {
    height: 1.1rem;
    max-width: 132px;
  }

  .brand-logo-card {
    height: 1.28rem;
    max-width: 164px;
  }

  .brand-logo-security {
    width: 96px;
    max-height: 32px;
  }

  .brand-logo-security.brand-logo-card {
    width: 124px;
    max-height: 42px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-accent,
  .nav-cta {
    min-height: 48px;
  }

  .scroll-video-section {
    height: 100svh;
    height: 100dvh;
    min-height: 100dvh;
  }

  .scroll-video-section .scroll-video-overlay {
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.48));
  }

  [data-scroll-video-copy] {
    opacity: 1;
  }

  .social-panel {
    top: auto;
    bottom: calc(100% + 12px);
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .text-display-xl {
    font-size: 2.68rem !important;
  }

  .text-display-lg {
    font-size: 2.25rem !important;
  }

  .home-hero-title {
    font-size: 2.64rem !important;
  }

  .card-ghost-num {
    font-size: 5.2rem;
  }
}

@media (max-width: 767px) and (max-height: 740px) {
  .mobile-menu-top {
    min-height: 48px;
  }

  .mobile-menu-brand {
    width: 144px;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-nav {
    gap: 0.42rem;
    padding-top: 0.85rem;
  }

  .mobile-menu-main-link {
    min-height: 3.05rem;
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }

  .mobile-menu-companies {
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
  }

  .mobile-company-link {
    min-height: 2.65rem;
    padding: 0.5rem 0;
  }

  .mobile-menu-cta {
    min-height: 3rem;
    margin-top: 0.75rem;
  }
}

/* ---- Ken Burns Zoom Effect ---- */
.hero-bg-wrapper {
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinematic-img-zoom {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: kenburns-slow 60s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns-slow {
  0% { transform: scale(1.04) translate(0px, 0px); }
  50% { transform: scale(1.09) translate(-10px, 5px); }
  100% { transform: scale(1.04) translate(10px, -5px); }
}

/* ---- Pulsing Downward Gaze Scroll Cue ---- */
.scroll-indicator-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  z-index: 10;
  text-decoration: none;
}
.scroll-line-flow {
  width: 1px;
  height: 60px;
  background: rgba(229, 226, 225, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.scroll-line-flow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: flow-down 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes flow-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(240%); }
}

/* ---- Section intro badge line ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-badge::before,
.section-badge::after {
  content: '';
  display: block;
  height: 1px;
  width: 20px;
  background: currentColor;
  opacity: 0.4;
}

/* ---- Reduced motion overrides ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-word {
    transform: none;
    opacity: 1;
    animation: none;
  }
  .grain-overlay {
    display: none;
  }
  .kinetic-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: inherit;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .cta-grad::before {
    animation: none;
  }
  .label-line::before {
    transition: none;
    width: 28px;
  }
  @keyframes shimmer-sweep { from, to { background-position: 0% center; } }
}
