:root {
  --bg: #05070b;
  --bg-soft: #080c12;
  --panel: rgba(14, 18, 25, 0.74);
  --panel-strong: rgba(18, 23, 31, 0.92);
  --text: #f4f6fb;
  --muted: #a3a9b5;
  --muted-2: #737b8a;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.24);
  --blue: #1668d8;
  --blue-2: #2d8cff;
  --silver: #cfd2d7;
  --shadow: 0 28px 80px rgba(0,0,0,0.45);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 0%, rgba(44, 115, 220, 0.16), transparent 34%),
    radial-gradient(circle at 10% 30%, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(140deg, #030406 0%, #080b10 45%, #030407 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(45,140,255,0.35); }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle, black, transparent 90%);
}

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05), transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.035), transparent 1px);
  background-size: 9px 9px, 13px 13px;
  opacity: .45;
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(22,104,216,.18), transparent 62%);
  filter: blur(10px);
  opacity: .65;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.09), transparent 26%),
    radial-gradient(circle at 50% 60%, rgba(22,104,216,0.18), transparent 28%),
    #05070b;
  transition: opacity .8s ease, visibility .8s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: min(40vw, 360px);
  border-radius: 30px;
  animation: logoSlam 1.15s cubic-bezier(.2,1.18,.18,1) both;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.75));
}

.preloader-name {
  position: absolute;
  bottom: 13vh;
  color: var(--silver);
  letter-spacing: .54em;
  text-transform: uppercase;
  font-size: clamp(.75rem, 1.2vw, 1rem);
  text-shadow: 0 10px 26px rgba(0,0,0,.85);
  animation: nameReveal 1.4s ease .45s both;
}

.impact-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(45,140,255,.45);
  border-radius: 50%;
  animation: ringImpact 1.1s ease .35s both;
}

@keyframes logoSlam {
  0% { opacity: 0; transform: translateY(-120px) translateZ(0) scale(2.6) rotateX(28deg); filter: blur(8px); }
  55% { opacity: 1; transform: translateY(12px) scale(.86); filter: blur(0); }
  68% { transform: translateY(-6px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes ringImpact {
  0%, 36% { opacity: 0; transform: scale(.1); }
  55% { opacity: .9; }
  100% { opacity: 0; transform: scale(2.4); }
}

@keyframes nameReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(5,7,11,.48);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.site-header.scrolled {
  background: rgba(5,7,11,.82);
  border-color: rgba(255,255,255,.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: .05em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: .92rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.main-nav .nav-cta {
  color: var(--text);
  background: linear-gradient(135deg, rgba(22,104,216,.9), rgba(45,140,255,.7));
  border: 1px solid rgba(255,255,255,.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: var(--text);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  width: min(calc(100% - 44px), 1360px);
  margin: 0 auto;
  padding: 130px 0 74px;
  perspective: 1200px;
}

.hero-bg {
  position: absolute;
  inset: -120px -60px 0;
  z-index: -2;
  background:
    radial-gradient(circle at 75% 45%, rgba(255,255,255,.11), transparent 20%),
    radial-gradient(circle at 70% 52%, rgba(22,104,216,.20), transparent 30%),
    linear-gradient(120deg, rgba(255,255,255,.03), transparent 42%);
}

.hero-grid {
  position: absolute;
  inset: 18% -20px 8%;
  z-index: -1;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotateX(68deg) translateY(45px);
  transform-origin: bottom;
  mask-image: linear-gradient(to bottom, transparent, black 28%, transparent 90%);
}

.hero-content { max-width: 670px; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--blue-2);
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 7vw, 7.6rem);
  line-height: .91;
  letter-spacing: -.07em;
  margin-bottom: 28px;
  color: var(--text);
  text-shadow: 0 30px 100px rgba(0,0,0,.75);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.hero-text, .section-head p, .about-panel p, .contact-copy p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn:hover { transform: translateY(-3px); }
.btn.primary {
  background: linear-gradient(135deg, #1059c5, #2d8cff 55%, #7bb8ff);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 16px 44px rgba(22,104,216,.32);
}
.btn.ghost {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--silver);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 680px);
  transform-style: preserve-3d;
  transition: transform .1s linear, opacity .1s linear, filter .1s linear;
}

.metal-frame {
  position: relative;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.05), rgba(45,140,255,.16));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.22);
  transform: rotateY(-10deg) rotateX(3deg);
  animation: floatLogo 5.8s ease-in-out infinite;
}

.metal-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent 42%);
  opacity: .38;
  pointer-events: none;
}

.metal-frame img {
  width: 100%;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,140,255,.24);
  pointer-events: none;
}
.orbit-one { inset: -20px 38px 20px; transform: rotateX(70deg); }
.orbit-two { inset: 24px -12px -20px; transform: rotateY(62deg); }

@keyframes floatLogo {
  0%, 100% { transform: rotateY(-10deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(5deg) translateY(-14px); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .28em;
}
.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--blue-2), transparent);
  animation: scrollLine 1.6s ease infinite;
}
@keyframes scrollLine { 50% { transform: translateY(8px); opacity: .45; } }

.section {
  position: relative;
  padding: 105px 0;
}
.container {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.section-head { max-width: 740px; }
.section-head.center { text-align: center; margin: 0 auto 42px; }
.section-kicker { margin-bottom: 16px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.stat-card, .service-card, .project-card, .contact-card, .about-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(9, 13, 20, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.stat-card::before, .service-card::before, .project-card::before, .contact-card::before, .about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(45,140,255,.18), transparent 34%);
  opacity: 0;
  transition: opacity .25s ease;
}
.tilt-card:hover::before { opacity: 1; }

.stat-card {
  padding: 34px;
  min-height: 190px;
}
.stat-card span {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.07em;
  background: linear-gradient(135deg, #fff, #999, #2d8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card p { color: var(--muted); line-height: 1.65; }

.split-layout {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 46px;
  align-items: start;
}
.split-layout.reverse { grid-template-columns: .9fr 1.1fr; align-items: center; }
.sticky-copy { position: sticky; top: 130px; }
.service-stack {
  display: grid;
  gap: 18px;
}
.service-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 20px;
  transform-style: preserve-3d;
}
.icon-box {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  color: var(--blue-2);
  font-size: 1.5rem;
}
.service-card p, .project-card p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.project-card {
  grid-column: span 3;
  padding: 30px;
  min-height: 270px;
}
.project-card.featured { grid-column: span 6; min-height: 260px; }
.project-number {
  color: var(--blue-2);
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 26px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tags span, .skills-cloud span {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.05);
  color: var(--silver);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .9rem;
}

.skill-orb {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.skill-orb img {
  width: min(92%, 500px);
  border-radius: 50%;
  box-shadow: 0 38px 120px rgba(0,0,0,.55);
  animation: floatLogo 6.2s ease-in-out infinite;
}
.skill-orb::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(45,140,255,.22);
  transform: rotateX(72deg);
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-panel {
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: start;
}

.contact {
  padding-bottom: 130px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.contact-copy {
  padding: clamp(30px, 6vw, 58px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22,104,216,.15), transparent 45%),
    rgba(255,255,255,.035);
  border: 1px solid var(--line);
}
.contact-card {
  padding: 28px;
}
.contact-logo {
  width: 120px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: 0 20px 55px rgba(0,0,0,.45);
}
.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.contact-card li {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.contact-card span {
  color: var(--blue-2);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 800;
}
.contact-card a, .contact-card strong {
  color: var(--silver);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.contact-card a:hover { color: white; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.2);
}
.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.footer-inner a { color: var(--silver); }

.reveal {
  opacity: 0;
  transform: translateY(44px) rotateX(10deg) scale(.985);
  transform-origin: top;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { order: -1; width: min(100%, 560px); }
  .metal-frame { transform: none; }
  h1 { font-size: clamp(3.2rem, 12vw, 6rem); }
  .stats-grid, .split-layout, .split-layout.reverse, .about-panel, .contact-grid { grid-template-columns: 1fr; }
  .sticky-copy { position: static; }
  .skill-orb { min-height: auto; }
  .skill-orb img { width: min(86%, 430px); margin: 0 auto; }
}

@media (max-width: 760px) {
  .site-header { top: 12px; width: calc(100% - 20px); border-radius: 24px; }
  .brand span { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5,7,11,.94);
    backdrop-filter: blur(18px);
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 14px; }
  .hero, .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { gap: 24px; }
  .preloader-logo { width: min(72vw, 300px); }
  .preloader-name { letter-spacing: .32em; font-size: .7rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.featured { grid-column: auto; }
  .service-card { grid-template-columns: 1fr; }
  .icon-box { grid-row: auto; }
  .stats-grid { gap: 14px; }
  .section { padding: 76px 0; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .preloader { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== MOBILE HOTFIX: stronger responsive layout for phones/tablets ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body { font-size: 15px; }

  .site-header {
    top: 10px;
    width: calc(100% - 18px);
    padding: 10px 12px;
    border-radius: 22px;
  }

  .brand span { display: none; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: block; flex: 0 0 auto; }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5,7,11,.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; padding: 14px 16px; }

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 104px 16px 62px;
    text-align: center;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    justify-items: center;
  }

  .eyebrow { margin-inline: auto; }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.2vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.07em;
  }

  .hero-text {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .metal-frame {
    padding: 8px;
    border-radius: 24px;
    transform: none !important;
  }

  .metal-frame img {
    width: 100%;
    max-height: 38svh;
    object-fit: contain;
    border-radius: 20px;
  }

  .orbit, .scroll-cue, .cursor-glow { display: none !important; }

  .section {
    padding: 72px 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .section-head.center {
    max-width: 100%;
  }

  .section-head h2 {
    font-size: clamp(2rem, 8.8vw, 3.2rem);
    line-height: 1;
    letter-spacing: -.055em;
  }

  .section-head p,
  .contact-copy p,
  .about-panel p,
  .service-card p,
  .project-card p {
    font-size: .98rem;
  }

  .stats-grid,
  .split-layout,
  .split-layout.reverse,
  .about-panel,
  .contact-grid,
  .project-grid {
    grid-template-columns: 1fr !important;
  }

  .sticky-copy { position: static; }

  .service-stack { gap: 14px; }

  .service-card,
  .project-card,
  .project-card.featured,
  .stat-card,
  .about-panel,
  .contact-copy,
  .contact-card {
    grid-column: auto !important;
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .service-card {
    display: block;
  }

  .icon-box {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .skill-orb {
    min-height: auto;
    padding: 12px 0 22px;
  }

  .skill-orb img {
    width: min(82vw, 340px);
    margin: 0 auto;
  }

  .skill-orb::before { width: min(82vw, 340px); }

  .skills-cloud,
  .tags {
    justify-content: center;
  }

  .contact { padding-bottom: 84px; }

  .contact-logo {
    width: 92px;
    border-radius: 22px;
  }

  .footer-inner {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 96px 12px 54px; }
  .container { padding-left: 12px; padding-right: 12px; }
  .preloader-logo { width: min(76vw, 260px); }
  .preloader-name {
    width: 100%;
    padding: 0 18px;
    letter-spacing: .22em;
    font-size: .64rem;
    text-align: center;
  }
  .impact-ring { width: 230px; height: 230px; }
  h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .hero-text { font-size: .96rem; }
  .section-head h2 { font-size: clamp(1.85rem, 9.8vw, 2.8rem); }
  .stat-card span { font-size: clamp(2.5rem, 16vw, 4rem); }
  .service-card,
  .project-card,
  .project-card.featured,
  .stat-card,
  .about-panel,
  .contact-copy,
  .contact-card {
    padding: 19px;
  }
}
/* ===============================
   PART 1 SAFE FIXES - RM PORTFOLIO
   Keeps current design, improves mobile safety + contact trust
================================ */

/* Stronger global overflow protection for Chrome/Google mobile */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

/* Prevent 3D/animated layers from forcing mobile desktop-width layout */
.hero,
.hero *,
section,
section *,
.container,
.wrapper,
.glass-card,
.logo-card,
.hero-visual,
.orbit,
.stack-orbit {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .hero,
  .section,
  section,
  .container,
  .wrapper {
    max-width: 100vw;
    overflow-x: clip;
  }

  .logo-card,
  .hero-visual,
  .orbit,
  .stack-orbit,
  .project-card,
  .service-card,
  .glass-card {
    max-width: 100%;
    transform-style: flat;
  }
}

/* Premium WhatsApp button treatment */
a[href*="wa.me"],
a[href*="api.whatsapp.com"] {
  border-color: rgba(37, 211, 102, 0.75) !important;
}

a[href*="wa.me"].btn,
a[href*="api.whatsapp.com"].btn,
.contact-actions a[href*="wa.me"],
.contact-actions a[href*="api.whatsapp.com"],
.cta-actions a[href*="wa.me"],
.cta-actions a[href*="api.whatsapp.com"] {
  background: linear-gradient(135deg, #20d466, #13b957) !important;
  color: #04130a !important;
  border-color: rgba(105, 255, 170, 0.95) !important;
  box-shadow:
    0 0 0 1px rgba(105, 255, 170, 0.28),
    0 14px 34px rgba(18, 185, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-weight: 800;
}

a[href*="wa.me"].btn:hover,
a[href*="api.whatsapp.com"].btn:hover,
.contact-actions a[href*="wa.me"]:hover,
.contact-actions a[href*="api.whatsapp.com"]:hover,
.cta-actions a[href*="wa.me"]:hover,
.cta-actions a[href*="api.whatsapp.com"]:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(120, 255, 180, 0.45),
    0 18px 46px rgba(18, 185, 87, 0.42),
    0 0 28px rgba(37, 211, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* Premium email button treatment */
a[href^="mailto:"] {
  border-color: rgba(95, 171, 255, 0.65) !important;
}

a[href^="mailto:"].btn,
.contact-actions a[href^="mailto:"],
.cta-actions a[href^="mailto:"] {
  background: linear-gradient(135deg, rgba(38, 112, 220, 0.92), rgba(23, 48, 91, 0.9)) !important;
  color: #f5f9ff !important;
  border-color: rgba(126, 190, 255, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(99, 170, 255, 0.22),
    0 14px 34px rgba(35, 118, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  font-weight: 800;
}

a[href^="mailto:"].btn:hover,
.contact-actions a[href^="mailto:"]:hover,
.cta-actions a[href^="mailto:"]:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(126, 190, 255, 0.45),
    0 18px 46px rgba(35, 118, 220, 0.42),
    0 0 28px rgba(65, 145, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Long Head Office address should wrap cleanly */
.contact-card,
.contact-card *,
.contact-info,
.contact-info *,
footer,
footer * {
  overflow-wrap: anywhere;
}

/* Slightly stronger luxury text feel without redesigning */
.section-kicker,
.eyebrow,
.kicker,
.nav-brand,
.stat-number {
  letter-spacing: 0.18em;
}

h1,
h2,
.hero-title,
.section-title {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 45px rgba(0, 0, 0, 0.34);
}
/* ===============================
   PART 1B - CONTACT LINK FIXES
================================ */

/* Make sure glow/tilt pseudo-layers never block clicking links/buttons */
.stat-card::before,
.service-card::before,
.project-card::before,
.contact-card::before,
.about-panel::before {
  pointer-events: none;
}

.contact-card,
.contact-copy,
.contact-actions,
.contact-card ul,
.contact-card li,
.contact-card a,
.contact-actions a {
  position: relative;
  z-index: 2;
}

/* Direct class-based button styling so it does not depend only on href matching */
.whatsapp-btn {
  background: linear-gradient(135deg, #20d466, #13b957) !important;
  color: #04130a !important;
  border-color: rgba(105, 255, 170, 0.95) !important;
  box-shadow:
    0 0 0 1px rgba(105, 255, 170, 0.28),
    0 14px 34px rgba(18, 185, 87, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.email-btn {
  background: linear-gradient(135deg, rgba(38, 112, 220, 0.95), rgba(23, 48, 91, 0.92)) !important;
  color: #f5f9ff !important;
  border-color: rgba(126, 190, 255, 0.85) !important;
  box-shadow:
    0 0 0 1px rgba(99, 170, 255, 0.22),
    0 14px 34px rgba(35, 118, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.phone-btn {
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: var(--silver) !important;
}

.whatsapp-btn:hover,
.email-btn:hover,
.phone-btn:hover {
  transform: translateY(-3px);
}

/* Make contact links visibly clickable */
.contact-card a {
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 190, 255, 0.32);
}

.contact-card a:hover {
  color: #ffffff;
  border-bottom-color: rgba(126, 190, 255, 0.85);
}
/* PART 1C - Remove contact link underlines */
.contact-card a,
.contact-card a:visited,
.contact-card a:hover,
.contact-card a:focus,
.contact-card a:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.contact-card li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card a:hover {
  color: #ffffff !important;
}
/* ===============================
   PART 3 - PREMIUM INTERACTIVE SERVICES
   Preserves current RM theme; upgrades service section only
================================ */

.services-luxury-layout {
  align-items: start;
}

.service-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.service-trust-strip span {
  border: 1px solid rgba(76, 160, 255, 0.28);
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.12), rgba(255, 255, 255, 0.035));
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.premium-services {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.premium-services::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45,140,255,.18), transparent 67%);
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.service-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(9,13,20,.72);
  color: var(--muted);
  border-radius: 18px;
  padding: 14px 14px;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.service-tab span {
  display: block;
  color: var(--blue-2);
  font-size: .7rem;
  letter-spacing: .22em;
  margin-bottom: 6px;
}

.service-tab:hover,
.service-tab.active {
  color: var(--silver);
  border-color: rgba(86, 169, 255, 0.55);
  background:
    radial-gradient(circle at 20% 0%, rgba(45,140,255,.22), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.04)),
    rgba(9,13,20,.84);
  box-shadow:
    0 0 0 1px rgba(45,140,255,.18),
    0 18px 44px rgba(45,140,255,.14),
    0 24px 70px rgba(0,0,0,.36);
  transform: translateY(-2px);
}

.service-display {
  min-height: 560px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx, 30%) var(--my, 10%), rgba(45,140,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.078), rgba(255,255,255,.025)),
    rgba(9, 13, 20, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-display::after {
  content: "";
  position: absolute;
  inset: auto -25% -45% -25%;
  height: 220px;
  background: radial-gradient(ellipse, rgba(45,140,255,.12), transparent 70%);
  pointer-events: none;
}

.service-panel {
  display: none;
  position: relative;
  z-index: 2;
}

.service-panel.active {
  display: block;
  animation: servicePanelIn .35s ease both;
}

@keyframes servicePanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) rotateX(4deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

.service-panel-top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.service-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  border: 1px solid rgba(86, 169, 255, 0.38);
  background:
    radial-gradient(circle at 30% 20%, rgba(45,140,255,.25), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  color: var(--blue-2);
  font-size: 1.45rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 20px 40px rgba(0,0,0,.34);
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--blue-2);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 900;
}

.service-panel h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.service-panel > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 24px;
}

.service-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.service-chip-grid span {
  border: 1px solid rgba(126,190,255,.30);
  background: rgba(255,255,255,.045);
  color: #dce8ff;
  border-radius: 999px;
  padding: 10px 13px;
  font-size: .9rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.service-chip-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(126,190,255,.75);
  background: rgba(45,140,255,.12);
}

.service-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.service-feature-list p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  color: var(--muted);
}

.service-feature-list p::before {
  content: "✦";
  color: var(--blue-2);
  margin-right: 9px;
}

.service-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(86,169,255,.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45,140,255,.11), rgba(255,255,255,.035)),
    rgba(9,13,20,.62);
  box-shadow: 0 16px 42px rgba(0,0,0,.25);
}

.service-bottom-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mini-service-cta {
  flex: 0 0 auto;
  color: #04130a;
  text-decoration: none;
  background: linear-gradient(135deg, #20d466, #13b957);
  border: 1px solid rgba(105, 255, 170, 0.95);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(18, 185, 87, 0.26);
}

.mini-service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(18, 185, 87, 0.36);
}

/* Mobile-safe version of the interactive services */
@media (max-width: 900px) {
  .service-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .service-tabs::-webkit-scrollbar {
    height: 0;
  }

  .service-tab {
    min-width: 170px;
    scroll-snap-align: start;
    padding: 13px;
  }

  .service-display {
    min-height: auto;
    padding: 22px;
    transform: none !important;
  }

  .service-panel-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .service-panel h3 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .service-chip-grid span {
    font-size: .84rem;
    padding: 9px 11px;
  }

  .service-bottom-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mini-service-cta {
    text-align: center;
  }
}
/* ===============================
   PART 4A - SERVICES MAIN PAGE
   Same RM theme, richer multi-page structure
================================ */

.page-hero {
  min-height: auto;
  padding-top: 150px;
  padding-bottom: 80px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 56px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: .92;
  letter-spacing: -0.075em;
  margin: 0 0 24px;
  max-width: 920px;
}

.page-hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  max-width: 760px;
}

.service-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 30% 15%, rgba(45, 140, 255, .16), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-hero-card img {
  border-radius: 22px;
  margin-bottom: 22px;
  box-shadow: 0 22px 55px rgba(0,0,0,.4);
}

.service-hero-card p {
  margin: 0 0 8px;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 900;
}

.service-hero-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -.045em;
}

.service-hero-card span {
  color: var(--muted);
  line-height: 1.65;
}

.service-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.service-page-card {
  position: relative;
  min-height: 330px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 0%, rgba(45, 140, 255, .11), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.072), rgba(255,255,255,.024)),
    rgba(9, 13, 20, .72);
  box-shadow: 0 22px 64px rgba(0,0,0,.28);
  overflow: hidden;
}

.service-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-125%);
  transition: transform .85s ease;
  pointer-events: none;
}

.service-page-card:hover::before {
  transform: translateX(125%);
}

.service-page-card:hover {
  border-color: rgba(86, 169, 255, .46);
}

.service-count {
  display: inline-flex;
  color: var(--blue-2);
  letter-spacing: .24em;
  font-size: .78rem;
  font-weight: 900;
  margin-bottom: 46px;
}

.service-page-card h3 {
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}

.service-page-card p {
  color: var(--muted);
  line-height: 1.62;
  margin: 0 0 22px;
}

.service-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-mini-tags span {
  border: 1px solid rgba(126,190,255,.24);
  background: rgba(255,255,255,.045);
  color: #dbe8ff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1;
}

.process-rail {
  display: grid;
  gap: 16px;
}

.process-step {
  position: relative;
  padding: 24px 24px 24px 82px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.022)),
    rgba(9,13,20,.70);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

.process-step span {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(86, 169, 255, .36);
  color: var(--blue-2);
  font-size: .78rem;
  font-weight: 900;
  background: rgba(45,140,255,.08);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-note-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 140, 255, .16), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.074), rgba(255,255,255,.022)),
    rgba(9, 13, 20, .74);
  box-shadow: var(--shadow);
}

.quote-note-card h2 {
  max-width: 860px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: 0 0 20px;
}

.quote-note-card p {
  color: var(--muted);
  max-width: 980px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.quote-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Keep new page mobile safe */
@media (max-width: 1100px) {
  .service-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-card {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-top: 118px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .service-map-grid {
    grid-template-columns: 1fr;
  }

  .service-page-card {
    min-height: auto;
    padding: 23px;
  }

  .service-count {
    margin-bottom: 34px;
  }

  .process-step {
    padding: 22px;
  }

  .process-step span {
    position: static;
    margin-bottom: 16px;
  }
}
/* PART 4A FIX - Services page navbar active link */
.main-nav a.nav-current {
  color: #ffffff;
}

.main-nav a.nav-current::after {
  opacity: 1;
  transform: scaleX(1);
}
/* PART 4A FIX - Make services page content visible */
.services-page .reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}
/* ===============================
   PART 4B - SERVICE DETAIL PAGES
================================ */

.service-detail-page .reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

.service-detail-section {
  padding-top: 40px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.service-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 30% 0%, rgba(45, 140, 255, .13), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.072), rgba(255,255,255,.024)),
    rgba(9, 13, 20, .72);
  box-shadow: var(--shadow);
}

.service-detail-card h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.service-detail-page .service-chip-grid span {
  font-size: .88rem;
}

@media (max-width: 850px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}
/* Links inside service cards */
.service-card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue-2);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
}

.service-card-link:hover {
  color: #ffffff;
}
/* ===============================
   PART 5B - HERO ORBIT + MOBILE FLOAT RESTORE
   Safe scoped patch: only hero orbits, hero card float speed, RM emblem float speed
================================ */

/* Slightly faster existing floating animations */
@media (prefers-reduced-motion: no-preference) {
  .metal-frame {
    animation-duration: 4.8s;
  }

  .skill-orb img {
    animation-duration: 5s;
  }
}

/* Desktop hero orbit rotation */
.hero-visual .orbit {
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-visual .orbit-one {
  animation: rmOrbitOneLuxury 18s linear infinite;
}

.hero-visual .orbit-two {
  animation: rmOrbitTwoLuxury 24s linear infinite reverse;
}

@keyframes rmOrbitOneLuxury {
  0% {
    transform: rotateX(70deg) rotateZ(0deg);
    opacity: .72;
  }
  50% {
    transform: rotateX(70deg) rotateZ(180deg);
    opacity: .95;
  }
  100% {
    transform: rotateX(70deg) rotateZ(360deg);
    opacity: .72;
  }
}

@keyframes rmOrbitTwoLuxury {
  0% {
    transform: rotateY(62deg) rotateZ(0deg);
    opacity: .55;
  }
  50% {
    transform: rotateY(62deg) rotateZ(180deg);
    opacity: .82;
  }
  100% {
    transform: rotateY(62deg) rotateZ(360deg);
    opacity: .55;
  }
}

/* Mobile: restore gentle hero card floating without using transform */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-visual .metal-frame {
    animation: rmMobileHeroFloat 4.8s ease-in-out infinite !important;
  }

  .hero-visual .orbit {
    display: block !important;
    opacity: .48;
    border-color: rgba(86, 169, 255, .22);
  }

  .hero-visual .orbit-one {
    inset: 6px 34px 18px;
    animation: rmMobileOrbitOne 22s linear infinite !important;
  }

  .hero-visual .orbit-two {
    inset: 20px 18px 8px;
    animation: rmMobileOrbitTwo 28s linear infinite reverse !important;
  }
}

@keyframes rmMobileHeroFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes rmMobileOrbitOne {
  0% {
    transform: rotateX(68deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}

@keyframes rmMobileOrbitTwo {
  0% {
    transform: rotateY(58deg) rotateZ(0deg);
  }
  100% {
    transform: rotateY(58deg) rotateZ(360deg);
  }
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-visual .orbit-one,
  .hero-visual .orbit-two,
  .hero-visual .metal-frame,
  .skill-orb img {
    animation: none !important;
  }
}
/* ===============================
   PART 5C - SAFE CARD GLOW POLISH
   No global layers. No navbar changes. No hero/orbit changes.
================================ */

/* Add smoother premium response to cards only */
.project-card,
.stat-card,
.service-page-card,
.service-detail-card,
.process-step,
.quote-note-card,
.service-display {
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    filter 0.24s ease;
}

/* Homepage project/stat cards */
.project-card:hover,
.stat-card:hover {
  border-color: rgba(86, 169, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(45, 140, 255, 0.12),
    0 24px 72px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(45, 140, 255, 0.10);
}

.project-card:hover .project-number {
  color: #8fc5ff;
  text-shadow:
    0 0 18px rgba(45, 140, 255, 0.42),
    0 0 34px rgba(45, 140, 255, 0.18);
}

/* Project tech tags */
.project-card:hover .tags span {
  border-color: rgba(126, 190, 255, 0.34);
  background: rgba(45, 140, 255, 0.075);
}

/* Main services page cards */
.service-page-card:hover {
  border-color: rgba(86, 169, 255, 0.50);
  box-shadow:
    0 0 0 1px rgba(45, 140, 255, 0.12),
    0 24px 72px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(45, 140, 255, 0.10);
}

.service-page-card:hover .service-count {
  color: #8fc5ff;
  text-shadow:
    0 0 18px rgba(45, 140, 255, 0.44),
    0 0 34px rgba(45, 140, 255, 0.18);
}

.service-page-card:hover .service-mini-tags span {
  border-color: rgba(126, 190, 255, 0.36);
  background: rgba(45, 140, 255, 0.075);
}

.service-page-card:hover .service-card-link {
  color: #ffffff;
}

/* Individual service detail cards */
.service-detail-card:hover,
.process-step:hover,
.quote-note-card:hover,
.service-display:hover {
  border-color: rgba(86, 169, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(45, 140, 255, 0.10),
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(45, 140, 255, 0.08);
}

/* Chips/tags: small luxury glow, no layout movement */
.service-chip-grid span,
.service-mini-tags span,
.tags span,
.skills-cloud span {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.service-chip-grid span:hover,
.service-mini-tags span:hover,
.tags span:hover,
.skills-cloud span:hover {
  border-color: rgba(126, 190, 255, 0.58);
  background: rgba(45, 140, 255, 0.105);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(45, 140, 255, 0.09);
}

/* Mobile/touch feedback: no hover dependency, only press/focus glow */
@media (max-width: 900px), (pointer: coarse) {
  .project-card:active,
  .stat-card:active,
  .service-page-card:active,
  .service-detail-card:active,
  .process-step:active,
  .quote-note-card:active {
    border-color: rgba(86, 169, 255, 0.46);
    box-shadow:
      0 0 0 1px rgba(45, 140, 255, 0.10),
      0 18px 46px rgba(0, 0, 0, 0.32),
      0 0 26px rgba(45, 140, 255, 0.08);
  }

  .service-card-link:focus,
  .service-card-link:active {
    color: #ffffff;
  }
}
/* ===============================
   PART 6A - SMOOTH RM WALL SLAM INTRO
   Performance version: no stepped movement
================================ */

.preloader {
  overflow: hidden;
  perspective: 1200px;
  background:
    radial-gradient(circle at 50% 48%, rgba(126, 190, 255, 0.075), transparent 18%),
    radial-gradient(circle at 50% 58%, rgba(45, 140, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #020308 0%, #05070b 46%, #07101d 100%);
  transition: opacity 0.58s ease, visibility 0.58s ease;
  animation: rmSmoothWallShake 2.8s linear both !important;
  contain: paint;
}

/* Crack layer — appears only at impact */
.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(103deg, transparent 49.45%, rgba(176, 214, 255, .62) 49.72%, transparent 49.95%),
    linear-gradient(76deg, transparent 50.15%, rgba(176, 214, 255, .42) 50.36%, transparent 50.6%),
    linear-gradient(145deg, transparent 47.4%, rgba(176, 214, 255, .34) 47.62%, transparent 47.86%),
    linear-gradient(31deg, transparent 52.25%, rgba(176, 214, 255, .30) 52.45%, transparent 52.7%),
    radial-gradient(circle at 50% 48%, rgba(45, 140, 255, .18), transparent 20%);
  background-size:
    260px 260px,
    220px 220px,
    300px 300px,
    240px 240px,
    100% 100%;
  background-position:
    50% 48%,
    48% 50%,
    52% 47%,
    51% 50%,
    center;
  mask-image: radial-gradient(circle at 50% 48%, black 0%, black 21%, transparent 39%);
  transform: scale(.9);
  animation: rmSmoothCrack 2.8s ease-out both !important;
}

/* Dust / blue flash layer */
.preloader::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.58), transparent 6%),
    radial-gradient(circle at 50% 48%, rgba(126,190,255,.36), transparent 17%),
    radial-gradient(circle at 50% 48%, rgba(45,140,255,.16), transparent 30%);
  transform: scale(.42);
  animation: rmSmoothDust 2.8s ease-out both !important;
}

.preloader-logo {
  width: min(36vw, 340px);
  border-radius: 30px;
  z-index: 4;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  filter:
    drop-shadow(0 28px 70px rgba(0,0,0,.82))
    drop-shadow(0 0 22px rgba(45,140,255,.15));
  animation: rmSmoothLogoIntoWall 2.8s cubic-bezier(.12,.82,.16,1) both !important;
}

.impact-ring {
  z-index: 2;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  border: 1px solid rgba(126, 190, 255, 0.55);
  box-shadow:
    0 0 32px rgba(45, 140, 255, 0.20),
    inset 0 0 24px rgba(45, 140, 255, 0.10);
  animation: rmSmoothShockRing 2.8s ease-out both !important;
}

.preloader-name {
  z-index: 4;
  bottom: 12vh;
  animation: rmSmoothNameAfterImpact 2.8s ease-out both !important;
}

/* 
   Main logo motion:
   One continuous movement into the wall.
   No blur animation, no multi-stage travel.
*/
@keyframes rmSmoothLogoIntoWall {
  0% {
    opacity: 0;
    transform:
      translate3d(0, -18vh, 0)
      scale(2.65)
      rotateX(16deg)
      rotateZ(-2deg);
  }

  12% {
    opacity: 1;
  }

  63% {
    opacity: 1;
    transform:
      translate3d(0, 0, 0)
      scale(.82)
      rotateX(0deg)
      rotateZ(0deg);
  }

  72% {
    transform:
      translate3d(0, -3px, 0)
      scale(.91);
  }

  84% {
    transform:
      translate3d(0, 1px, 0)
      scale(.87);
  }

  100% {
    opacity: .96;
    transform:
      translate3d(0, 0, 0)
      scale(.89);
  }
}

/* Shake only at impact, very short */
@keyframes rmSmoothWallShake {
  0%, 59%, 76%, 100% {
    transform: translate3d(0, 0, 0);
  }

  63% {
    transform: translate3d(-6px, 4px, 0);
  }

  65% {
    transform: translate3d(6px, -4px, 0);
  }

  67% {
    transform: translate3d(-4px, -2px, 0);
  }

  70% {
    transform: translate3d(3px, 2px, 0);
  }

  73% {
    transform: translate3d(-1px, 1px, 0);
  }
}

/* Crack appears at the slam moment, not during approach */
@keyframes rmSmoothCrack {
  0%, 60% {
    opacity: 0;
    transform: scale(.86);
  }

  64% {
    opacity: .9;
    transform: scale(1.02);
  }

  82% {
    opacity: .44;
    transform: scale(1.06);
  }

  100% {
    opacity: .28;
    transform: scale(1.08);
  }
}

/* Dust/flash burst */
@keyframes rmSmoothDust {
  0%, 59% {
    opacity: 0;
    transform: scale(.36);
  }

  64% {
    opacity: .84;
    transform: scale(.72);
  }

  80% {
    opacity: .28;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

/* Shockwave at impact */
@keyframes rmSmoothShockRing {
  0%, 59% {
    opacity: 0;
    transform: scale(.12);
  }

  64% {
    opacity: .88;
    transform: scale(.42);
  }

  82% {
    opacity: .26;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.92);
  }
}

/* Name appears after impact */
@keyframes rmSmoothNameAfterImpact {
  0%, 66% {
    opacity: 0;
    transform: translateY(16px);
    letter-spacing: .64em;
  }

  82% {
    opacity: .92;
    transform: translateY(0);
    letter-spacing: .56em;
  }

  100% {
    opacity: .86;
    transform: translateY(-1px);
  }
}

/* Mobile: same motion, lighter */
@media (max-width: 760px) {
  .preloader-logo {
    width: min(72vw, 260px);
    border-radius: 26px;
  }

  .impact-ring {
    width: min(82vw, 350px);
    height: min(82vw, 350px);
  }

  .preloader-name {
    bottom: 11vh;
    width: 100%;
    padding: 0 18px;
    text-align: center;
    letter-spacing: .28em;
    font-size: .68rem;
  }

  .preloader::before {
    mask-image: radial-gradient(circle at 50% 48%, black 0%, black 28%, transparent 48%);
  }

  @keyframes rmSmoothWallShake {
    0%, 59%, 76%, 100% {
      transform: translate3d(0, 0, 0);
    }

    63% {
      transform: translate3d(-4px, 3px, 0);
    }

    65% {
      transform: translate3d(4px, -3px, 0);
    }

    68% {
      transform: translate3d(-2px, -1px, 0);
    }

    71% {
      transform: translate3d(2px, 1px, 0);
    }
  }
}
/* ===============================
   PART 7E - APPROVED INTERACTIVE SERVICE HUB
   Desktop + mobile based on approved mockup
================================ */

.rm-service-hub {
  overflow: hidden;
}

.rm-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(620px, 1.18fr);
  grid-template-areas:
    "copy visual"
    "trust trust";
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.rm-hub-copy {
  grid-area: copy;
}

.rm-hub-copy h2 {
  font-size: clamp(3.2rem, 6.4vw, 6.5rem);
  line-height: .92;
  letter-spacing: -.078em;
  margin: 0 0 24px;
}

.rm-hub-copy p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 650px;
}

.rm-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.rm-hub-actions-mobile {
  display: none;
}

.rm-hub-visual {
  grid-area: visual;
  position: relative;
  min-height: 720px;
  display: grid;
  justify-items: center;
  align-content: start;
  perspective: 1200px;
}

.rm-hub-portrait-card {
  position: relative;
  width: min(430px, 38vw);
  padding: 14px;
  border-radius: 34px;
  border: 1px solid rgba(126,190,255,.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(45,140,255,.20), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    rgba(7, 12, 20, .84);
  box-shadow:
    0 38px 100px rgba(0,0,0,.56),
    0 0 62px rgba(45,140,255,.16),
    inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
  z-index: 4;
  animation: rmHubPortraitFloat 5.2s ease-in-out infinite;
}

.rm-hub-portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  filter: contrast(1.04) saturate(.94);
}

.rm-hub-portrait-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(126,190,255,.16), transparent 28%, transparent 70%, rgba(45,140,255,.12)),
    radial-gradient(circle at 50% 20%, rgba(126,190,255,.18), transparent 36%);
  mix-blend-mode: screen;
  opacity: .62;
  z-index: 2;
}

.rm-hub-portrait-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  pointer-events: none;
  border: 1px solid rgba(126,190,255,.22);
  box-shadow:
    inset 0 0 34px rgba(45,140,255,.12),
    0 0 42px rgba(45,140,255,.10);
  z-index: 3;
}

.rm-hub-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(126,190,255,.26);
  background: rgba(4, 8, 14, .68);
  backdrop-filter: blur(10px);
}

.rm-hub-caption span {
  display: block;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.rm-hub-caption strong {
  color: #ffffff;
  letter-spacing: -.02em;
}

.rm-hub-ring {
  position: absolute;
  top: 110px;
  width: min(680px, 96%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(45,140,255,.20);
  pointer-events: none;
  z-index: 1;
}

.rm-ring-one {
  transform: rotateX(72deg);
  animation: rmHubRingOne 24s linear infinite;
}

.rm-ring-two {
  width: min(520px, 82%);
  border-color: rgba(255,255,255,.10);
  transform: rotateY(68deg);
  animation: rmHubRingTwo 32s linear infinite reverse;
}

/* Carousel */
.rm-service-carousel {
  position: relative;
  width: min(850px, 100%);
  margin-top: -48px;
  z-index: 8;
}

.rm-carousel-track {
  position: relative;
  height: 230px;
  perspective: 1200px;
}

.rm-service-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  min-height: 165px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(126,190,255,.36);
  background:
    radial-gradient(circle at 18% 14%, rgba(45,140,255,.25), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.034)),
    rgba(7, 13, 23, .94);
  box-shadow:
    0 26px 70px rgba(0,0,0,.48),
    0 0 34px rgba(45,140,255,.12),
    inset 0 1px 0 rgba(255,255,255,.12);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .48s cubic-bezier(.2,.8,.2,1),
    opacity .34s ease,
    filter .34s ease,
    border-color .24s ease,
    box-shadow .24s ease;
  backface-visibility: hidden;
}

.rm-service-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(126,190,255,.18), transparent 32%, transparent 68%, rgba(126,190,255,.10));
  opacity: .72;
}

.rm-service-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #8fc5ff;
  border: 1px solid rgba(126,190,255,.40);
  background:
    radial-gradient(circle at 40% 25%, rgba(45,140,255,.32), transparent 50%),
    rgba(45,140,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 22px rgba(45,140,255,.14);
}

.rm-service-card small {
  position: relative;
  z-index: 2;
  display: block;
  color: #48a3ff;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .62rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.rm-service-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.rm-service-card a {
  position: relative;
  z-index: 2;
  color: var(--blue-2);
  text-decoration: none;
  font-weight: 900;
  font-size: .82rem;
}

.rm-service-card.is-active {
  opacity: 1;
  pointer-events: auto;
  width: 320px;
  min-height: 190px;
  transform: translate(-50%, -50%) scale(1);
  z-index: 5;
  border-color: rgba(126,190,255,.72);
  box-shadow:
    0 36px 96px rgba(0,0,0,.56),
    0 0 48px rgba(45,140,255,.22),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.rm-service-card.is-left {
  opacity: .58;
  transform: translate(-150%, -50%) scale(.82) rotateY(24deg);
  filter: brightness(.72);
  z-index: 3;
}

.rm-service-card.is-right {
  opacity: .58;
  transform: translate(50%, -50%) scale(.82) rotateY(-24deg);
  filter: brightness(.72);
  z-index: 3;
}

.rm-carousel-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(126,190,255,.34);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    rgba(8,13,22,.88);
  color: #ffffff;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 12;
  box-shadow:
    0 16px 40px rgba(0,0,0,.36),
    0 0 24px rgba(45,140,255,.12);
}

.rm-carousel-prev {
  left: 8px;
}

.rm-carousel-next {
  right: 8px;
}

.rm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: -10px;
}

.rm-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(126,190,255,.36);
  background: rgba(255,255,255,.16);
  cursor: pointer;
}

.rm-carousel-dot.is-active {
  width: 25px;
  background: #2d8cff;
  border-color: rgba(126,190,255,.86);
  box-shadow: 0 0 18px rgba(45,140,255,.48);
}

/* Trust strip */
.rm-hub-trust {
  grid-area: trust;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
    rgba(6,10,18,.72);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  overflow: hidden;
}

.rm-hub-trust article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  border-right: 1px solid rgba(255,255,255,.10);
}

.rm-hub-trust article:last-child {
  border-right: 0;
}

.rm-hub-trust span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--blue-2);
  border: 1px solid rgba(126,190,255,.32);
  background: rgba(45,140,255,.08);
  box-shadow: 0 0 24px rgba(45,140,255,.10);
}

.rm-hub-trust h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.rm-hub-trust p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .92rem;
}

@keyframes rmHubPortraitFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes rmHubRingOne {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes rmHubRingTwo {
  from {
    transform: rotateY(68deg) rotateZ(0deg);
  }
  to {
    transform: rotateY(68deg) rotateZ(360deg);
  }
}

/* Tablet */
@media (max-width: 1150px) {
  .rm-hub-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "trust";
  }

  .rm-hub-visual {
    min-height: 760px;
  }

  .rm-hub-portrait-card {
    width: min(430px, 70vw);
  }

  .rm-hub-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-hub-trust article:nth-child(2) {
    border-right: 0;
  }

  .rm-hub-trust article:nth-child(1),
  .rm-hub-trust article:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .rm-service-hub {
    padding-top: 66px;
  }

  .rm-hub-grid {
    gap: 24px;
  }

  .rm-hub-copy h2 {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
    line-height: .96;
    margin-bottom: 18px;
  }

  .rm-hub-copy p {
    margin-bottom: 0;
  }

  .rm-hub-actions-desktop {
    display: none;
  }

  .rm-hub-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rm-hub-portrait-card {
    width: min(360px, 86vw);
    border-radius: 30px;
  }

  .rm-hub-portrait-card img {
    border-radius: 22px;
  }

  .rm-hub-caption {
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 12px 13px;
    backdrop-filter: none;
  }

  .rm-hub-caption span {
    font-size: .52rem;
    letter-spacing: .18em;
  }

  .rm-hub-caption strong {
    font-size: .86rem;
  }

  .rm-hub-ring {
    top: 160px;
    width: 112vw;
  }

  .rm-service-carousel {
    width: min(390px, 100%);
    margin-top: -16px;
  }

  .rm-carousel-track {
    height: 205px;
  }

  .rm-service-card {
    width: 146px;
    min-height: 150px;
    padding: 14px;
    border-radius: 20px;
  }

  .rm-service-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .rm-service-card small {
    font-size: .48rem;
    letter-spacing: .11em;
    margin-bottom: 7px;
  }

  .rm-service-card h3 {
    font-size: .84rem;
    line-height: 1.08;
  }

  .rm-service-card a {
    font-size: .73rem;
  }

  .rm-service-card.is-active {
    width: 224px;
    min-height: 166px;
    transform: translate(-50%, -50%) scale(1);
  }

  .rm-service-card.is-left {
    transform: translate(-118%, -50%) scale(.74) rotateY(18deg);
    opacity: .42;
  }

  .rm-service-card.is-right {
    transform: translate(18%, -50%) scale(.74) rotateY(-18deg);
    opacity: .42;
  }

  .rm-carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .rm-carousel-prev {
    left: 6px;
  }

  .rm-carousel-next {
    right: 6px;
  }

  .rm-carousel-dots {
    margin-top: -4px;
  }

  .rm-hub-actions-mobile {
    display: grid;
    gap: 12px;
    width: min(390px, 100%);
    margin-top: 24px;
  }

  .rm-hub-actions-mobile .btn {
    width: 100%;
    justify-content: center;
  }

  .rm-hub-trust {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .rm-hub-trust article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: 20px;
  }

  .rm-hub-trust article:last-child {
    border-bottom: 0;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .rm-hub-portrait-card {
    width: min(335px, 84vw);
  }

  .rm-service-card.is-active {
    width: 210px;
  }

  .rm-service-card {
    width: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-hub-portrait-card,
  .rm-ring-one,
  .rm-ring-two {
    animation: none !important;
  }
}
/* PART 7H - FINAL SERVICE HUB POLISH WITHOUT HAND ANIMATION */

/* Keep this section premium but stable */
.rm-service-hub {
  overflow: hidden;
}

/* Make the portrait card feel like a proper premium display */
.rm-hub-portrait-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 22%, rgba(86, 169, 255, .20), transparent 42%),
    linear-gradient(180deg, rgba(10,18,30,.95), rgba(4,7,12,.98));
  box-shadow:
    0 42px 120px rgba(0,0,0,.58),
    0 0 70px rgba(45,140,255,.18),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* Fixed portrait image */
.rm-hub-portrait-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
}

/* Caption should sit cleanly on the image */
.rm-hub-caption {
  left: 22px;
  right: 22px;
  bottom: 20px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(4,8,14,.74), rgba(4,8,14,.92));
  border: 1px solid rgba(126,190,255,.18);
  backdrop-filter: blur(14px);
}

/* Make carousel cards more readable */
.rm-service-card {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(145deg, rgba(13,27,48,.92), rgba(5,10,18,.88));
}

.rm-service-card.is-active {
  border-color: rgba(126,190,255,.70);
  box-shadow:
    0 34px 90px rgba(0,0,0,.55),
    0 0 48px rgba(45,140,255,.20),
    inset 0 1px 0 rgba(255,255,255,.16);
}

/* Arrows should be visible but not too loud */
.rm-carousel-btn {
  background: rgba(6, 12, 22, .72);
  border: 1px solid rgba(126,190,255,.30);
  box-shadow:
    0 14px 34px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.rm-carousel-btn:hover {
  background: rgba(22, 71, 120, .82);
  border-color: rgba(126,190,255,.62);
}

/* Dots should feel aligned with the premium UI */
.rm-carousel-dot {
  background: rgba(126,190,255,.18);
}

.rm-carousel-dot.is-active {
  background: linear-gradient(90deg, #2d8cff, #7ec6ff);
  box-shadow: 0 0 18px rgba(45,140,255,.42);
}

/* Trust strip polish */
.rm-hub-trust article {
  background:
    linear-gradient(145deg, rgba(13,27,48,.74), rgba(5,10,18,.72));
  border: 1px solid rgba(126,190,255,.12);
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Tablet balance */
@media (max-width: 980px) {
  .rm-hub-copy h2 {
    max-width: 760px;
  }

  .rm-hub-visual {
    margin-top: 20px;
  }
}

/* Mobile cleanup */
@media (max-width: 720px) {
  .rm-hub-copy h2 {
    font-size: clamp(2.45rem, 14vw, 4.1rem);
    line-height: .9;
  }

  .rm-hub-copy p {
    font-size: .96rem;
  }

  .rm-hub-portrait-card {
    border-radius: 22px;
  }

  .rm-hub-portrait-card > img {
    object-position: center top;
  }

  .rm-hub-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 14px;
  }

  .rm-service-card.is-left,
  .rm-service-card.is-right {
    opacity: .34;
  }

  .rm-carousel-btn {
    width: 42px;
    height: 42px;
  }
}
/* PART 7I - SERVICE HUB CTA CLEANUP */

.rm-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none !important;
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}

.rm-hub-btn:hover {
  transform: translateY(-2px);
}

.rm-hub-btn-primary {
  color: #02120b;
  background: linear-gradient(135deg, #23e777, #16c865);
  border: 1px solid rgba(80, 255, 160, .55);
  box-shadow:
    0 18px 42px rgba(18, 205, 99, .28),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.rm-hub-btn-primary:hover {
  color: #001007;
  box-shadow:
    0 24px 60px rgba(18, 205, 99, .38),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.rm-hub-btn-secondary {
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 14px 36px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.rm-hub-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(126,190,255,.42);
  background: rgba(126,190,255,.10);
}

@media (max-width: 720px) {
  .rm-hub-actions {
    width: 100%;
  }

  .rm-hub-btn {
    flex: 1 1 auto;
    min-width: 142px;
  }
}