html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 73, 174, .08), transparent 46%),
    var(--ink);
}

.swiper::before,
.swiper::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(42px);
  will-change: transform, opacity;
}

.swiper::before {
  width: 58vw;
  height: 58vw;
  top: -24vw;
  left: -18vw;
  background: radial-gradient(circle, rgba(49, 114, 255, .23) 0%, rgba(22, 76, 196, .1) 42%, transparent 72%);
  opacity: var(--glow-left-opacity, .62);
  transform: translate3d(var(--glow-left-x, -4vw), var(--glow-left-y, -2vh), 0) scale(var(--glow-left-scale, .94));
  transition:
    transform var(--glow-left-speed, 9s) cubic-bezier(.42, 0, .23, 1),
    opacity var(--glow-left-speed, 9s) ease-in-out;
}

.swiper::after {
  width: 52vw;
  height: 52vw;
  right: -16vw;
  bottom: -22vw;
  background: radial-gradient(circle, rgba(70, 151, 255, .2) 0%, rgba(24, 91, 214, .08) 45%, transparent 73%);
  opacity: var(--glow-right-opacity, .56);
  transform: translate3d(var(--glow-right-x, 3vw), var(--glow-right-y, 4vh), 0) scale(var(--glow-right-scale, .96));
  transition:
    transform var(--glow-right-speed, 11s) cubic-bezier(.42, 0, .23, 1),
    opacity var(--glow-right-speed, 11s) ease-in-out;
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: min(44vw, 720px);
  height: min(44vw, 720px);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(75, 156, 255, .22) 0%, rgba(36, 103, 234, .1) 38%, transparent 72%);
  filter: blur(30px);
  transform: translate3d(var(--cursor-glow-x, 50vw), var(--cursor-glow-y, 50vh), 0) translate(-50%, -50%);
  transition: opacity .45s ease;
  will-change: transform, opacity;
}

.cursor-glow.is-active {
  opacity: .72;
}

.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

.swiper-slide {
  min-height: 100% !important;
  overflow: hidden;
}

.swiper-slide.panel {
  display: flex;
}

.particle-field {
  width: 100vw !important;
  height: 100vh !important;
}

.hero-core {
  width: min(58vw, 860px) !important;
  height: min(58vw, 860px) !important;
  right: 12vw !important;
}

.hero h1 strong {
  font-size: clamp(32px, 3.6vw, 60px);
  letter-spacing: -.035em;
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

.hero-copy h1 + .primary {
  margin-top: 32px;
}

.particle-logo-scene {
  cursor: crosshair;
}

.particle-logo-scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 34%;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 119, 255, .48) 0%, rgba(16, 78, 220, .18) 42%, rgba(7, 39, 132, 0) 74%);
  filter: blur(12px);
  transform-origin: center;
  animation: particle-core-breathe 3.6s ease-in-out infinite;
}

.particle-logo-canvas {
  position: relative;
  z-index: 2;
}

.architecture-map {
  right: 14vw !important;
}

.architecture-map .node {
  width: 140px;
  min-width: 140px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.architecture-map .node b {
  white-space: nowrap;
}

.orbit-points {
  position: absolute;
  z-index: 3;
  inset: 17%;
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-points-clockwise 12s linear infinite;
}

.orbit-points i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan), 0 0 14px rgba(63, 111, 255, .75);
}

.orbit-points i:nth-child(1) {
  top: -3px;
  left: calc(50% - 3px);
}

.orbit-points i:nth-child(2) {
  top: calc(50% - 3px);
  right: -3px;
}

.orbit-points i:nth-child(3) {
  bottom: -3px;
  left: calc(50% - 3px);
}

.orbit-points i:nth-child(4) {
  top: calc(50% - 3px);
  left: -3px;
}

@keyframes orbit-points-clockwise {
  to {
    transform: rotate(360deg);
  }
}

.architecture-map .n1 {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.architecture-map .n2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.architecture-map .n3 {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.architecture-map .n4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

@keyframes particle-core-breathe {
  0%, 100% {
    opacity: .36;
    transform: scale(.78);
    filter: blur(15px);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
    filter: blur(8px);
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #7ca0ff;
  outline-offset: 4px;
}

.contact footer a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

/* Laptop screens: keep the headline compact and give the particle scene its own space. */
@media (901px <= width <= 1600px) {
  h2 {
    font-size: clamp(44px, 3.8vw, 58px);
  }

  .hero-copy {
    width: 48%;
  }

  .hero h1 span {
    font-size: clamp(58px, 5.2vw, 78px);
  }

  .hero h1 strong {
    margin-top: 12px;
    font-size: clamp(34px, 3.2vw, 48px);
  }

  .hero-copy p {
    margin: 26px 0;
    font-size: 13px;
  }

  .hero-core {
    width: min(44vw, 660px) !important;
    height: min(44vw, 660px) !important;
    top: 52%;
    right: 2.5vw !important;
  }

  .section-title {
    width: 34%;
  }

  .cap-grid {
    width: 62%;
  }

  .cap-grid article {
    min-height: 330px;
    padding: 28px 22px;
  }

  .cap-grid h3 {
    margin-top: 54px;
    font-size: 22px;
  }

  .arch-copy {
    width: 42%;
  }

  .architecture-map {
    width: min(38vw, 540px);
    height: min(38vw, 540px);
    right: 6vw !important;
  }

  .case-heading {
    margin: 20px 0 16px;
  }

  .case-card {
    height: 350px;
  }

  .case-phone {
    height: 238px;
  }

  .contact-qr img {
    width: 124px;
    height: 124px;
  }
}

@media (901px <= width <= 1600px) and (height <= 820px) {
  .panel {
    padding-top: 104px;
    padding-bottom: 46px;
  }

  .section-index {
    top: 106px;
  }

  h2 {
    margin: 18px 0;
    font-size: clamp(42px, 3.5vw, 52px);
  }

  .hero .eyebrow {
    top: 108px;
  }

  .hero h1 span {
    font-size: clamp(56px, 4.8vw, 72px);
  }

  .hero h1 strong {
    font-size: clamp(32px, 3vw, 44px);
  }

  .hero-copy h1 + .primary {
    margin-top: 26px;
  }

  .hero-copy p {
    margin: 22px 0;
    line-height: 1.6;
  }

  .hero-core {
    width: min(41vw, 580px) !important;
    height: min(41vw, 580px) !important;
    top: 53%;
    right: 3vw !important;
  }

  .section-intro {
    margin-top: 18px;
  }

  .cap-grid article {
    min-height: 300px;
    padding: 24px 20px;
  }

  .cap-grid h3 {
    margin: 44px 0 14px;
    font-size: 20px;
  }

  .architecture-map {
    width: min(35vw, 500px);
    height: min(35vw, 500px);
  }

  .arch-stats {
    bottom: 40px;
  }

  .case-heading {
    margin: 10px 0 14px;
  }

  .case-card {
    height: 320px;
  }

  .case-phone {
    height: 210px;
  }

  .ticker {
    bottom: 24px;
  }

  .contact-copy p {
    margin-bottom: 24px;
  }

  .contact-qr img {
    width: 112px;
    height: 112px;
  }

  .hero-footer {
    bottom: 28px;
  }
}

@media (width <= 900px) {
  .cursor-glow {
    display: none;
  }

  .panel {
    padding: 92px 28px 66px;
  }

  .hero .eyebrow,
  .section-index {
    top: 92px;
  }

  .hero .eyebrow {
    right: 28px;
    line-height: 1.65;
  }

  .hero .eyebrow span {
    margin-right: 18px;
  }

  .hero-copy {
    width: 100%;
    margin-top: 12vh;
  }

  .hero h1 span {
    font-size: clamp(48px, 14vw, 58px);
  }

  .hero h1 strong {
    max-width: 310px;
    margin-top: 10px;
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.18;
    white-space: normal;
  }

  .mobile-break {
    display: block;
  }

  .hero-copy h1 + .primary {
    margin-top: 28px;
  }

  .hero-core {
    width: 94vw !important;
    height: 94vw !important;
    top: 39%;
    right: -34vw !important;
    opacity: .68;
  }

  .hero-footer {
    bottom: 38px;
  }

  .swiper-slide.panel.capability {
    display: block;
  }

  .capability .section-title {
    width: 100%;
    margin-top: 11vh;
  }

  .capability h2 {
    max-width: 320px;
    margin: 14px 0 0;
    font-size: clamp(38px, 10.5vw, 44px);
    line-height: 1.08;
  }

  .cap-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    width: 100%;
    margin-top: 28px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cap-grid::-webkit-scrollbar,
  .case-track::-webkit-scrollbar {
    display: none;
  }

  .cap-grid article {
    min-height: 260px;
    padding: 20px;
    scroll-snap-align: start;
  }

  .cap-grid h3 {
    margin: 38px 0 12px;
    font-size: 22px;
  }

  .architecture {
    align-items: flex-start;
    padding-top: 23vh;
  }

  .arch-copy {
    z-index: 4;
    width: 100%;
  }

  .arch-copy h2 {
    max-width: 330px;
    font-size: clamp(38px, 10.4vw, 43px);
    line-height: 1.08;
  }

  .arch-copy p {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.75;
  }

  .architecture-map {
    width: 66vw;
    height: 66vw;
    top: auto;
    right: 0 !important;
    bottom: 102px;
    opacity: .3;
    transform: none;
  }

  .architecture-map .node {
    display: none;
  }

  .arch-stats {
    z-index: 4;
    right: 22px;
    bottom: 46px;
    left: 28px;
    justify-content: space-between;
    gap: 10px;
  }

  .arch-stats div {
    width: 30%;
  }

  .arch-stats span {
    font-size: 8px;
    line-height: 1.55;
  }

  .case-heading {
    margin-top: 9vh;
  }

  .case-heading h2 {
    font-size: 40px;
  }

  .case-track {
    grid-template-columns: repeat(6, 242px);
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .case-card {
    height: 350px;
  }

  .case-phone {
    height: 238px;
  }

  .contact-copy {
    margin-top: 13vh;
  }

  .swiper-slide.panel.contact {
    display: block;
  }

  .contact-copy h2 {
    margin: 18px 0;
    font-size: 43px;
  }

  .contact-copy p {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.75;
  }

  .contact-copy .primary {
    padding: 15px 18px;
  }

  .company-name {
    margin-top: 18px;
  }

  .contact-qr {
    position: static;
    width: max-content;
    margin: 24px 0 0;
    opacity: 1;
    transform: none;
  }

  .contact-qr img {
    width: 78px;
    height: 78px;
  }

  .contact footer {
    right: 14px;
    left: 14px;
    min-height: 66px;
    height: auto;
    padding: 9px 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4px;
    font-size: 7px;
    letter-spacing: .08em;
    line-height: 1.55;
  }

  .contact footer div:nth-child(3) {
    color: #435451;
  }
}

@media (width <= 900px) and (height <= 740px) {
  .contact {
    padding-top: 82px;
  }

  .contact .section-index {
    top: 82px;
  }

  .contact-copy {
    margin-top: 9vh;
  }

  .contact-copy > span {
    font-size: 9px;
  }

  .contact-copy h2 {
    margin: 12px 0;
    font-size: 36px;
    line-height: 1.02;
  }

  .contact-copy p {
    margin-bottom: 16px;
    font-size: 11px;
    line-height: 1.6;
  }

  .contact-copy .primary {
    padding: 13px 16px;
  }

  .company-name {
    margin-top: 12px;
    font-size: 9px;
  }

  .contact-qr {
    margin-top: 14px;
  }

  .contact-qr > div {
    gap: 7px;
    padding: 6px;
  }

  .contact-qr img {
    width: 64px;
    height: 64px;
  }

  .contact-qr span {
    font-size: 8px;
  }

  .contact footer {
    min-height: 58px;
    padding: 7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swiper-wrapper {
    transition-duration: 0ms !important;
  }

  .swiper::before,
  .swiper::after {
    animation: none;
    opacity: .65;
  }

  .cursor-glow {
    display: none;
  }

  .particle-logo-scene::after {
    animation: none;
    opacity: .7;
  }

  .orbit-points {
    animation: none;
  }
}
