/* ==========================================================================
   Trivizion Technologies — site styles
   ========================================================================== */

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #060814;
  --bg-2: #0b0f22;
  --bg-3: #121732;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #8e97ae;
  --dim: #5d6680;

  --green: #47b048;
  --green-2: #049f4a;
  --teal: #2692ba;
  --blue: #546cb3;
  --purple: #6954a3;
  --purple-lite: #b18cff;

  --mint: #5fe36a;
  --cyan: #22c7e6;
  --indigo: #6f86ff;
  --violet: #b18cff;

  --grad: linear-gradient(110deg, #5fe36a 0%, #22c7e6 38%, #6f86ff 68%, #b18cff 100%);
  --grad-flow: linear-gradient(110deg, #5fe36a, #22c7e6, #6f86ff, #b18cff, #22c7e6, #5fe36a);
  --grad-soft: linear-gradient(120deg, rgba(95, 227, 106, 0.2), rgba(34, 199, 230, 0.18), rgba(177, 140, 255, 0.24));

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(95, 227, 106, 0.35);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.grad,
.grad .w-inner {
  background: var(--grad-flow);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 7s linear infinite;
}

@keyframes gradFlow {
  to { background-position: 200% center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8ff09a, #6fdcf2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Moving aurora behind all content */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.2;
  will-change: transform;
}

.aurora i:nth-child(1) {
  top: -30vmax;
  left: -25vmax;
  background: radial-gradient(circle, rgba(95, 227, 106, 0.55), transparent 62%);
  animation: auroraA 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  top: 10vh;
  right: -35vmax;
  background: radial-gradient(circle, rgba(111, 134, 255, 0.6), transparent 62%);
  animation: auroraB 32s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  bottom: -40vmax;
  left: 10vw;
  background: radial-gradient(circle, rgba(177, 140, 255, 0.5), transparent 62%);
  animation: auroraC 38s ease-in-out infinite alternate;
}

@keyframes auroraA { to { transform: translate(30vw, 25vh) scale(1.15); } }
@keyframes auroraB { to { transform: translate(-35vw, 30vh) scale(0.9); } }
@keyframes auroraC { to { transform: translate(25vw, -35vh) scale(1.2); } }

/* Rotating gradient border for hero surfaces */
.spotlight::after,
.stats::after,
.form::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 55%, #5fe36a 70%, #22c7e6 80%, #b18cff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: angSpin 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes angSpin {
  to { --ang: 360deg; }
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow-x: clip;
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

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

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 62ch;
}

/* Split-text word wrappers */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w-inner {
  display: inline-block;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Noise + ambient glow layers
   -------------------------------------------------------------------------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow--green { background: radial-gradient(circle, rgba(95, 227, 106, 0.55), transparent 70%); }
.glow--purple { background: radial-gradient(circle, rgba(177, 140, 255, 0.6), transparent 70%); }
.glow--teal { background: radial-gradient(circle, rgba(34, 199, 230, 0.5), transparent 70%); }

/* --------------------------------------------------------------------------
   Preloader + page transitions
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

.preloader__mark {
  width: 120px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 24px rgba(34, 199, 230, 0.45));
}

.preloader__mark polygon {
  fill: var(--c);
  fill-opacity: 0;
  stroke: var(--c);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawMark 1.1s var(--ease) forwards, fillMark 0.5s ease forwards;
}

.preloader__mark polygon:nth-of-type(1) { animation-delay: 0s, 0.9s; }
.preloader__mark polygon:nth-of-type(2) { animation-delay: 0.15s, 1s; }
.preloader__mark polygon:nth-of-type(3) { animation-delay: 0.3s, 1.1s; }

@keyframes fillMark {
  to { fill-opacity: 1; }
}

.preloader__count {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--muted);
}

@keyframes drawMark {
  to { stroke-dashoffset: 0; }
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.page-wipe span {
  background: var(--bg-3);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-wipe span:nth-child(1) { background: #0b1a12; }
.page-wipe span:nth-child(2) { background: #0a1520; }
.page-wipe span:nth-child(3) { background: #130f22; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   Custom cursor (pointer devices only)
   -------------------------------------------------------------------------- */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}

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

.cursor.is-hover {
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--border);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo img {
  height: 34px;
  width: auto;
  filter: brightness(1.18) saturate(1.1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.nav__links a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

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

.nav__links a.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }

.menu-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
  background: rgba(5, 6, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}

.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s, color 0.3s;
}

.mobile-menu a.is-active,
.mobile-menu a:hover {
  color: var(--text);
}

.menu-open .mobile-menu a {
  transform: none;
  opacity: 1;
}

.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.2s; }

.mobile-menu__foot {
  margin-top: 2.5rem;
  color: var(--dim);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.97rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px) rotate(-45deg);
}

.btn--primary {
  background: var(--grad-flow);
  background-size: 220% auto;
  color: #050a18;
  font-weight: 600;
  box-shadow: 0 12px 40px -12px rgba(34, 199, 230, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: gradFlow 6s linear infinite;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
}

.btn--primary:hover::after {
  animation-duration: 1.2s;
}

@keyframes btnShine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

.btn--ghost {
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 5rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  --mark-band: clamp(170px, 54vw, 400px);
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.6rem;
}

/* Wide screens: copy on the left, 3D logo mark in the free area on the right */
@media (min-aspect-ratio: 23/20) {
  .hero__content { max-width: min(660px, 54%); }
}

/* Portrait: reserve a band above the copy for the 3D logo mark */
@media (max-aspect-ratio: 23/20) {
  .hero { padding-top: calc(var(--nav-h) + 0.5rem); }
  .hero__content { padding-top: var(--mark-band); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(10, 12, 21, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__badge b {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04110a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__rotator {
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
}

.hero__rotator > span {
  grid-area: 1 / 1;
  padding-bottom: 0.08em;
  transform: translateY(110%);
}

.hero__rotator > span:first-child {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
}

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

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__scroll i {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Inner-page hero */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.page-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.4rem;
}

.page-hero__title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  padding: 1.6rem 0;
  border-block: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 38s linear infinite;
}

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 215, 255, 0.4);
}

.marquee__item:hover {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.marquee__item::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

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

/* --------------------------------------------------------------------------
   Cards (services etc.) with pointer-follow glow + tilt
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, transform 0.5s var(--ease);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(95, 227, 106, 0.14), rgba(177, 140, 255, 0.1) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(95, 211, 95, 0.8), rgba(154, 133, 230, 0.5) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  margin-bottom: 1.6rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: url(#iconGrad);
}

.card__num {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--dim);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card .tags {
  margin-top: 1.4rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Product spotlight
   -------------------------------------------------------------------------- */

.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px circle at 85% 20%, rgba(84, 108, 179, 0.25), transparent 60%),
    radial-gradient(500px circle at 10% 90%, rgba(95, 227, 106, 0.16), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}

.spotlight__copy {
  display: grid;
  gap: 1.3rem;
  position: relative;
  z-index: 1;
}

.spotlight__logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.spotlight__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304110a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 11px no-repeat,
    var(--grad);
}

.spotlight__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(145deg, #2a2f40, #0d0f18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -10px rgba(84, 108, 179, 0.45);
  transform: rotateY(-16deg) rotateX(6deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 80px;
  height: 22px;
  border-radius: 999px;
  background: #05060b;
  transform: translateX(-50%);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 33px;
}

.phone__shine {
  position: absolute;
  inset: 10px;
  border-radius: 33px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 40%);
  pointer-events: none;
}

/* CSS 3D dice */
.dice {
  --s: 74px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: diceSpin 9s linear infinite;
  z-index: 3;
}

.dice--a { top: 8%; right: 6%; }
.dice--b { --s: 52px; bottom: 10%; left: 4%; animation-duration: 12s; animation-direction: reverse; }

.dice__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 14%;
  border-radius: 18%;
  background: linear-gradient(145deg, #fffaf0, #e7dcc6);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.18);
}

.dice__face i {
  width: 70%;
  height: 70%;
  margin: auto;
  border-radius: 50%;
  background: #1b1d27;
}

.dice__face:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.dice__face:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.dice__face:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.dice__face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.dice__face:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.dice__face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

@keyframes diceSpin {
  from { transform: rotateX(0) rotateY(0) rotateZ(0); }
  to { transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg); }
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.orbit--1 { width: 420px; height: 420px; }
.orbit--2 { width: 560px; height: 560px; animation-duration: 60s; animation-direction: reverse; }

.orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.orbit--2::before {
  background: var(--purple-lite);
  box-shadow: 0 0 18px var(--purple-lite);
}

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

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.stat {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.4rem;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Horizontal process (home)
   -------------------------------------------------------------------------- */

.hscroll {
  position: relative;
  overflow: hidden;
}

.hscroll__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2));
}

.step {
  position: relative;
  flex: none;
  width: min(440px, 80vw);
  min-height: 380px;
  padding: 2.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}

.step:hover .step__num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}

.step h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.step p {
  color: var(--muted);
}

.hscroll__bar {
  margin: 2.5rem auto 0;
  width: min(100% - 2.5rem, var(--container));
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.hscroll__bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   Service rows (services page)
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--dim);
  padding-top: 0.6rem;
}

.service-row h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.service-row p {
  color: var(--muted);
}

.service-row .feature-list {
  margin: 0;
}

.service-row:hover h2 {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Engagement cards */
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.plan--featured {
  background: linear-gradient(160deg, rgba(95, 227, 106, 0.1), rgba(177, 140, 255, 0.12));
  border-color: rgba(95, 211, 95, 0.35);
}

.plan .feature-list {
  margin-top: auto;
}

/* Tech grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.industry {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1.8rem 1rem;
  background: var(--bg);
  text-align: center;
  transition: background 0.4s;
}

.industry:hover {
  background: var(--bg-3);
}

.industry b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

.industry span {
  font-size: 0.78rem;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Products page
   -------------------------------------------------------------------------- */

.product-lab {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
}

.product-lab__art {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  opacity: 0.8;
}

.product-lab__art svg {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 55%;
  height: auto;
  animation: floaty 6s ease-in-out infinite;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(154, 133, 230, 0.15);
  color: var(--purple-lite);
  border: 1px solid rgba(154, 133, 230, 0.3);
}

.badge--live {
  background: rgba(95, 227, 106, 0.15);
  color: #6fdc70;
  border-color: rgba(95, 227, 106, 0.35);
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: auto 0.5rem auto 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

@keyframes floaty {
  50% { transform: translateY(-14px) rotate(4deg); }
}

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

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.big-quote .word {
  opacity: 0.18;
  transition: opacity 0.2s;
}

.prose {
  display: grid;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-left: 3.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.timeline__line {
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.timeline__line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #5fe36a, #22c7e6, #b18cff);
  transform: scaleY(0);
  transform-origin: top;
}

.tl-item {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-3.5rem + 4px);
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-2);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.tl-item.is-active::before {
  border-color: #5fe36a;
  background: #5fe36a;
  box-shadow: 0 0 0 6px rgba(95, 211, 95, 0.15), 0 0 20px rgba(95, 211, 95, 0.6);
}

.tl-item__kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.tl-item h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.tl-item p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field {
  position: relative;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.4rem 1rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e97ae' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}

.field select option {
  background: var(--bg-2);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--dim);
  pointer-events: none;
  transition: transform 0.3s var(--ease), color 0.3s, font-size 0.3s;
  transform-origin: left top;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(95, 211, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(95, 227, 106, 0.12);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label {
  transform: translateY(-0.6rem) scale(0.78);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips__label {
  width: 100%;
  font-size: 0.9rem;
  color: var(--muted);
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.chip input:checked + span {
  background: var(--grad);
  color: #04110a;
  border-color: transparent;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form__note {
  font-size: 0.85rem;
  color: var(--dim);
}

.form__status {
  font-size: 0.92rem;
  color: #6fdc70;
  min-height: 1.4em;
}

.info-stack {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
}

.info-card .card__icon {
  flex: none;
  margin: 0;
  width: 48px;
  height: 48px;
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-card a:hover {
  color: #6fdc70;
}

.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq details[open] {
  border-color: var(--border-2);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--surface-2);
}

.faq details p {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 36px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.cta__bg {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: conic-gradient(from 0deg, rgba(95, 227, 106, 0.35), rgba(34, 199, 230, 0.3), rgba(177, 140, 255, 0.4), rgba(95, 227, 106, 0.35));
  filter: blur(80px);
  animation: spin 18s linear infinite;
  opacity: 0.6;
}

.cta > *:not(.cta__bg) {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  max-width: 16ch;
}

.footer {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.footer__brand img {
  height: 40px;
  width: auto;
  filter: brightness(1.18);
}

.footer__brand p {
  color: var(--muted);
  max-width: 34ch;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer ul a {
  color: var(--muted);
  transition: color 0.3s;
}

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

.footer__giant {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 15.5vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  user-select: none;
  white-space: nowrap;
}

.footer__bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--dim);
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.socials a:hover {
  color: #04110a;
  background: var(--grad);
  border-color: transparent;
}

.socials svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   Reveal defaults (JS enhances; visible without JS)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
}

.js.no-motion [data-reveal],
.js.no-gsap [data-reveal] {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive (mobile + tablet first-class)
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }

  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-bottom: 3.5rem; }
  .hero__content { gap: 1.3rem; }
  .hero__scroll { display: none; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__visual { min-height: 460px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .service-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-row__num { padding-top: 0; }
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .feature-tiles { grid-template-columns: repeat(2, 1fr); }
  .cursor, .cursor-dot { display: none; }

  .hscroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll__track { padding-block: 0.5rem; }
  .step { scroll-snap-align: center; }
  .hscroll__bar { display: none; }
}

@media (max-width: 640px) {
  .grid--3,
  .grid--2,
  .grid--4,
  .feature-tiles { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .card { padding: 1.6rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .spotlight { border-radius: 24px; }
  .spotlight__visual { min-height: 400px; }
  .orbit--1 { width: 300px; height: 300px; }
  .orbit--2 { width: 380px; height: 380px; }
  .dice { --s: 54px; }
  .dice--b { --s: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .step { min-height: 320px; padding: 1.8rem; }
  .timeline { padding-left: 2.8rem; }
  .tl-item::before { left: calc(-2.8rem + 4px); }
}

@media (max-width: 380px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer a,
  .info-card p { overflow-wrap: anywhere; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .hero__title { font-size: 2.5rem; }
  .page-hero__title { font-size: 2.3rem; }
  .section-title,
  .cta__title { font-size: 1.9rem; }
  .nav__logo img { height: 28px; }
}

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