/* ============================================================
   HOMEPAGE — AVANT-GARDE DARK THEME
   All styles scoped to .page-home body class
   ============================================================ */

/* === SHAPE GRID BACKGROUND CANVAS === */
/* html is the only true black — canvas paints on top of it */
html {
  background: #000000;
}

#shape-grid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.page-home {
  background: transparent;
}

/* === 1. DESIGN TOKENS === */
.page-home {
  overflow-x: hidden;  /* prevent horizontal scrollbar from overflow:visible hero */
  --bg: transparent;
  --fg: #F0EDE6;
  --fg-muted: rgba(240, 237, 230, 0.45);
  --surface: #0a0a0a;
  --surface-dark: #111111;
  --rule: 1px solid rgba(240, 237, 230, 0.12);
  --rule-muted: 1px solid rgba(240, 237, 230, 0.06);
  --accent-magenta: #FF2D6B;
  --accent-purple: #A855F7;
  --accent-orange: #FF6B2B;
  --accent-cyan: #00E5FF;
  --accent-green: #22FF88;
  --font-display-alt: 'Bebas Neue', 'Arial Narrow', sans-serif;

  background-color: transparent;
  color: var(--fg);
}

/* === 2. GRADIENT TEXT ANIMATION === */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


.page-home::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
}

/* === 3. NAVIGATION === */
.page-home .nav {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(240, 237, 230, 0.05);
}

.page-home .nav.scrolled {
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.page-home .nav-logo img {
  filter: invert(1);
}

.page-home .nav-link {
  color: rgba(240, 237, 230, 0.4);
}

.page-home .nav-link:hover {
  color: var(--fg);
}

.page-home .nav-link::after {
  background: var(--accent-purple);
}

.page-home .nav-cta {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  font-family: var(--font-display-alt);
  letter-spacing: 0.15em;
}

.page-home .nav-cta:hover {
  background: var(--accent-purple);
  color: #000000;
  border-color: var(--accent-purple);
}

.page-home .lang-toggle {
  color: var(--fg);
  border-color: rgba(240, 237, 230, 0.15);
}

.page-home .lang-toggle:hover {
  background: var(--fg);
  color: #000000;
}

.page-home .nav-hamburger span {
  background: var(--fg);
}

/* Nav is transparent over the dark hero so content shows through */
.page-home .nav {
  background: transparent;
  border-bottom-color: transparent;
}

.page-home .nav.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(240, 237, 230, 0.06);
}

/* === 4. HERO SECTION === */
.page-home .hero {
  background: transparent;
  position: relative;
  overflow: visible;
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.page-home .hero-headline {
  font-family: var(--font-display-alt);
  font-size: clamp(2.5rem, 6.5vw, 7rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
  color: var(--fg);
  text-shadow: 0 0 120px rgba(168, 85, 247, 0.1);
  animation: hero-glitch 10s ease-in-out infinite;
}

.page-home .hero-headline .accent-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(240, 237, 230, 0.3);
  font-style: normal;
}

.page-home .hero-headline em {
  font-style: italic;
}

/* Neon gradient on "digital experiences" — Playfair Display to match h2 section titles */
.page-home .hero-gradient-text {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #ff8800, #ff2d87, #a855f7, #00e5ff, #22c55e, #ff8800);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-style: normal;
  white-space: normal;
  word-break: normal;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}

.page-home .rule-short {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-magenta));
  height: 2px;
}

.page-home .label-vertical {
  color: rgba(240, 237, 230, 0.2);
}

.page-home .hero-sub {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  color: rgba(240, 237, 230, 0.45);
  font-weight: 300;
}


/* Hero grid — 2-col flex row */
.page-home .hero-grid {
  display: flex !important;
  flex-direction: row;
  flex: 1;
  width: 100%;
  align-items: flex-start;
  position: relative;
  padding: 0;
  gap: 0;
  grid-template-columns: unset;
}

/* === 4b. HERO CONTENT (left, text column) === */
.page-home .hero-content {
  position: relative;
  z-index: 10;
  width: 58%;
  flex: 0 0 58%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-m);
  padding: var(--space-xl) var(--space-l) var(--space-xl) var(--padding-x);
  overflow: visible;  /* let long text paint beyond the column boundary */
  top: auto;
  transform: none;
  align-self: auto;
}

/* === 4c. HERO PHOTO (right column, starts at y=0) === */
/* Must use !important to defeat base style.css which sets position:absolute left:0 right:0 */
.page-home .hero-photo {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  height: auto !important;
  width: 42% !important;
  flex: 0 0 42%;
  align-self: flex-start;
  border-radius: 0 !important;
  overflow: hidden;
  z-index: 1;
}

.page-home .hero-photo img {
  display: block;
  width: 100%;
  height: auto;            /* natural height, no cropping */
  border-radius: 0;
  filter: saturate(1.15) contrast(1.08);
  object-position: center top;
}

.page-home .hero-photo-overlay {
  background:
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.1) 3px,
      rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(to right,
      rgba(5, 5, 5, 0.7) 0%,
      transparent 40%),
    linear-gradient(to top,
      rgba(5, 5, 5, 0.85) 0%,
      rgba(168, 85, 247, 0.06) 35%,
      transparent 65%);
}

.page-home .hero-rule {
  height: 2px;
  background: linear-gradient(90deg,
      var(--accent-purple) 0%,
      var(--accent-magenta) 35%,
      var(--accent-cyan) 70%,
      transparent 100%);
  opacity: 0.5;
  position: relative;
  z-index: 2;
}

.page-home .hero-label-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
}

/* === 5. HERO GLITCH ANIMATION === */
@keyframes hero-glitch {

  0%,
  86%,
  100% {
    text-shadow: 0 0 120px rgba(168, 85, 247, 0.1);
    transform: translate(0);
  }

  88% {
    text-shadow: 3px 0 var(--accent-magenta), -3px 0 var(--accent-cyan);
    transform: translate(-3px, 1px);
  }

  90% {
    text-shadow: -2px 0 var(--accent-magenta), 2px 0 var(--accent-cyan);
    transform: translate(2px, -1px);
  }

  92% {
    text-shadow: 1px 0 var(--accent-magenta), -1px 0 var(--accent-cyan);
    transform: translate(0);
  }

  94% {
    text-shadow: 3px 0 var(--accent-magenta), -3px 0 var(--accent-cyan);
    transform: translate(-1px, 2px);
  }

  96% {
    text-shadow: 0 0 120px rgba(168, 85, 247, 0.1);
    transform: translate(0);
  }
}

/* === 6. BUTTONS === */
.page-home .btn-primary {
  background: var(--accent-purple);
  color: #000000;
  border-color: var(--accent-purple);
  font-family: var(--font-display-alt);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.9rem 2rem;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .btn-primary:hover {
  background: transparent;
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.4);
}

.page-home .btn-ghost {
  color: var(--fg);
  border-color: rgba(240, 237, 230, 0.2);
  font-family: var(--font-display-alt);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  font-weight: 400;
}

.page-home .btn-ghost:hover {
  background: var(--fg);
  color: #000000;
  border-color: var(--fg);
}

/* === 7. HERO DECORATIVE — STARS === */
.page-home .hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.page-home .star-4pt {
  position: absolute;
  top: var(--star-top);
  left: var(--star-left);
  width: var(--star-size, 12px);
  height: var(--star-size, 12px);
  color: rgba(255, 255, 255, 0.85);
  animation: twinkle 3s ease-in-out infinite alternate;
  animation-delay: var(--star-delay, 0s);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.7) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: scale(1.15) rotate(15deg);
  }
}

/* === 8. HERO DECORATIVE — WIREFRAME GLOBE === */
.page-home .hero-globe-wrap {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 26vw, 380px);
  height: clamp(200px, 26vw, 380px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.page-home .hero-globe-svg {
  width: 100%;
  height: 100%;
}

.page-home .globe-text-group {
  animation: globe-text-spin 35s linear infinite;
  transform-origin: 150px 150px;
}

@keyframes globe-text-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* === 9. HERO DECORATIVE — PIXEL BLOCKS === */
.page-home .hero-pixels {
  position: absolute;
  bottom: 10%;
  right: 4%;
  width: 210px;
  height: 210px;
  z-index: 1;
  pointer-events: none;
  animation: pixel-drift 6s ease-in-out infinite alternate;
}

.page-home .hero-pixels::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  bottom: 0;
  left: 0;
  background: var(--accent-purple);
  box-shadow:
    /* Row 0 — bottom */
    22px 0 0 var(--accent-magenta),
    /* Row 1 */
    22px -22px 0 var(--accent-green),
    44px -22px 0 var(--accent-orange),
    66px -22px 0 var(--accent-cyan),
    /* Row 2 */
    44px -44px 0 var(--accent-purple),
    66px -44px 0 var(--accent-magenta),
    88px -44px 0 var(--accent-orange),
    /* Row 3 */
    66px -66px 0 var(--accent-green),
    88px -66px 0 var(--accent-cyan),
    110px -66px 0 var(--accent-purple),
    /* Row 4 */
    88px -88px 0 var(--accent-magenta),
    110px -88px 0 var(--accent-orange),
    132px -88px 0 var(--accent-green),
    /* Row 5 */
    110px -110px 0 var(--accent-cyan),
    132px -110px 0 var(--accent-purple),
    /* Row 6 */
    132px -132px 0 var(--accent-magenta),
    154px -132px 0 var(--accent-orange),
    /* Row 7 — top */
    154px -154px 0 var(--accent-green);
  opacity: 0.7;
}

/* Subtle second cluster of pixels — opposite corner */
.page-home .hero-pixels::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 10px;
  right: 60px;
  background: var(--accent-cyan);
  box-shadow:
    18px 0 0 var(--accent-magenta),
    0 18px 0 var(--accent-orange),
    18px 18px 0 var(--accent-green),
    36px 18px 0 var(--accent-purple);
  opacity: 0.4;
}

/* === 10. SECTION HEADER — IMAGE BACKGROUND ===
   Text sits ABOVE the pixel band image, not overlapping.
   Vertical stack: heading on top, pixel image below.
*/
.page-home .section-header-image-container {
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Show the image below the text, full width */
.page-home .header-pixel-bg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  top: -16px;
}

/* The text sits above the image with matching neon colors */
.page-home .header-pixel-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  padding: var(--padding-x);
  padding-bottom: 0;
  background: linear-gradient(90deg, #ff8800, #ff2d87, #a855f7, #00e5ff, #22c55e, #ff8800);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}


/* === 10. SCROLL VELOCITY MARQUEE === */
#services-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-top: var(--space-m);
  margin-bottom: var(--space-m);
}

.sv-parallax {
  overflow: hidden;
  width: 100%;
}

.sv-scroller {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.sv-text {
  flex-shrink: 0;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.18);
  padding-right: 2rem;
}


/* === 11. VAULT / SERVICES — Enhance existing dark theme === */

/* Kill the SVG animation stage entirely */
.page-home .svg-stage,
.page-home #service-svg,
.page-home #sticky-universe .svg-stage {
  display: none !important;
}

/* New simple grid layout replacing the old sticky SVG layout */
.page-home .services-vault {
  background: transparent;
  padding: 0 0 var(--space-s) 0;
}

.page-home .services-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Each service panel — no longer needs to fill 100vh */
.page-home .vault-panel {
  min-height: unset !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(240, 237, 230, 0.06);
}

.page-home .vault-panel:last-child {
  border-bottom: none;
}

/* Alternating right-aligned panels */
.page-home .vault-panel--right .vault-content {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;                                  /* push block to right */
  padding-left: var(--padding-x);                    /* flip the extra indent */
  padding-right: calc(var(--padding-x) + 1rem);      /* mirror left indent on the right */
}

.page-home .vault-panel--right .vault-meta {
  justify-content: flex-end;
}

.page-home .vault-panel--right .vault-title,
.page-home .vault-panel--right .vault-desc {
  text-align: right;
}

.page-home .vault-panel--right .vault-tags {
  justify-content: flex-end;
}


.page-home .vault-title {
  font-family: var(--font-display-alt);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.page-home .vault-meta span {
  color: var(--accent-cyan);
}

.page-home .vault-tags span {
  border-color: rgba(168, 85, 247, 0.25);
  color: rgba(240, 237, 230, 0.65);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .vault-tags span:hover {
  border-color: var(--accent-purple);
  color: var(--fg);
}

.page-home .vault-desc {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
}

/* === 11. WORK SECTIONS === */
.page-home .work-sliders-section {
  background: transparent;
}

.page-home .work-intro-section {
  background: transparent;
}

.page-home .section-header {
  border-bottom-color: rgba(240, 237, 230, 0.06);
}

.page-home .section-num {
  color: var(--accent-purple);
}

.page-home .section-rule {
  background: linear-gradient(90deg, var(--accent-purple), transparent);
  opacity: 0.3;
}

.page-home .section-title {
  color: var(--fg);
  font-family: var(--font-display-alt);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* Work Sliders */
.page-home .slider-item {
  border-color: rgba(240, 237, 230, 0.04);
  background: #0a0a0a;
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .slider-item:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.page-home .slider-item img {
  border-radius: 0;
}

/* === 12. CTA SECTION === */
.page-home .cta-section {
  background:
    radial-gradient(ellipse 80% 60% at 30% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 45, 107, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #000000 0%, #0a0015 30%, #10001f 50%, #0a0015 70%, #000000 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.page-home .cta-headline {
  font-family: var(--font-display-alt);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
  background: linear-gradient(135deg,
      var(--accent-purple) 0%,
      var(--accent-magenta) 45%,
      var(--accent-cyan) 100%,
      var(--accent-purple) 0%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.3));
  animation: gradient-shift 6s ease-in-out infinite alternate;
}

.page-home .cta-sub {
  color: rgba(240, 237, 230, 0.45);
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
}

.page-home .cta-bg-watermark span {
  color: var(--fg);
  opacity: 0.02;
}

/* === 13. FOOTER === */
.page-home .footer {
  background: transparent;
  border-top: 1px solid rgba(240, 237, 230, 0.06);
}

.page-home .footer-name {
  color: var(--accent-purple);
  font-family: var(--font-display-alt);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .footer-tagline {
  color: rgba(240, 237, 230, 0.3);
}

.page-home .footer-link {
  color: rgba(240, 237, 230, 0.35);
}

.page-home .footer-link:hover {
  color: var(--accent-cyan);
}

.page-home .footer-copy {
  color: rgba(240, 237, 230, 0.2);
}

/* === 14. MOBILE MENU === */
.page-home .mobile-menu {
  background: transparent;
}

.page-home .mobile-link {
  color: var(--fg);
  font-family: var(--font-display-alt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-home .mobile-link:hover {
  opacity: 0.5;
  color: var(--accent-purple);
}

/* === 15. CHATBOT === */
.page-home #chatbot-orb {
  background: var(--accent-purple);
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.35),
    0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-home .chatbot-icon {
  stroke: #fff !important;
}

.page-home #chatbot-window {
  background: #111;
  border-color: rgba(240, 237, 230, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.page-home .chatbot-header {
  background: #111111;
  border-bottom-color: rgba(240, 237, 230, 0.06);
}

.page-home .chatbot-header-title {
  font-family: var(--font-display-alt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .chatbot-bubble.bot {
  background: #111111;
  color: var(--fg);
}

.page-home .chatbot-bubble.user {
  background: var(--accent-purple);
  color: #fff;
}

.page-home .chatbot-contact-btn {
  background: #111111;
  border-color: rgba(240, 237, 230, 0.1);
  color: var(--fg);
}

.page-home .chatbot-contact-btn:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
}

.page-home .chatbot-input-area {
  background: #111111;
  border-top-color: rgba(240, 237, 230, 0.06);
}

.page-home #chatbot-input {
  background: #0a0a0a;
  border-color: rgba(240, 237, 230, 0.08);
  color: var(--fg);
}

.page-home #chatbot-input:focus {
  border-color: var(--accent-purple);
}

.page-home #chatbot-submit {
  background: var(--accent-purple);
  color: #fff;
}

/* === 16. CURSOR === */
.page-home .cursor {
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--fg);
}

/* === 17. TYPING CURSOR === */
.page-home .text-type__cursor {
  color: var(--accent-purple);
}

/* === 18. LOADER === */
.page-home .loader-overlay {
  background: transparent;
}

/* === 19. MISC ELEMENT OVERRIDES === */

/* Neon glow dividers */
.page-home .hero-eyebrow .rule-short {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Section transitions for work intro */
.page-home .vault-panel .vault-title {
  text-shadow: 0 0 60px rgba(168, 85, 247, 0.08);
  overflow: visible;
  position: relative; /* REQUIRED — anchors absolute pseudo-elements to this element */
  cursor: pointer;
}

/* Glitch pseudo-elements — hidden by default, shown on hover */
.page-home .vault-panel .vault-title::before,
.page-home .vault-panel .vault-title::after {
  content: '';
  opacity: 0;
  animation: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: inherit;
  background-color: transparent;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.page-home .vault-panel .vault-title:hover::before {
  content: attr(data-text);
  opacity: 1;
  left: -8px;
  text-shadow: 5px 0 cyan;
  animation: animate-glitch 2s infinite linear alternate-reverse;
}

.page-home .vault-panel .vault-title:hover::after {
  content: attr(data-text);
  opacity: 1;
  left: 8px;
  text-shadow: -5px 0 red;
  animation: animate-glitch 3s infinite linear alternate-reverse;
}

/* === GLITCH on h1 hero spans === */
.page-home .glitch-line {
  position: relative;
  cursor: pointer;
}

.page-home .glitch-line::before,
.page-home .glitch-line::after {
  content: '';
  opacity: 0;
  animation: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--fg);
  background-color: transparent;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  /* inherit all font styles from parent */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.page-home .glitch-line:hover::before {
  content: attr(data-text);
  opacity: 1;
  left: -8px;
  text-shadow: 5px 0 cyan;
  animation: animate-glitch 2s infinite linear alternate-reverse;
}

.page-home .glitch-line:hover::after {
  content: attr(data-text);
  opacity: 1;
  left: 8px;
  text-shadow: -5px 0 red;
  animation: animate-glitch 3s infinite linear alternate-reverse;
}


@keyframes animate-glitch {
  0%   { clip-path: inset(20% 0 50% 0); }
  5%   { clip-path: inset(10% 0 60% 0); }
  10%  { clip-path: inset(15% 0 55% 0); }
  15%  { clip-path: inset(25% 0 35% 0); }
  20%  { clip-path: inset(30% 0 40% 0); }
  25%  { clip-path: inset(40% 0 20% 0); }
  30%  { clip-path: inset(10% 0 60% 0); }
  35%  { clip-path: inset(15% 0 55% 0); }
  40%  { clip-path: inset(25% 0 35% 0); }
  45%  { clip-path: inset(30% 0 40% 0); }
  50%  { clip-path: inset(20% 0 50% 0); }
  55%  { clip-path: inset(10% 0 60% 0); }
  60%  { clip-path: inset(15% 0 55% 0); }
  65%  { clip-path: inset(25% 0 35% 0); }
  70%  { clip-path: inset(30% 0 40% 0); }
  75%  { clip-path: inset(40% 0 20% 0); }
  80%  { clip-path: inset(20% 0 50% 0); }
  85%  { clip-path: inset(10% 0 60% 0); }
  90%  { clip-path: inset(15% 0 55% 0); }
  95%  { clip-path: inset(25% 0 35% 0); }
  100% { clip-path: inset(30% 0 40% 0); }
}

/* Glitch hover on slider images */
.page-home .slider-item:hover img {
  animation: slider-glitch 0.4s ease-in-out;
}

@keyframes slider-glitch {

  0%,
  100% {
    filter: none;
    transform: scale(1.05);
  }

  25% {
    filter: saturate(2) hue-rotate(15deg);
    transform: scale(1.05) translate(2px, -1px);
  }

  50% {
    filter: saturate(0.5) hue-rotate(-10deg);
    transform: scale(1.05) translate(-1px, 1px);
  }

  75% {
    filter: saturate(1.5) hue-rotate(5deg);
    transform: scale(1.05) translate(1px, 0);
  }
}

/* === 20. RESPONSIVE — TABLET === */
@media (max-width: 1024px) {
  .page-home .hero-globe-wrap {
    width: 150px;
    height: 150px;
    top: 8%;
    left: auto;
    right: 5%;
    transform: none;
    opacity: 0.3;
  }

  .page-home .hero-pixels {
    width: 140px;
    height: 140px;
    bottom: 5%;
    right: 2%;
    transform: scale(0.65);
    transform-origin: bottom right;
  }

  .page-home .hero-headline {
    font-size: clamp(3.5rem, 11vw, 9rem);
  }

  .page-home .hero-content {
    flex: 0 0 70%;
    max-width: 70%;
  }

  .page-home .hero-photo {
    flex: 0 0 30%;
    max-width: 30%;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.2);
  }
}

/* === 21. RESPONSIVE — MOBILE === */
@media (max-width: 700px) {
  .page-home .hero-globe-wrap {
    display: none;
  }

  .page-home .hero-pixels {
    display: none;
  }

  .page-home .hero-stars {
    opacity: 0.4;
  }

  .page-home .hero-grid {
    flex-direction: column-reverse;
  }

  .page-home .hero-content {
    flex: none;
    max-width: 100%;
    width: 100%;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .page-home .hero-photo {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 35vh;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  }

  .page-home .hero-headline {
    font-size: clamp(3.2rem, 15vw, 6rem);
  }

  .page-home .hero-headline .accent-outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .page-home .cta-headline {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }
}