
:root {
  --bg: #050715;
  --bg-deep: #02030a;
  --cyan: #36e8ff;
  --blue: #4f7dff;
  --violet: #b061ff;
  --pink: #ff4fd8;
  --gold: #ffd36e;
  --white: #ffffff;
  --muted: #aeb9d4;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 30px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
#siteLoader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.site-loaded main,
body.site-loaded header,
body.site-loaded section,
body.site-loaded footer {
  opacity: 1;
  visibility: visible;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 125, 255, 0.22), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 79, 216, 0.15), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-deep) 58%, #090613);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    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: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

#threeScene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none !important;
  touch-action: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  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='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 232, 255, 0.18), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 42px)); margin-inline: auto; }

/* 02. Layout + navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(5, 7, 21, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.nav-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #02030a;
  background: conic-gradient(from 120deg, var(--cyan), var(--violet), var(--pink), var(--gold), var(--cyan));
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(54, 232, 255, 0.28);
  transform: rotate(-8deg);
}

.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 20px; color: #dfe6ff; font-weight: 800; font-size: 14px; }
.nav-links a { opacity: 0.88; transition: 0.25s var(--ease); }
.nav-links a:hover { opacity: 1; color: var(--cyan); }
.nav-cta { padding: 11px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #02030a !important; box-shadow: 0 14px 40px rgba(54, 232, 255, 0.25); }
.menu-btn { display: none; width: 48px; height: 48px; color: white; border: 1px solid var(--line); background: var(--glass); border-radius: 15px; font-size: 24px; }

/* 03. Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  padding: 82px 0 64px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 62px; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(54, 232, 255, 0.09);
  border: 1px solid rgba(54, 232, 255, 0.24);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero-name-3d {
  display: inline-block;
  margin: 0 0 18px;
  font-family: Orbitron, sans-serif;
  font-size: clamp(35px, 6vw, 81px);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 22%, var(--violet) 52%, var(--pink) 78%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(54, 232, 255, 0.18),
    0 18px 34px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 0 12px rgba(54, 232, 255, 0.22));
  transform: perspective(600px) rotateX(16deg);
  animation: heroNameFloat 4.5s ease-in-out infinite;
}

.hero h1 {
  max-width: 950px;
  font-size: clamp(44px, 7.3vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

.hero h1 span, .section-head h2 strong {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text, .section-head p, .about-copy p, .contact-copy p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 16px;
}

.hero-text { max-width: 680px; margin-bottom: 32px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 9px 12px; color: #dce6ff; border-radius: 999px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.11); font-size: 12px; font-weight: 900; }

.hero-panel { perspective: 1000px; }
.holo-card {
  position: relative;
  min-height: 550px;
  padding: 28px;
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 0%, rgba(54, 232, 255, 0.18), transparent 35%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.holo-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 90deg, transparent, rgba(54, 232, 255, 0.18), transparent, rgba(255, 79, 216, 0.16), transparent);
  animation: rotateAura 12s linear infinite;
}

.holo-topline, .holo-title, .holo-card p, .holo-stats { position: relative; z-index: 2; }
.holo-topline { display: flex; justify-content: space-between; color: #dcf9ff; font-family: Orbitron, sans-serif; font-size: 12px; letter-spacing: 0.1em; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.12); }
.holo-title { margin: 150px 0 14px; font-family: Orbitron, sans-serif; font-size: clamp(42px, 5vw, 76px); font-weight: 900; letter-spacing: 0.08em; text-shadow: 0 0 30px rgba(54, 232, 255, 0.7); }
.holo-card p { max-width: 430px; color: #dce6ff; line-height: 1.7; }
.holo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 120px; }
.holo-stats div { padding: 16px; border-radius: 20px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.11); }
.holo-stats strong { display: block; color: var(--cyan); font-size: 24px; }
.holo-stats small { color: var(--muted); }

.marquee { width: 100%; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); margin-top: 64px; transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; gap: 28px; padding: 17px 0; animation: marquee 24s linear infinite; }
.marquee-track span { font-family: Orbitron, sans-serif; color: rgba(255, 255, 255, 0.88); font-weight: 900; letter-spacing: 0.08em; }

/* 04. Cards and sections */
.section { position: relative; padding: 110px 0; }
.section-head { max-width: 850px; margin-bottom: 42px; }
.section-head h2, .about-copy h2, .contact-copy h2 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1; letter-spacing: -0.06em; margin-bottom: 16px; }
.services-grid, .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-grid { display: grid; grid-template-columns: 1fr 0.88fr; gap: 32px; align-items: start; }
.about-copy { position: sticky; top: 120px; }
.about-copy p + p { margin-top: 18px; }
.mission-stack { display: grid; gap: 18px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center; }

.service-card, .work-card, .mission-card, .timeline-card, .process-step, .contact-form {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.service-card::before, .work-card::before, .mission-card::before, .timeline-card::before, .process-step::before, .contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 0%), rgba(54, 232, 255, 0.18), transparent 34%);
  opacity: 0;
  transition: 0.35s var(--ease);
  pointer-events: none;
}

.service-card:hover::before, .work-card:hover::before, .mission-card:hover::before, .timeline-card:hover::before, .process-step:hover::before, .contact-form:hover::before { opacity: 1; }
.service-card { min-height: 285px; padding: 26px; transform-style: preserve-3d; }
.service-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, rgba(54, 232, 255, 0.22), rgba(176, 97, 255, 0.18)); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 28px; margin-bottom: 24px; }
.service-card h3, .work-card h3, .mission-card h3, .timeline-card h3, .process-step h3, .contact-form h3 { position: relative; font-size: 22px; margin-bottom: 12px; }
.service-card p, .work-card p, .mission-card p, .timeline-card li, .process-step p { position: relative; color: var(--muted); line-height: 1.75; }

.work-card { min-height: 320px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; transition: 0.28s var(--ease); }
.work-card.featured { grid-column: span 2; background: radial-gradient(circle at 20% 0%, rgba(255, 79, 216, 0.18), transparent 30%), linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04)); }
.work-card:hover { transform: translateY(-8px); }
.work-tag { width: fit-content; color: var(--cyan); border: 1px solid rgba(54, 232, 255, 0.24); background: rgba(54, 232, 255, 0.08); border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 900; margin-bottom: 18px; }
.work-card h3 { font-size: clamp(26px, 3vw, 42px); }
.work-link { color: var(--gold); font-weight: 900; }

.mission-card, .timeline-card, .process-step, .contact-form { padding: 28px; }
.timeline-card ul { list-style: none; display: grid; gap: 13px; }
.timeline-card li { padding-left: 24px; position: relative; }
.timeline-card li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); }
.process-step { min-height: 225px; }
.process-step span { display: block; font-family: Orbitron, sans-serif; font-size: 42px; color: rgba(255, 255, 255, 0.14); margin-bottom: 36px; }

.contact-actions { display: grid; gap: 12px; margin-top: 28px; }
.contact-pill { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.075); border: 1px solid var(--line); color: #e8edff; font-weight: 800; transition: 0.25s var(--ease); }
.contact-pill:hover { transform: translateX(7px); color: var(--cyan); }
.contact-form label { display: block; color: #e8edff; font-weight: 800; font-size: 13px; margin: 12px 0 8px; }
.contact-form input, .contact-form textarea { width: 100%; color: white; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(0, 0, 0, 0.22); outline: none; border-radius: 18px; padding: 16px 18px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(54, 232, 255, 0.65); box-shadow: 0 0 0 4px rgba(54, 232, 255, 0.08); }
.contact-form .btn { width: 100%; margin-top: 16px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(0, 0, 0, 0.18); }
.footer-content { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-weight: 700; }
.footer a { color: var(--cyan); }

/* 05. Contact envelope - converted from SCSS to normal CSS */
.letter-image {
  position: relative;
  width: 220px;
  height: 230px;
  margin: 8px auto 26px;
  cursor: pointer;
  transform: scale(0.86);
}
.animated-mail { position: absolute; top: 20px; left: 10px; width: 200px; height: 150px; transition: transform 0.4s var(--ease); }
.mail-body { position: absolute; bottom: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 100px 200px; border-color: transparent transparent #ff6b61 transparent; z-index: 2; }
.top-fold { position: absolute; top: 50px; width: 0; height: 0; border-style: solid; border-width: 50px 100px 0 100px; transform-origin: 50% 0%; transition: transform 0.4s 0.4s var(--ease), z-index 0.2s 0.4s; border-color: #d84f48 transparent transparent transparent; z-index: 2; }
.back-fold { position: absolute; bottom: 0; width: 200px; height: 100px; background: #c8434a; z-index: 0; }
.left-fold { position: absolute; bottom: 0; width: 0; height: 0; border-style: solid; border-width: 50px 0 50px 100px; border-color: transparent transparent transparent #ee5a54; z-index: 2; }
.letter { position: absolute; left: 20px; bottom: 0; width: 160px; height: 60px; background: #ffffff; z-index: 1; overflow: hidden; transition: height 0.4s 0.2s var(--ease); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22); }
.letter-border { height: 10px; width: 100%; background: repeating-linear-gradient(-45deg, #cb5a5e, #cb5a5e 8px, transparent 8px, transparent 18px); }
.letter-title { margin-top: 10px; margin-left: 8px; height: 10px; width: 42%; background: #cb5a5e; border-radius: 999px; }
.letter-context { margin-top: 10px; margin-left: 8px; height: 10px; width: 24%; background: #cb5a5e; border-radius: 999px; }
.letter-stamp { margin-top: 28px; margin-left: 118px; border-radius: 50%; height: 30px; width: 30px; background: #cb5a5e; opacity: 0.3; display: grid; place-items: center; }
.letter-stamp-inner { width: 15px; height: 15px; border: 2px solid #cb5a5e; border-radius: 50%; }
.letter-shadow { position: absolute; top: 202px; left: 50%; width: 360px; max-width: 90vw; height: 30px; transform: translateX(-50%); transition: width 0.4s var(--ease); border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)); }
.letter-image:hover .animated-mail { transform: translateY(50px); }
.letter-image:hover .top-fold { transition: transform 0.4s var(--ease), z-index 0.2s; transform: rotateX(180deg); z-index: 0; }
.letter-image:hover .letter { height: 180px; }
.letter-image:hover .letter-shadow { width: 250px; }

/* 06. Fizzy buttons - clean version inspired by the SCSS button */
.btn {
  position: relative;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  isolation: isolate;
}
.btn-primary { color: #02030a; background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink)); box-shadow: 0 18px 48px rgba(79, 125, 255, 0.32); }
.btn-ghost { color: white; background: var(--glass); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-4px) scale(1.02); }
.btn span:first-child { position: relative; z-index: 2; }
.btn-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle { position: absolute; width: var(--size, 7px); height: var(--size, 7px); left: var(--x, 50%); top: var(--y, 50%); border-radius: 50%; background: var(--particle-color, var(--cyan)); opacity: 0; animation: fizzyParticle 700ms var(--ease) forwards; box-shadow: 0 0 14px currentColor; }
.fizzy-btn.is-bursting { animation: buttonPulse 450ms var(--ease); }

/* Animation helpers */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fizzyParticle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y))) scale(0); } }
@keyframes buttonPulse { 0%, 100% { transform: translateY(-4px) scale(1.02); } 50% { transform: translateY(-6px) scale(1.06); } }
@keyframes floatCard { 0%, 100% { transform: rotateY(-8deg) rotateX(6deg) translateY(0); } 50% { transform: rotateY(-2deg) rotateX(2deg) translateY(-18px); } }
@keyframes rotateAura { to { transform: rotate(360deg); } }
@keyframes heroNameFloat { 0%, 100% { transform: perspective(600px) rotateX(16deg) translateY(0); } 50% { transform: perspective(600px) rotateX(16deg) translateY(-8px); } }

/* 07. Responsive design */
@media (max-width: 980px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 84px; left: 21px; right: 21px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(5, 7, 21, 0.94); box-shadow: var(--shadow); }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 12px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .holo-card { min-height: 420px; }
  .holo-title { margin-top: 90px; }
  .holo-stats { margin-top: 80px; }
  .services-grid, .work-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-copy { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 46px; }
  .hero-name-3d { font-size: clamp(34px, 13vw, 58px); letter-spacing: 0.08em; }
  .hero h1 { font-size: clamp(38px, 16vw, 62px); }
  .section { padding: 78px 0; }
  .services-grid, .work-grid, .process-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: auto; }
  .footer-content { flex-direction: column; }
  .holo-stats { grid-template-columns: 1fr; margin-top: 48px; }
  .letter-image { transform: scale(0.76); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  #threeScene { display: none; }
}



/* 08. 3D loading screen */
.site-loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(54,232,255,.16),transparent 28%),radial-gradient(circle at 60% 70%,rgba(255,79,216,.12),transparent 32%),linear-gradient(145deg,#02030a,#050715 58%,#000);transition:opacity .7s var(--ease),visibility .7s var(--ease)}
.site-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.loader-space{position:relative;width:min(360px,84vw);min-height:330px;display:grid;place-items:center;text-align:center;border:1px solid rgba(54,232,255,.2);border-radius:42px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035));box-shadow:0 40px 120px rgba(0,0,0,.6),0 0 70px rgba(54,232,255,.12);backdrop-filter:blur(24px);overflow:hidden}
.loader-space:before{content:"";position:absolute;inset:-50%;background:conic-gradient(from 90deg,transparent,rgba(54,232,255,.2),transparent,rgba(255,79,216,.18),transparent);animation:rotateAura 4s linear infinite}
.loader-v{position:relative;z-index:2;width:128px;height:150px;transform-style:preserve-3d;animation:loaderVSpin 2.2s linear infinite}
.loader-v span{position:absolute;top:0;width:26px;height:150px;border-radius:999px;background:linear-gradient(180deg,var(--cyan),var(--violet),var(--pink),var(--gold));box-shadow:0 0 24px rgba(54,232,255,.6),0 0 60px rgba(255,79,216,.28)}
.loader-v span:first-child{left:31px;transform:rotate(-24deg)}
.loader-v span:last-child{right:31px;transform:rotate(24deg)}
.loader-orbit{position:absolute;z-index:1;width:190px;height:190px;border:1px solid rgba(54,232,255,.45);border-top-color:rgba(255,211,110,.9);border-radius:50%;transform:rotateX(66deg);animation:loaderOrbit 1.4s linear infinite;box-shadow:0 0 36px rgba(54,232,255,.2)}
.loader-space p,.loader-space small{position:relative;z-index:2}.loader-space p{margin-top:18px;color:white;font-family:Orbitron,sans-serif;font-size:13px;letter-spacing:.14em;text-transform:uppercase}.loader-space small{color:var(--muted);font-weight:800}

/* Contact envelope recolored for Velmora */
.mail-body{border-color:transparent transparent var(--violet) transparent;filter:drop-shadow(0 0 20px rgba(176,97,255,.25))}
.top-fold{border-color:var(--blue) transparent transparent transparent}.back-fold{background:linear-gradient(135deg,#14356f,#4f7dff)}.left-fold{border-color:transparent transparent transparent var(--cyan)}
.letter{background:linear-gradient(180deg,#fff,#dfe9ff)}.letter-border{background:repeating-linear-gradient(-45deg,var(--cyan),var(--cyan) 8px,transparent 8px,transparent 18px)}
.letter-title,.letter-context,.letter-stamp{background:linear-gradient(90deg,var(--blue),var(--violet),var(--pink))}.letter-shadow{background:radial-gradient(rgba(54,232,255,.32),rgba(176,97,255,.12),rgba(0,0,0,0))}
.marquee-track{will-change:transform;animation:marquee 24s linear infinite}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(calc(-100% + 100vw))}}
@keyframes loaderVSpin{0%{transform:rotateY(0deg) rotateX(12deg)}100%{transform:rotateY(360deg) rotateX(12deg)}}
@keyframes loaderOrbit{to{transform:rotateX(66deg) rotateZ(360deg)}}






img,
video,
canvas {
  max-width: 100%;
}

body {
  -webkit-text-size-adjust: 100%;
}

.navbar {
  width: 100%;
}

.nav-content {
  position: relative;
}

.hero,
.section {
  isolation: isolate;
}

.hero-copy,
.section-head,
.about-copy,
.contact-copy {
  overflow-wrap: anywhere;
}

.hero h1,
.section-head h2,
.about-copy h2,
.contact-copy h2 {
  text-wrap: balance;
}

.hero-text,
.section-head p,
.about-copy p,
.contact-copy p,
.service-card p,
.work-card p {
  text-wrap: pretty;
}

}

}

  overflow: hidden;
}

#threeScene {
  touch-action: none;
}

/* Large laptops */
@media (max-width: 1280px) {
  .container {
    width: min(1120px, calc(100% - 38px));
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 6.4vw, 82px);
  }

  }
}

/* Tablets */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 34px, 980px);
  }

  .nav-content {
    min-height: 76px;
  }

  .nav-links {
    top: 76px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 52px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-panel {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .holo-card {
    min-height: 390px;
  }

  .services-grid,
  .work-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-column: span 2;
  }

    height: 320px;
  }

  }

  .letter-image {
    margin-inline: auto;
  }
}

/* Phones */
@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 680px);
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .nav-links {
    left: 14px;
    right: 14px;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
  }

  .hero {
    padding: 42px 0 44px;
  }

  .hero-name-3d {
    font-size: clamp(32px, 12vw, 54px);
    letter-spacing: 0.07em;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(38px, 13.5vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .hero-text {
    font-size: 15.5px;
  }

  .hero-actions,
  .trust-row {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .trust-row span {
    flex: 1 1 auto;
    text-align: center;
  }

  .holo-card {
    min-height: 330px;
    border-radius: 30px;
    padding: 20px;
  }

  .holo-title {
    margin-top: 62px;
    font-size: clamp(34px, 12vw, 52px);
  }

  .holo-stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(31px, 11vw, 48px);
    line-height: 1.04;
  }

  .services-grid,
  .work-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
  }

  .service-card,
  .work-card,
  .mission-card,
  .timeline-card,
  .process-step,
  .contact-form {
    border-radius: 24px;
    padding: 22px;
  }

    height: 285px;
    border-radius: 28px;
    perspective: 850px;
  }

    width: 180px;
    height: 150px;
    animation-duration: 46s;
  }

    width: 180px;
    height: 150px;
    border-radius: 18px;
  }

    height: 150px;
  }

  .marquee {
    margin-top: 42px;
  }

  .marquee-track {
    animation-duration: 32s;
  }

  .loader-space {
    width: min(320px, 88vw);
    min-height: 300px;
    border-radius: 30px;
  }

  .loader-v {
    transform: scale(0.86);
  }

  .letter-image {
    transform: scale(0.7);
    margin-top: -6px;
    margin-bottom: 8px;
  }

  .footer-content {
    text-align: center;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 420px);
  }

  .brand-text {
    max-width: 165px;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: clamp(34px, 14.5vw, 50px);
  }

  .eyebrow,
  .section-kicker {
    font-size: 11px;
    padding: 9px 12px;
  }

}

/* =====================================================
   10. Final Velmora fixes
   Matches the current index.html:
   - #threeScene for the main 3D background
   - #velmoraCyberCityFixed + #whaleWorld3D for the cyber city
   - Gallery removed
   - Mobile scroll blocking fixed
===================================================== */

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

body {
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* Main Three.js background */
#threeScene {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
  touch-action: none !important;
  display: block !important;
}

/* Cyber city fixed 3D section */
#velmoraCyberCityFixed {
  position: fixed !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: clamp(420px, 55vh, 700px) !important;
  z-index: 2 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  touch-action: none !important;
}

#whaleWorld3D {
  width: 100vw !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  pointer-events: none !important;
  touch-action: none !important;
}

/* Website content must stay above the 3D layers */
.navbar,
.hero,
.section,
.footer,
main,
header,
nav,
section:not(#velmoraCyberCityFixed) {
  position: relative;
  z-index: 5 !important;
}

/* Non-interactive effects should never block touch */
.noise,
.cursor-orb,
canvas {
  pointer-events: none !important;
}

/* Loader must disappear completely */
#siteLoader {
  z-index: 9999 !important;
}

#siteLoader.is-hidden,
.site-loader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.site-loader,
.loader,
.preloader {
  pointer-events: none;
}

@media (max-width: 1024px) {
  #velmoraCyberCityFixed {
    height: clamp(360px, 48vh, 580px) !important;
  }
}

@media (max-width: 640px) {
  #velmoraCyberCityFixed {
    height: clamp(300px, 44vh, 480px) !important;
  }
}
