:root {
  --uts-navy: #142837;
  --uts-navy-2: #162437;
  --ink: #0f172a;
  --muted: #536176;
  --soft: #f6f9fd;
  --ice: #eaf4ff;
  --white: #ffffff;
  --line: #d7e4f5;
  --line-dark: rgba(255, 255, 255, 0.18);
  --steel: #344156;
  --blue: #2b79d0;
  --pending: #fff5d8;
  --onboarding: #e4f5ff;
  --working: #defbe8;
  --hold: #fff0df;
  --shadow: 0 24px 70px rgba(16, 40, 48, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--soft);
  scroll-behavior: smooth;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px 48px;
  color: var(--white);
  background: var(--uts-navy);
  border-bottom: 1px solid var(--line-dark);
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--uts-navy);
  box-shadow: 0 16px 48px rgba(16, 40, 48, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 850;
}

.brand img {
  width: 126px;
  height: 54px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8bd8e6;
  box-shadow: 0 0 16px rgba(139, 216, 230, 0.72);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    background 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav-cta {
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.nav-cta:hover,
.button:hover {
  transform: scale(1.03);
}

.nav-cta:hover,
.nav-cta.is-active {
  border-color: rgba(255, 255, 255, 1);
  background: linear-gradient(135deg, rgba(43, 121, 208, 0.72), rgba(139, 216, 230, 0.54));
  box-shadow:
    0 0 0 1px rgba(167, 238, 246, 0.28),
    0 18px 42px rgba(43, 121, 208, 0.32);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: var(--uts-navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 40, 48, 0.95), rgba(16, 40, 48, 0.68) 46%, rgba(15, 23, 42, 0.72)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.08) 56%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  content: "";
  opacity: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 132px 72px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("./assets/hero-factory-poster.jpeg") center / cover no-repeat;
}

.hero-media::after {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  width: min(42vw, 580px);
  aspect-ratio: 2368 / 1039;
  background: url("./assets/uts-logo.png") center / contain no-repeat;
  content: "";
  opacity: 0.08;
}

.hero-media-image {
  background:
    linear-gradient(90deg, rgba(20, 40, 55, 0.88), rgba(20, 40, 55, 0.42)),
    url("https://images.pexels.com/photos/3184357/pexels-photo-3184357.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-content {
  max-width: 880px;
}

.hero-dots {
  position: absolute;
  bottom: 34px;
  left: 72px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.process-section .eyebrow {
  color: #9dccff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.hero-title {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 5.5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.24rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
}

.button-primary:hover {
  border-color: rgba(255, 255, 255, 1);
  background: linear-gradient(135deg, rgba(43, 121, 208, 0.72), rgba(139, 216, 230, 0.54));
  box-shadow: 0 16px 34px rgba(43, 121, 208, 0.22);
}

.hero .button-primary {
  border-color: rgba(139, 216, 230, 0.58);
  background: rgba(0, 102, 204, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: var(--white);
}

.hero .button-primary:hover {
  border-color: rgba(167, 238, 246, 0.92);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.34), rgba(139, 216, 230, 0.24));
  box-shadow: 0 18px 42px rgba(43, 121, 208, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button-secondary.dark {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.service-card p,
.process-grid p,
.about-copy p,
.mission-vision p,
.contact-content p,
.site-footer p,
.section-heading p,
.split-content p {
  color: var(--muted);
}

.section {
  padding: 108px 72px;
}

.section-light {
  background: var(--soft);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 54px;
}

.section-heading p {
  max-width: 680px;
  font-size: 1.04rem;
}

.service-carousel-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.carousel-controls {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  margin: -10px 0 18px;
}

.carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--uts-navy);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.carousel-controls button:hover {
  border-color: #9ec9f4;
  box-shadow: 0 12px 28px rgba(20, 40, 55, 0.12);
}

.service-carousel {
  display: flex;
  gap: 18px;
  margin-inline: -72px;
  overflow: visible;
  padding: 34px 72px 28px;
  width: max-content;
  animation: services-marquee 34s linear infinite;
}

.service-card {
  position: relative;
  width: min(420px, 84vw);
  flex: 0 0 auto;
  min-height: 300px;
  padding: 64px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  border-color: #9ec9f4;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-carousel-wrap:hover .service-carousel {
  animation-play-state: paused;
}

.service-carousel.is-paused {
  animation-play-state: paused;
}

@keyframes services-marquee {
  from {
    transform: translateX(0);
  }

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

.service-icon-slot {
  position: absolute;
  top: -26px;
  left: 28px;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--uts-navy);
  box-shadow: 0 16px 32px rgba(20, 40, 55, 0.18);
}

.service-icon-slot svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.split-section,
.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split-image,
.contact-image {
  display: flex;
  overflow: hidden;
}

.split-image {
  height: 640px;
}

.contact-image {
  min-height: 640px;
}

.split-image img,
.contact-image img {
  flex: 1;
  height: 100%;
  object-fit: cover;
}

.contact-image img {
  min-height: inherit;
}

.split-image img {
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 420ms ease;
}

.split-image img.is-changing {
  opacity: 0.18;
  transform: scale(1.015);
}

.split-content,
.contact-content,
.about-copy,
.mission-vision {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px;
}

.split-content {
  background: var(--white);
}

.accent-underline {
  display: inline-block;
  box-shadow: inset 0 -0.18em 0 #d8ff3f;
}

.hero .accent-underline {
  color: var(--white);
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.industry-list button {
  appearance: none;
  padding: 10px 15px;
  border: 2px solid #bfd0e5;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.industry-list button:hover,
.industry-list button:focus-visible,
.industry-list button.is-active {
  border-color: var(--uts-navy);
  background: var(--uts-navy);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}

.process-section {
  background: var(--uts-navy-2);
  color: var(--white);
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.process-grid article {
  position: relative;
  min-height: 300px;
  padding: 42px;
  border: 1px solid transparent;
  background: var(--uts-navy-2);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.process-grid article:hover {
  border-color: rgba(157, 204, 255, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.process-marker {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
  color: rgba(157, 204, 255, 0.2);
  transition: color 180ms ease;
}

.process-marker span {
  display: block;
  font-size: clamp(5.5rem, 9vw, 8.5rem);
  font-weight: 950;
  line-height: 0.78;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  -webkit-text-stroke: 1px rgba(157, 204, 255, 0.56);
}

.process-marker svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: translateY(5px);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.process-marker .handshake-icon {
  width: 52px;
  height: 52px;
  stroke-width: 2.35;
  transform: translateY(0);
}

.process-grid article:hover .process-marker {
  color: #d8ff3f;
}

.process-grid article:hover .process-marker svg {
  transform: translateY(1px) scale(1.08);
}

.process-grid article:hover .process-marker .handshake-icon {
  transform: translateY(-1px) scale(1.1);
}

.reveal-on-scroll,
[data-reveal-step] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal-on-scroll.is-visible,
[data-reveal-step].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-step]:nth-child(2) {
  transition-delay: 200ms;
}

[data-reveal-step]:nth-child(3) {
  transition-delay: 400ms;
}

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

  body {
    scroll-behavior: auto;
  }

  .reveal-on-scroll,
  [data-reveal-step] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.process-grid h3 {
  font-size: 1.38rem;
}

.process-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.process-section .service-carousel-wrap {
  margin-top: 56px;
  margin-inline: -72px;
}

.process-section .service-carousel {
  margin-inline: 0;
  padding: 28px 72px 34px;
  animation-duration: 30s;
}

.process-section .service-card {
  width: min(305px, 78vw);
  min-height: 214px;
  padding: 56px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.process-section .service-card h3 {
  color: var(--white);
  font-size: 1.02rem;
}

.process-section .service-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.process-section .service-icon-slot {
  top: -20px;
  left: 22px;
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 40, 55, 0.86);
}

.process-section .service-icon-slot svg {
  width: 24px;
  height: 24px;
}

.about-section {
  background: var(--white);
}

.about-copy p {
  max-width: 650px;
  font-size: 1.05rem;
}

.mission-vision {
  gap: 16px;
  background: var(--ice);
}

.mission-vision article {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--uts-navy);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: var(--uts-navy);
  color: var(--white);
}

.contact-content {
  gap: 0;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.72);
}

.direct-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 720px);
  margin-top: 30px;
}

.direct-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.direct-card:hover {
  border-color: rgba(216, 255, 63, 0.58);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.24);
  transform: translateY(-6px);
}

.direct-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(20, 40, 55, 0.82);
  color: #d8ff3f;
}

.direct-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.direct-card h3 {
  max-width: 260px;
  color: var(--white);
  font-size: 1.42rem;
}

.contact-content .direct-card p {
  flex: 1;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.direct-card .button {
  width: 100%;
  margin-top: auto;
}

.direct-card .business-action {
  border-color: #8bd8e6;
  box-shadow:
    0 0 0 1px rgba(139, 216, 230, 0.22),
    0 14px 34px rgba(43, 121, 208, 0.18);
}

.direct-card .business-action:hover {
  border-color: #a7eef6;
  box-shadow:
    0 0 0 1px rgba(167, 238, 246, 0.36),
    0 18px 42px rgba(43, 121, 208, 0.26);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 34px 72px;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: var(--uts-navy);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  font-size: 1.45rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  h1,
  .hero-title {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand img {
    width: 94px;
    height: 42px;
  }

  .nav-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 7px;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--uts-navy);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .nav-cta {
    margin-top: 6px;
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--white);
  }

  .main-nav a:not(.nav-cta)::after {
    right: 16px;
    bottom: 50%;
    left: auto;
    transform: translateY(50%) scale(0.2);
  }

  .main-nav a:hover::after,
  .main-nav a.is-active::after {
    transform: translateY(50%) scale(1);
  }

  .hero {
    min-height: 76vh;
    overflow: hidden;
  }

  .hero-slide {
    position: absolute;
    display: grid;
    min-height: 76vh;
    padding: 112px 20px 58px;
  }

  .hero-lede {
    display: none;
  }

  h1,
  .hero-title {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .process-grid,
  .split-section,
  .about-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 20px;
  }

  .service-carousel {
    margin-inline: -20px;
    padding-inline: 20px;
    animation-duration: 28s;
  }

  .process-section .service-carousel-wrap {
    margin-inline: -20px;
  }

  .process-section .service-carousel {
    padding: 26px 20px 30px;
  }

  .direct-actions {
    grid-template-columns: 1fr;
  }

  .direct-card {
    min-height: 280px;
  }

  .service-card {
    min-height: auto;
  }

  .split-image,
  .contact-image {
    min-height: 360px;
  }

  .split-image {
    height: 360px;
  }

  .split-content,
  .contact-content,
  .about-copy,
  .mission-vision {
    padding: 56px 20px;
  }

  .site-footer {
    align-items: start;
    padding: 34px 20px;
  }

  .hero-dots {
    bottom: 24px;
    left: 20px;
  }
}

@media (max-width: 520px) {
  h1,
  .hero-title {
    max-width: 340px;
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }
}
