/* Shard Data Solutions — corporate redesign */

:root {
  --bg-deep: #050812;
  --bg-panel: rgba(12, 18, 38, 0.72);
  --bg-panel-strong: rgba(18, 26, 52, 0.88);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-bright: rgba(124, 214, 255, 0.35);
  /* Primary copy: brighter blue-white; muted steps stay harmonious on --bg-deep */
  --text: #f1f5ff;
  --text-muted: rgba(241, 245, 255, 0.78);
  --text-soft: rgba(241, 245, 255, 0.56);
  --accent: #5ee1ff;
  --accent-2: #7c5cff;
  --accent-warm: #ffc56d;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

/* In-page targets clear the sticky header when scrolling via JS */
main#home,
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.025rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% -10%, #152a5c 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 10%, #3b1f6e 0%, transparent 50%),
    var(--bg-deep);
  overflow-x: hidden;
}

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

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: #2d6bff;
  top: -120px;
  right: -80px;
  animation: float-a 18s ease-in-out infinite;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #9d4dff;
  bottom: 10%;
  left: -100px;
  animation: float-b 22s ease-in-out infinite;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: #00d0ff;
  bottom: -80px;
  right: 25%;
  opacity: 0.28;
  animation: float-c 26s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 40px) scale(1.06);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -25px);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, -35px);
  }
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 18, 0.92), rgba(5, 8, 18, 0.65));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(94, 225, 255, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-mark.sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(94, 225, 255, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.28rem;
}

.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-soft);
}

.brand-tag-full {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
  font-weight: 500;
  max-width: 12.5rem;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.primary-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.primary-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-nav .nav-cta {
  margin-left: 0.35rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  box-shadow: 0 10px 35px rgba(94, 225, 255, 0.25);
}

.primary-nav .nav-cta:hover {
  color: var(--bg-deep);
  box-shadow: 0 14px 45px rgba(124, 92, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.eyebrow-muted {
  color: rgba(94, 225, 255, 0.85);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.5vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-title-line1,
.hero-title-line2 {
  display: inline;
}

.hero-title-sep {
  font-weight: 800;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: min(58ch, 100%);
  font-size: 1.05rem;
}

.hero-panel-lead {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-panel-foot {
  position: relative;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.section-lead-verbatim {
  max-width: min(62ch, 100%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(135deg, var(--accent) 0%, #c4b5fd 100%);
  box-shadow: 0 16px 45px rgba(94, 225, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--stroke);
}

.btn-ghost:hover {
  border-color: var(--stroke-bright);
  background: rgba(255, 255, 255, 0.09);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  margin: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 1.5rem 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 20%, rgba(94, 225, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(124, 92, 255, 0.22), transparent 50%);
  pointer-events: none;
}

.panel-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.metric {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric.wide {
  grid-column: 1 / -1;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.metric-value.accent {
  color: var(--accent);
}

.metric-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.metric-fill {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  animation: bar-grow 2.8s ease-out forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes bar-grow {
  to {
    transform: scaleX(1);
  }
}

.chip-row {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
}

.chip-row li {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.floating-badge {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(18, 26, 52, 0.95), rgba(12, 18, 38, 0.88));
  border: 1px solid rgba(124, 214, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
  color: var(--text-muted);
  z-index: 0;
}

.floating-badge strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-about {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.glass-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 214, 255, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  background: rgba(94, 225, 255, 0.1);
  border: 1px solid rgba(94, 225, 255, 0.2);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.glass-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-services {
  background: linear-gradient(to bottom, transparent, rgba(15, 28, 62, 0.35), transparent);
}

.services-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-hero {
  position: relative;
  padding: 2rem 2rem 2.25rem;
  overflow: hidden;
}

.service-hero-inner {
  position: relative;
  max-width: 560px;
}

.service-hero h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.service-hero p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.service-hero-glow {
  position: absolute;
  right: -80px;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(94, 225, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.5);
}

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

.service-tile {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.service-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 214, 255, 0.28);
  transform: translateY(-4px);
}

.service-tile h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.service-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.section-clients {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-marquee {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 18, 0.45);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Two identical flex groups so translateX(-50%) loops seamlessly (no stray gap between copies) */
.marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 0;
  animation: marquee 22s linear infinite;
  -webkit-animation: marquee 22s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0;
  flex: 0 0 auto;
}

.marquee-group span {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* JS-driven marquee (mobile); disables CSS keyframes to avoid iOS/mask issues */
.marquee-track.marquee-track--js {
  animation: none !important;
  -webkit-animation: none !important;
}

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

.testimonial {
  margin: 0;
  padding: 2rem 2.25rem;
  position: relative;
}

.testimonial p {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.testimonial footer {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.section-contact {
  padding-bottom: clamp(4.5rem, 10vw, 7rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-highlights {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: var(--text-muted);
}

.contact-highlights li {
  position: relative;
  padding-left: 1.6rem;
}

.contact-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  padding: 1.75rem 1.75rem 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 18, 0.55);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(94, 225, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 225, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 1.35em;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.form-note code {
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 2.25rem;
  background: rgba(3, 5, 12, 0.85);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-brand-acronym {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
}

.footer-brand-full {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-tag {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Back to top (mobile-friendly, respects safe area) */
.scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 214, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(18, 26, 52, 0.96), rgba(10, 14, 28, 0.92));
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: rgba(94, 225, 255, 0.55);
  color: #fff;
}

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

.scroll-top:active {
  transform: translateY(1px);
}

.scroll-top.is-visible:active {
  transform: translateY(1px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Keep document order: headline first, “What we deliver” card below */
  .hero-visual {
    margin-top: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }

  /* Masks + transform often fail together on iOS; JS marquee runs here instead */
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(5, 8, 18, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    overflow: hidden;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
  }

  .primary-nav a {
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
  }

  .header-inner {
    gap: 0.65rem;
    min-height: 64px;
  }

  :root {
    --header-h: 64px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
  }

  .brand-tag-full {
    max-width: none;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    font-size: inherit;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
  }

  .hero-title-line1 {
    display: block;
    font-size: clamp(1.42rem, 5.2vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
  }

  .hero-title-line2 {
    display: block;
    font-size: clamp(1.02rem, 3.6vw, 1.28rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: rgba(241, 245, 255, 0.92);
  }

  .hero-title-sep {
    font-weight: 700;
    margin-right: 0.12em;
  }

  .hero-tagline {
    font-size: clamp(0.98rem, 3.8vw, 1.28rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 1.35rem;
  }

  /* Compact CTAs: two balanced columns instead of full-width stacked slabs */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1.35rem;
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 12px;
    justify-content: center;
    text-align: center;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-actions .btn-primary {
    box-shadow: 0 6px 18px rgba(94, 225, 255, 0.22);
  }

  .hero-actions .btn-primary:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(94, 225, 255, 0.28);
  }

  .hero-actions .btn-ghost {
    padding: 0.52rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .contact-form .btn-primary.btn-block {
    min-height: 0;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(94, 225, 255, 0.22);
  }

  .contact-form .btn-primary.btn-block:hover {
    transform: none;
  }

  .hero {
    padding-top: clamp(1.5rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 7vw, 3.5rem);
  }

  .hero-stats {
    gap: 1.25rem 1.5rem;
    padding-top: 1.25rem;
  }

  .section {
    padding: clamp(2.35rem, 7vw, 3.75rem) 0;
  }

  .panel-header {
    font-size: 0.72rem;
    margin-bottom: 1rem;
  }

  .floating-badge {
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
  }

  .floating-badge strong {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: clamp(1.45rem, 5vw, 2rem);
  }

  .section-lead {
    font-size: 0.98rem;
  }

  .hero-panel,
  .contact-form,
  .glass-card,
  .service-tile,
  .testimonial {
    border-radius: 18px;
  }

  .hero-panel,
  .contact-form {
    padding: 1.2rem 1.05rem 1.15rem;
  }

  .marquee-track {
    font-size: 0.78rem;
  }

  .marquee-group {
    gap: 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }

  .contact-layout {
    gap: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .orb-a,
  .orb-b,
  .orb-c {
    opacity: 0.22;
  }

  .site-footer {
    padding-bottom: calc(2.75rem + 56px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .scroll-top {
    width: 48px;
    height: 48px;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(18px, calc(10px + env(safe-area-inset-bottom, 0px)));
  }

  .hero-title-line1 {
    font-size: clamp(1.32rem, 5.5vw, 1.72rem);
  }

  .hero-title-line2 {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  }

  .hero-actions .btn {
    font-size: 0.76rem;
    padding: 0.45rem 0.4rem;
    min-height: 42px;
  }
}

@media (max-width: 340px) {
  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-top {
    transition: none;
  }

  .logo-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .marquee-track {
    animation: none !important;
  }

  .orb,
  .metric-fill,
  .pulse,
  .eyebrow-dot {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
