:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --text: #f2f4ff;
  --text-muted: #9aa0b8;
  --cyan: #3de8ff;
  --blue: #4b8cff;
  --magenta: #ff4fd8;
  --pink: #ff6bcb;
  --gradient: linear-gradient(105deg, var(--cyan) 0%, var(--blue) 42%, var(--magenta) 78%, var(--pink) 100%);
  --glow-cyan: 0 0 28px rgba(61, 232, 255, 0.45);
  --glow-magenta: 0 0 28px rgba(255, 79, 216, 0.4);
  --font-display: "Orbitron", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Manrope", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.lang-switching main {
  animation: langPulse 0.55s var(--ease-out);
}

@keyframes langPulse {
  0% { opacity: 1; filter: blur(0); }
  35% { opacity: 0.35; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(61, 232, 255, 0.7);
  transition: width 0.05s linear;
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 232, 255, 0.14), rgba(255, 79, 216, 0.07) 42%, transparent 70%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-dot {
  pointer-events: none;
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--magenta);
  z-index: 70;
  opacity: 0;
  will-change: transform;
  mix-blend-mode: screen;
}

body.has-pointer .cursor-glow,
body.has-pointer .cursor-dot {
  opacity: 1;
}

body.has-pointer a:hover ~ .cursor-dot,
body.has-pointer.hovering-link .cursor-dot {
  transform: scale(2.4);
  background: var(--magenta);
}

.fx-flash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(61, 232, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fx-flash.on {
  opacity: 1;
  animation: flashOut 0.7s var(--ease-out) forwards;
}

@keyframes flashOut {
  to { opacity: 0; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3.5vw, 3rem);
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.94), rgba(5, 5, 8, 0.5) 75%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.4s var(--ease-out);
}

.site-header .brand-mark,
.site-header .header-actions {
  position: relative;
  z-index: 1;
}

.site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 8, 0.9);
}

.site-header.hide-up {
  transform: translateY(-110%);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(61, 232, 255, 0.5));
  transition: transform 0.45s var(--ease-spring);
}

.brand-mark:hover img {
  transform: rotate(-10deg) scale(1.1);
}

.brand-mark span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(0.85rem, 2.2vw, 1.75rem);
  z-index: 0;
}

@media (max-width: 780px) {
  .site-header {
    background: rgba(5, 5, 8, 0.96);
    backdrop-filter: none;
  }

  .orb {
    display: none;
    animation: none;
    will-change: auto;
  }

  .logo-mark {
    filter: none;
    animation: logoIn 1.15s var(--ease-expo) both;
  }
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-expo);
}

.nav a:hover {
  color: var(--cyan);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  gap: 2px;
}

.lang-btn {
  min-width: 2.35rem;
  padding: 0.4rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease-spring);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: #050508;
  background: var(--gradient);
  box-shadow: 0 0 16px rgba(61, 232, 255, 0.35);
  transform: scale(1.04);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35), transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-expo);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn-primary {
  background: var(--gradient);
  color: #050508;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan), var(--glow-magenta);
}

.btn-outline {
  border-color: rgba(61, 232, 255, 0.45);
  color: var(--text);
  background: rgba(61, 232, 255, 0.06);
}

.btn-outline:hover {
  border-color: var(--magenta);
  box-shadow: var(--glow-magenta);
}

.btn-ghost {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.btn-linkedin {
  margin-top: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 5rem;
  overflow: hidden;
  perspective: 1000px;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.orb-cyan {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: var(--cyan);
  top: 8%;
  left: 5%;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-magenta {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: var(--magenta);
  bottom: 10%;
  right: 0;
  animation: drift 15s ease-in-out -3s infinite alternate-reverse;
}

.orb-mid {
  width: min(35vw, 260px);
  height: min(35vw, 260px);
  background: var(--blue);
  top: 40%;
  left: 45%;
  opacity: 0.25;
  animation: drift 10s ease-in-out -1s infinite alternate;
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  transform: translate(-50%, -50%);
}

.hero-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(61, 232, 255, 0.12);
  border-radius: 50%;
  animation: ringPulse 6s ease-out infinite;
}

.hero-rings span:nth-child(2) {
  inset: 12%;
  border-color: rgba(255, 79, 216, 0.12);
  animation-delay: 1.2s;
}

.hero-rings span:nth-child(3) {
  inset: 24%;
  border-color: rgba(75, 140, 255, 0.15);
  animation-delay: 2.4s;
}

@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0; }
  30% { opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(32px, 40px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.logo-wrap {
  position: relative;
  margin-bottom: 1.75rem;
}

.logo-ring {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient) border-box;
  opacity: 0.55;
  animation: spinSlow 18s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.hero-logo {
  position: relative;
  width: min(68vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(61, 232, 255, 0.35)) drop-shadow(0 0 40px rgba(255, 79, 216, 0.25));
  animation: logoIn 1.15s var(--ease-expo) both, pulseGlow 4s ease-in-out 1.2s infinite;
  transition: transform 0.5s var(--ease-out);
}

.logo-wrap:hover .hero-logo {
  transform: scale(1.04) rotate(-2deg);
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(24px) rotateX(18deg);
    filter: blur(8px) drop-shadow(0 0 0 transparent);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 24px rgba(61, 232, 255, 0.35)) drop-shadow(0 0 40px rgba(255, 79, 216, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(61, 232, 255, 0.6)) drop-shadow(0 0 64px rgba(255, 79, 216, 0.45));
  }
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.9rem;
  max-width: 22ch;
}

.hero-tagline .word,
.hero-tagline .char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-tagline .word {
  margin-right: 0.28em;
}

.hero-tagline .word > span,
.hero-tagline .char > span {
  display: inline-block;
  transform: translateY(120%) rotateX(40deg);
  opacity: 0;
  animation: wordUp 0.85s var(--ease-expo) forwards;
}

@keyframes wordUp {
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  font-weight: 300;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(61, 232, 255, 0.4);
  border-radius: 12px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.5s forwards;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.scroll-hint:hover {
  border-color: var(--magenta);
}

.scroll-hint span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes fadeIn {
  to { opacity: 0.85; }
}

.hero-shapes {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.shape {
  width: 18px;
  height: 18px;
  display: block;
}

.shape-tri {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
  animation: floatShape 3.2s ease-in-out infinite;
}

.shape-circle {
  border-radius: 50%;
  border: 2px solid #c77dff;
  box-shadow: 0 0 8px #c77dff;
  animation: floatShape 3.2s ease-in-out 0.35s infinite;
}

.shape-x {
  position: relative;
  width: 16px;
  height: 16px;
  animation: floatShape 3.2s ease-in-out 0.7s infinite;
}

.shape-x::before,
.shape-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #7ec8ff;
  box-shadow: 0 0 6px #7ec8ff;
  transform-origin: center;
}

.shape-x::before { transform: translateX(-50%) rotate(45deg); }
.shape-x::after { transform: translateX(-50%) rotate(-45deg); }

.shape-sq {
  border: 2px solid var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: floatShape 3.2s ease-in-out 1.05s infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.15rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 18, 0.65);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: marquee 26s linear infinite;
}

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

.marquee-track span:nth-child(odd) {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 11vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.line-mask {
  display: block;
  overflow: hidden;
}

.line-mask > span {
  display: block;
  transform: translateY(115%) skewY(4deg);
  transition: transform 0.95s var(--ease-expo);
}

.reveal.visible .line-mask > span,
h2.reveal.visible .line-mask > span {
  transform: translateY(0) skewY(0);
}

.line-mask:nth-child(2) > span { transition-delay: 0.12s; }
.line-mask:nth-child(3) > span { transition-delay: 0.24s; }

/* Char split for stack title */
.h-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) rotate(8deg);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-spring);
}

.reveal.visible .h-char {
  opacity: 1;
  transform: none;
}

/* Craft */
.craft {
  background: linear-gradient(180deg, transparent, rgba(12, 12, 18, 0.92) 15%, rgba(12, 12, 18, 0.92) 85%, transparent);
}

.craft-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.craft-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: background 0.4s ease, padding-left 0.45s var(--ease-expo);
}

.craft-list li:hover {
  padding-left: 0.85rem;
  background: linear-gradient(90deg, rgba(61, 232, 255, 0.06), transparent 65%);
}

.craft-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(61, 232, 255, 0.5);
  transition: width 1s var(--ease-expo);
}

.craft-list li.reveal.visible .craft-line {
  width: 100%;
  transition-delay: 0.28s;
}

.craft-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 0.2rem;
  transition: transform 0.45s var(--ease-spring);
}

.craft-list li:hover .craft-num {
  transform: scale(1.2) translateX(4px);
}

.craft-list h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.craft-list p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 30rem;
}

/* Pillars */
.pillars {
  display: grid;
  gap: 1.25rem;
  perspective: 1200px;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.pillar {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(61, 232, 255, 0.05), transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.pillar-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(61, 232, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pillar:hover .pillar-glow {
  opacity: 1;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08), transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-expo);
}

.pillar:hover {
  border-color: rgba(61, 232, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(61, 232, 255, 0.15);
}

.pillar:hover::before {
  transform: translateX(130%);
}

.pillar-icon {
  height: 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease-spring);
}

.pillar:hover .pillar-icon {
  transform: scale(1.2) rotate(-8deg);
}

.pillar-icon .shape {
  animation: none;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.98rem;
}

/* Connect */
.connect {
  text-align: center;
}

.connect-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.75rem, 7vw, 4.5rem) 1.5rem;
  border: 1px solid rgba(61, 232, 255, 0.18);
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(61, 232, 255, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(255, 79, 216, 0.1), transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
  transition: box-shadow 0.7s ease, border-color 0.7s ease, transform 0.7s var(--ease-out);
}

.connect-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 1px solid rgba(61, 232, 255, 0.35);
  opacity: 0;
  pointer-events: none;
}

.connect-inner.reveal.visible {
  border-color: rgba(255, 79, 216, 0.4);
  box-shadow: 0 0 60px rgba(61, 232, 255, 0.15), 0 0 100px rgba(255, 79, 216, 0.1);
}

.connect-inner.reveal.visible .connect-pulse {
  animation: connectBurst 1.4s var(--ease-out) 0.15s both;
}

@keyframes connectBurst {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(6); opacity: 0; }
}

.connect .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.connect h2 {
  max-width: none;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
}

.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-inner > a:last-child {
  color: var(--cyan);
  font-size: 0.9rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-inner > a:last-child:hover {
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(255, 79, 216, 0.5);
}

/* Reveal system */
.reveal {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease-expo),
    transform 0.9s var(--ease-expo),
    filter 0.9s var(--ease-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal[data-reveal="fade-up"],
.reveal[data-reveal="blur-up"] {
  transform: translateY(42px);
  filter: blur(8px);
}

.reveal[data-reveal="fade-right"] {
  transform: translateX(-36px);
  filter: blur(4px);
}

.reveal[data-reveal="fade-left"] {
  transform: translateX(36px);
}

.reveal[data-reveal="scale-up"] {
  transform: translateY(32px) scale(0.88);
  filter: blur(6px);
}

.reveal[data-reveal="slide-glow"] {
  transform: translateX(-24px) translateY(20px);
  filter: brightness(0.6);
}

.reveal[data-reveal="flip-up"] {
  transform: perspective(800px) rotateX(18deg) translateY(40px);
  filter: blur(6px);
  transform-origin: center bottom;
}

.reveal[data-reveal="glow-in"],
.reveal[data-reveal="burst"] {
  transform: translateY(30px) scale(0.94);
  filter: brightness(0.55) saturate(0.6);
}

.reveal[data-reveal="lines"] {
  opacity: 1;
  filter: none;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* After reveal, tilt follows the cursor instantly (no leftover transform transition/delay). */
.reveal.visible.tilt {
  transition:
    opacity 0.9s var(--ease-expo),
    filter 0.9s var(--ease-expo),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    padding-left 0.45s var(--ease-expo);
  transition-delay: 0ms;
}

.reveal.visible.tilt.is-tilting {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal[data-reveal],
  .line-mask > span,
  .hero-tagline .word > span,
  .hero-tagline .char > span,
  .h-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .marquee-track,
  .logo-ring,
  .hero-rings span {
    animation: none;
  }

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