:root {
  --cream: #f5f3ee;
  --ink: #111111;
  --white: #ffffff;

  --blue: #5272ff;
  --pink: #ff5cff;
  --lime: #b8ff5a;

  --gray: #d9d6ce;
  --muted: #6e6c67;
  --line: #dedbd3;

  --pink-soft: #ffe1f7;
  --blue-soft: #e2e8ff;
  --yellow-soft: #fff0bc;
  --green-soft: #e5f7d9;
  --purple-soft: #ebe4ff;

  --container: 1280px;

  --heading: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}


/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);

  font-family: var(--body);

  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
}

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

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

.container {
  width: min(
    var(--container),
    calc(100% - 96px)
  );

  margin-inline: auto;
}

.section {
  padding-block: 125px;
}

.label {
  display: block;

  margin-bottom: 20px;

  color: #77736c;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1.5px;
}


/* =========================
   LOGO
========================= */

.logo {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-family: var(--heading);

  font-size: 20px;

  font-weight: 800;

  letter-spacing: -1px;
}

.logo-mark {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background: var(--ink);

  color: white;

  font-size: 17px;
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;

  top: 0;

  z-index: 100;

  background:
    rgba(245, 243, 238, .9);

  backdrop-filter: blur(16px);

  border-bottom:
    1px solid transparent;

  transition:
    border-color .3s ease;
}

.header.scrolled {
  border-color: var(--line);
}

.nav {
  height: 80px;

  display: flex;

  align-items: center;
}

.desktop-nav {
  display: flex;

  gap: 30px;

  margin-left: auto;

  margin-right: 38px;
}

.desktop-nav a {
  color: #55524d;

  font-size: 13px;

  transition:
    color .2s ease;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.nav-cta {
  min-height: 44px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding-inline: 17px;

  border-radius: 9px;

  background: var(--ink);

  color: white;

  font-size: 12px;

  font-weight: 600;
}

.menu-toggle {
  display: none;

  margin-left: auto;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 23px;
  height: 2px;

  margin: 5px;

  background: var(--ink);
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;

  inset: 0;

  z-index: 300;

  padding: 22px;

  display: flex;

  flex-direction: column;

  background: var(--ink);

  color: white;

  transform: translateX(100%);

  transition:
    transform .45s
    cubic-bezier(.77, 0, .18, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.mobile-menu .logo {
  color: white;
}

.mobile-menu .logo-mark {
  background: white;
  color: var(--ink);
}

.menu-close {
  border: 0;

  background: transparent;

  color: white;

  font-size: 38px;

  line-height: 1;

  cursor: pointer;
}

.mobile-nav {
  display: flex;

  flex-direction: column;

  gap: 18px;

  margin-top: 70px;
}

.mobile-nav a {
  font-family: var(--heading);

  font-size: 44px;

  line-height: .95;

  letter-spacing: -3px;

  font-weight: 800;
}

.mobile-menu-footer {
  margin-top: auto;

  display: flex;

  flex-direction: column;

  gap: 8px;

  color: #999;

  font-size: 11px;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 720px;

  display: flex;

  align-items: center;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    .85fr
    1.15fr;

  align-items: center;

  gap: 35px;
}

.hero-content {
  padding-block: 70px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 7px 10px;

  border:
    1px solid var(--line);

  border-radius: 999px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .7px;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--lime);
}

.hero h1 {
  margin-top: 25px;

  font-family: var(--heading);

  font-size:
    clamp(58px, 6.3vw, 88px);

  line-height: .91;

  letter-spacing: -5px;

  font-weight: 800;
}

.hero h1 span {
  position: relative;

  color: var(--blue);
}

.hero h1 span::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -5px;

  height: 6px;

  border-radius: 50%;

  background: var(--pink);

  transform: rotate(-2deg);
}

.hero-copy {
  max-width: 560px;

  margin-top: 28px;

  color: #5e5b56;

  font-size: 17px;

  line-height: 1.55;
}

.hero-actions {
  display: flex;

  gap: 10px;

  margin-top: 30px;
}

.btn {
  min-height: 52px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding-inline: 21px;

  border-radius: 10px;

  font-size: 13px;

  font-weight: 600;

  transition:
    transform .25s ease,
    background .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--ink);

  color: white;
}

.btn-outline {
  border:
    1px solid #bdbab2;
}

.hero-location {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 27px;

  color: #77736c;

  font-size: 10px;
}

.hero-location i {
  font-style: normal;
}

.availability {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--lime);
}


/* =========================
   HERO ART
========================= */

.hero-art {
  min-height: 590px;

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;
}

.hero-browser {
  width: min(650px, 92%);

  position: relative;

  z-index: 2;

  padding: 9px;

  border-radius: 17px;

  background: #181818;

  transform: rotate(-2deg);

  box-shadow:
    0 40px 90px rgba(0,0,0,.17);
}

.browser-top {
  height: 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #888;

  font-size: 8px;
}

.browser-dots {
  position: absolute;

  left: 12px;

  display: flex;

  gap: 4px;
}

.browser-dots span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #666;
}

.browser-screen {
  min-height: 385px;

  position: relative;

  overflow: hidden;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #faf8f2,
      #eceaff
    );
}

.mock-nav {
  height: 52px;

  padding-inline: 19px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 7px;
}

.mock-nav strong {
  font-size: 11px;
}

.mock-links {
  display: flex;

  gap: 14px;

  color: #777;
}

.mock-button {
  padding: 7px 10px;

  border-radius: 5px;

  background: var(--ink);

  color: white;
}

.mock-main {
  position: relative;

  z-index: 2;

  padding: 55px 43px;
}

.mock-main small {
  font-size: 7px;

  font-weight: 700;
}

.mock-main h2 {
  margin-top: 18px;

  font-family: var(--heading);

  font-size: 55px;

  line-height: .9;

  letter-spacing: -3px;
}

.mock-main h2 em {
  color: var(--blue);

  font-style: normal;
}

.mock-main p {
  max-width: 230px;

  margin-top: 17px;

  color: #777;

  font-size: 9px;

  line-height: 1.5;
}

.mock-orb {
  width: 280px;
  height: 280px;

  position: absolute;

  right: -80px;
  bottom: -120px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      var(--blue),
      #806cff 45%,
      var(--pink) 65%,
      transparent 70%
    );

  opacity: .75;
}

.hero-phone {
  width: 145px;
  height: 285px;

  position: absolute;

  left: 8%;
  bottom: 5%;

  z-index: 4;

  padding: 19px 12px;

  border: 5px solid #171717;

  border-radius: 27px;

  background: #faf9f4;

  transform: rotate(-8deg);

  box-shadow:
    0 35px 65px rgba(0,0,0,.22);
}

.phone-speaker {
  width: 45px;
  height: 8px;

  margin:
    -12px auto 24px;

  border-radius: 10px;

  background: var(--ink);
}

.phone-brand {
  color: #777;

  font-size: 7px;
}

.hero-phone h3 {
  margin-top: 36px;

  font-family: var(--heading);

  font-size: 18px;

  line-height: .95;

  letter-spacing: -1px;
}

.hero-phone h3 span {
  color: var(--blue);
}

.phone-project {
  position: absolute;

  left: 10px;
  right: 10px;
  bottom: 11px;

  padding: 12px;

  border-radius: 11px;

  background: #e5eaff;
}

.phone-project small {
  display: block;

  font-size: 5px;

  color: #777;
}

.phone-project strong {
  display: block;

  margin-top: 6px;

  font-size: 9px;
}

.phone-project span {
  display: block;

  margin-top: 7px;

  font-size: 6px;
}

.hero-note {
  position: absolute;

  z-index: 5;

  font-family:
    "Comic Sans MS",
    cursive;

  font-size: 15px;

  line-height: 1;

  color: #252525;
}

.note-left {
  top: 11%;
  left: 0;

  transform: rotate(-8deg);
}

.note-right {
  top: 7%;
  right: 0;

  transform: rotate(7deg);
}

.hero-shape {
  position: absolute;

  border-radius: 50%;
}

.shape-blue {
  width: 25px;
  height: 25px;

  right: 1%;
  top: 25%;

  background: var(--blue);
}

.shape-pink {
  width: 36px;
  height: 36px;

  left: 0;
  bottom: 14%;

  background: var(--pink);
}


/* =========================
   TRUST
========================= */

.trust {
  border-block:
    1px solid var(--line);
}

.trust-inner {
  min-height: 125px;

  display: grid;

  grid-template-columns:
    160px 1fr 50px;

  align-items: center;

  gap: 40px;
}

.trust-label {
  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1.3px;
}

.trust p {
  max-width: 700px;

  font-size: 17px;

  line-height: 1.5;
}

.trust p strong {
  font-weight: 700;
}

.trust-number {
  text-align: right;

  color: #999;

  font-size: 11px;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading.split {
  display: grid;

  grid-template-columns:
    1fr .6fr;

  gap: 80px;

  align-items: end;

  margin-bottom: 65px;
}

.section-heading h2,
.work-heading h2 {
  font-family: var(--heading);

  font-size:
    clamp(48px, 5vw, 72px);

  line-height: .94;

  letter-spacing: -4px;
}

.section-heading h2 span {
  color: var(--blue);
}

.section-heading > p {
  color: #66625c;

  font-size: 14px;

  line-height: 1.6;
}


/* =========================
   SERVICES
========================= */

.services {
  background: var(--ink);
  color: var(--white);
}

.services .label {
  color: #8f8f8f;
}

.services .section-heading h2 {
  color: var(--white);
}

.services .section-heading h2 span {
  color: var(--blue);
}

.services .section-heading > p {
  color: #a7a7a7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 325px;
  padding: 34px 28px 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  border: 1px solid #292b30;
  border-radius: 20px;

  background: #191a1d;
  color: var(--white);
  text-align: center;

  transition:
    transform .4s cubic-bezier(.22,1,.36,1),
    border-color .3s ease,
    background .3s ease,
    box-shadow .4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -90px;
  top: -90px;

  border-radius: 50%;
  border: 1px solid rgba(82,114,255,.12);

  pointer-events: none;
  transition: transform .45s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(82,114,255,.42);
  background: #1c1e22;
  box-shadow: 0 24px 55px rgba(0,0,0,.28);
}

.service-card:hover::after {
  transform: scale(1.08);
  border-color: rgba(82,114,255,.2);
}

.service-pink,
.service-blue,
.service-yellow,
.service-green,
.service-purple,
.service-neutral {
  background: #191a1d;
  color: var(--white);
}

.service-number {
  display: none;
}

.service-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;

  margin: 0 0 22px;

  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  border: 1px solid rgba(82,114,255,.24);
  border-radius: 50%;

  background: rgba(82,114,255,.10);
  color: var(--blue);

  box-shadow:
    inset 0 0 0 6px rgba(82,114,255,.025);

  transition:
    background .3s ease,
    border-color .3s ease,
    color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.service-icon i {
  font-size: 21px;
  line-height: 1;
}

.service-card:hover .service-icon {
  background: rgba(82,114,255,.16);
  border-color: rgba(82,114,255,.55);
  color: #6f8cff;
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 6px rgba(82,114,255,.025),
    0 10px 25px rgba(82,114,255,.10);
}

.service-bottom {
  width: 100%;

  position: relative;
  z-index: 1;

  margin-top: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-bottom h3 {
  font-family: var(--heading);

  font-size: 21px;
  line-height: 1.1;

  letter-spacing: -.65px;
  color: var(--white);
}

.service-bottom p {
  max-width: 290px;

  margin: 11px auto 0;

  color: #9b9da3;

  font-size: 12px;
  line-height: 1.6;
}

.service-bottom a {
  min-height: 40px;

  margin-top: 20px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;

  background: #23252a;
  color: #f5f5f5;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    gap .25s ease;
}

.service-bottom a:hover {
  transform: translateY(-2px);
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  gap: 9px;
}

@media (max-width: 640px) {

  .service-card {
    min-height: 285px;
    padding: 30px 24px;
  }

  .service-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    margin-bottom: 19px;
  }

  .service-icon i {
    font-size: 20px;
  }

  .service-bottom h3 {
    font-size: 20px;
  }

  .service-bottom p {
    max-width: 310px;
  }

}

/* =========================
   WORK
========================= */

.work-heading {
  display: flex;

  align-items: end;

  justify-content: space-between;

  margin-bottom: 55px;
}

.work-heading h2 span {
  color: var(--blue);
}

.work-heading > p {
  max-width: 350px;

  color: #66625c;

  font-size: 13px;

  line-height: 1.6;
}


/* FEATURED */

.featured-image {
  width: 100%;

  position: relative;

  overflow: hidden;

  display: block;

  padding: 0;

  border: 0;

  aspect-ratio: 16 / 8.2;

  border-radius: 24px;

  background: #ddd;

  cursor: zoom-in;
}

.featured-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .7s ease;
}

.featured-image:hover img {
  transform: scale(1.025);
}

.image-gradient {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      transparent 50%,
      rgba(0,0,0,.65)
    );
}

.project-overlay {
  position: absolute;

  inset: 0;

  padding: 28px;

  display: flex;

  align-items: end;

  justify-content: space-between;

  color: white;

  pointer-events: none;
}

.project-overlay > span {
  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1.2px;
}

.project-view {
  padding: 10px 14px;

  border-radius: 8px;

  background: white;

  color: var(--ink);

  font-size: 10px !important;

  letter-spacing: 0 !important;
}

.project-meta {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 30px;

  padding-top: 20px;
}

.project-meta span {
  font-size: 9px;

  letter-spacing: 1px;

  color: #777;
}

.project-meta h3 {
  margin-top: 7px;

  font-family: var(--heading);

  font-size: 27px;

  letter-spacing: -1px;
}

.project-meta p {
  max-width: 430px;

  color: #66625c;

  font-size: 13px;

  line-height: 1.5;
}


/* =========================
   PORTFOLIO CAROUSEL
========================= */

.portfolio-carousel {
  position: relative;

  width: 100%;

  margin-top: 55px;
}

.portfolio-track {
  display: flex;

  gap: 18px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;

  cursor: grab;

  padding:
    5px 2px 20px;

  overscroll-behavior-x: contain;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-track.dragging {
  cursor: grabbing;

  scroll-behavior: auto;
}

.portfolio-card {
  flex: 0 0 calc(
    (100% - 36px) / 3
  );

  min-width: 0;
}

.portfolio-image {
  width: 100%;

  position: relative;

  display: block;

  padding: 0;

  border: 0;

  overflow: hidden;

  aspect-ratio: 1.2 / .9;

  border-radius: 18px;

  background: #ddd;

  cursor: zoom-in;
}

.portfolio-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .55s
    cubic-bezier(.2,.7,.2,1);
}

.portfolio-image:hover img {
  transform: scale(1.045);
}

.portfolio-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(0,0,0,.35)
    );

  opacity: 0;

  transition:
    opacity .3s ease;

  pointer-events: none;
}

.portfolio-image:hover::after {
  opacity: 1;
}

.image-expand {
  position: absolute;

  z-index: 3;

  right: 14px;
  bottom: 14px;

  width: 38px;
  height: 38px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: white;

  color: var(--ink);

  font-size: 15px;

  opacity: 0;

  transform: translateY(8px);

  transition:
    opacity .3s ease,
    transform .3s ease;
}

.portfolio-image:hover
.image-expand {
  opacity: 1;

  transform: translateY(0);
}

.portfolio-info {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  padding: 15px 2px 0;
}

.portfolio-info strong {
  display: block;

  font-family: var(--heading);

  font-size: 15px;

  letter-spacing: -.4px;
}

.portfolio-info span {
  display: block;

  margin-top: 5px;

  color: #77736c;

  font-size: 9px;
}

.case-link {
  flex-shrink: 0;

  font-size: 9px;

  font-weight: 700;

  white-space: nowrap;

  transition:
    color .2s ease;
}

.case-link:hover {
  color: var(--blue);
}


/* CAROUSEL ARROWS */

.portfolio-arrow {
  position: absolute;

  z-index: 10;

  top: calc(50% - 20px);

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border:
    1px solid rgba(
      17,
      17,
      17,
      .12
    );

  border-radius: 50%;

  background: white;

  color: var(--ink);

  box-shadow:
    0 8px 25px
    rgba(0,0,0,.12);

  cursor: pointer;

  transition:
    transform .2s ease,
    background .2s ease;
}

.portfolio-arrow:hover {
  transform: scale(1.08);

  background: var(--ink);

  color: white;
}

.portfolio-arrow:disabled {
  opacity: .35;

  pointer-events: none;
}

.portfolio-prev {
  left: -20px;
}

.portfolio-next {
  right: -20px;
}


/* =========================
   LIGHTBOX
========================= */

.portfolio-lightbox {
  position: fixed;

  inset: 0;

  z-index: 999;

  padding: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    rgba(10,10,10,.94);

  opacity: 0;

  visibility: hidden;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.portfolio-lightbox.open {
  opacity: 1;

  visibility: visible;
}

.lightbox-content {
  position: relative;

  width: min(
    1200px,
    94vw
  );

  max-height: 90vh;

  display: flex;

  flex-direction: column;

  align-items: center;

  transform: scale(.94);

  transition:
    transform .35s
    cubic-bezier(.2,.8,.2,1);
}

.portfolio-lightbox.open
.lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: auto;

  max-width: 100%;

  max-height: 78vh;

  object-fit: contain;

  border-radius: 12px;

  box-shadow:
    0 30px 100px
    rgba(0,0,0,.5);
}

.lightbox-caption {
  width: 100%;

  padding-top: 15px;

  text-align: center;

  color: white;

  font-family: var(--heading);

  font-size: 14px;
}

.lightbox-close {
  position: absolute;

  z-index: 5;

  top: 24px;
  right: 28px;

  width: 45px;
  height: 45px;

  border:
    1px solid rgba(
      255,
      255,
      255,
      .2
    );

  border-radius: 50%;

  background:
    rgba(255,255,255,.1);

  color: white;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}

.lightbox-close:hover {
  background: white;

  color: var(--ink);

  transform: rotate(90deg);
}


/* =========================
   WHY
========================= */

.why {
  padding-block: 125px;

  background: var(--ink);

  color: white;
}

.why-heading {
  display: grid;

  grid-template-columns:
    1fr .55fr;

  column-gap: 100px;
}

.why-heading .label {
  grid-column: 1 / -1;

  color: #999;
}

.why-heading h2 {
  font-family: var(--heading);

  font-size:
    clamp(50px, 5vw, 72px);

  line-height: .93;

  letter-spacing: -4px;
}

.why-heading h2 span {
  color: var(--blue);
}

.why-heading p {
  align-self: end;

  color: #aaa;

  font-size: 14px;

  line-height: 1.6;
}

.why-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 80px;

  border-top:
    1px solid #333;
}

.why-grid article {
  min-height: 210px;

  padding: 25px 22px;

  border-right:
    1px solid #333;
}

.why-grid article:first-child {
  border-left:
    1px solid #333;
}

.why-grid article > span {
  color: #777;

  font-size: 10px;
}

.why-grid h3 {
  margin-top: 55px;

  font-family: var(--heading);

  font-size: 16px;
}

.why-grid p {
  margin-top: 9px;

  color: #888;

  font-size: 11px;

  line-height: 1.5;
}

.transformation {
  margin-top: 65px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #777;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;
}

.transformation i {
  color: var(--blue);

  font-size: 20px;

  font-style: normal;
}


/* =========================
   PROCESS
========================= */

.process-grid {
  display: grid;

  grid-template-columns:
    .65fr
    1.35fr;

  gap: 100px;
}

.process-intro h2 {
  font-family: var(--heading);

  font-size:
    clamp(48px, 5vw, 70px);

  line-height: .93;

  letter-spacing: -4px;
}

.process-intro h2 span {
  color: var(--pink);
}

.process-list {
  border-top:
    1px solid #2a2a2a;
}

.process-item {
  display: grid;

  grid-template-columns:
    65px 1fr;

  gap: 20px;

  padding-block: 28px;

  border-bottom:
    1px solid var(--line);
}

.process-item > span {
  color: #888;

  font-size: 10px;
}

.process-item h3 {
  font-family: var(--heading);

  font-size: 20px;
}

.process-item p {
  max-width: 450px;

  margin-top: 7px;

  color: #66625c;

  font-size: 12px;

  line-height: 1.5;
}


/* =========================
   ABOUT
========================= */

.about {
  border-top:
    1px solid var(--line);
}

.about-grid {
  display: grid;

  grid-template-columns:
    .85fr
    1.15fr;

  align-items: center;

  gap: 100px;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;

  aspect-ratio: 1 / 1.12;

  object-fit: cover;

  object-position: center top;

  border-radius: 25px;

  background: #ddd;
}

.photo-note {
  position: absolute;

  left: -18px;
  bottom: 35px;

  font-family:
    "Comic Sans MS",
    cursive;

  font-size: 16px;

  line-height: 1;

  transform: rotate(-7deg);
}

.about-content h2 {
  font-family: var(--heading);

  font-size:
    clamp(45px, 5vw, 68px);

  line-height: .92;

  letter-spacing: -4px;
}

.about-content h2 span {
  color: var(--blue);
}

.about-content > p {
  max-width: 590px;

  margin-top: 22px;

  color: #5d5a55;

  font-size: 15px;

  line-height: 1.6;
}

.about-details {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  margin-top: 50px;

  padding-top: 23px;

  border-top:
    1px solid var(--line);
}

.about-details small {
  display: block;

  color: #888;

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 1px;
}

.about-details strong {
  display: block;

  margin-top: 8px;

  font-size: 11px;

  line-height: 1.4;
}


/* =========================
   TOOLKIT
========================= */

.toolkit {
  padding-block: 115px;

  background: var(--ink);

  color: white;
}

.toolkit-heading {
  display: grid;

  grid-template-columns:
    1fr .55fr;

  gap: 80px;

  align-items: end;
}

.toolkit .label {
  color: #888;
}

.toolkit-heading h2 {
  font-family: var(--heading);

  font-size:
    clamp(48px, 5vw, 70px);

  line-height: .93;

  letter-spacing: -4px;
}

.toolkit-heading h2 span {
  color: var(--lime);
}

.toolkit-heading p {
  max-width: 420px;

  color: #999;

  font-size: 13px;

  line-height: 1.6;
}

.toolkit-grid {
  display: grid;

  grid-template-columns:
    repeat(8, 1fr);

  gap: 7px;

  margin-top: 65px;
}

.toolkit-grid div {
  min-height: 125px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  border:
    1px solid #303030;

  border-radius: 11px;

  transition:
    background .25s ease,
    color .25s ease;
}

.toolkit-grid div:hover {
  background: white;

  color: var(--ink);
}

.toolkit-grid strong {
  font-family: var(--heading);

  font-size: 15px;
}

.toolkit-grid span {
  color: #777;

  font-size: 8px;
}


/* =========================
   STATEMENT
========================= */

.statement {
  position: relative;

  overflow: hidden;

  padding: 130px 20px;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      #ece7ff,
      #e5eaff
    );
}

.statement h2 {
  position: relative;

  z-index: 2;

  max-width: 1000px;

  margin-inline: auto;

  font-family: var(--heading);

  font-size:
    clamp(45px, 6vw, 78px);

  line-height: .94;

  letter-spacing: -5px;
}

.statement h2 span {
  position: relative;

  color: var(--blue);
}

.statement h2 span::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -5px;

  height: 6px;

  border-radius: 50%;

  background: var(--pink);
}

.statement-mark {
  position: absolute;

  left: 8%;
  top: 25%;

  color: var(--pink);

  font-size: 65px;

  transform: rotate(-15deg);
}


/* =========================
   FAQ
========================= */

.faq-grid {
  display: grid;

  grid-template-columns:
    .65fr
    1.35fr;

  gap: 100px;
}

.faq-intro h2 {
  font-family: var(--heading);

  font-size:
    clamp(50px, 5vw, 70px);

  line-height: .93;

  letter-spacing: -4px;
}

.faq-intro p {
  margin-top: 25px;

  color: #777;

  font-size: 12px;
}

.faq-intro p a {
  color: var(--blue);

  font-weight: 700;
}

.faq-list {
  border-top:
    1px solid var(--line);
}

.faq-list details {
  border-bottom:
    1px solid var(--line);
}

.faq-list summary {
  min-height: 70px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  list-style: none;

  font-family: var(--heading);

  font-size: 16px;

  font-weight: 700;
}

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

.faq-list summary span {
  font-size: 23px;

  font-weight: 400;

  transition:
    transform .2s ease;
}

.faq-list details[open]
summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 650px;

  padding-bottom: 22px;

  color: #66625c;

  font-size: 12px;

  line-height: 1.6;
}


/* =========================
   CONTACT
========================= */

.contact {
  padding-bottom: 80px;
}

.contact-inner {
  min-height: 380px;

  padding: 75px;

  position: relative;

  overflow: hidden;

  display: grid;

  grid-template-columns:
    1fr .55fr;

  align-items: end;

  gap: 80px;

  border-radius: 25px;

  background: var(--ink);

  color: white;
}

.contact-inner::after {
  content: "";

  width: 480px;
  height: 480px;

  position: absolute;

  right: -140px;
  top: -190px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      var(--blue),
      #755eff 40%,
      var(--pink) 65%,
      transparent 70%
    );

  opacity: .7;
}

.contact-copy,
.contact-action {
  position: relative;

  z-index: 2;
}

.contact .label {
  color: #999;
}

.contact-copy h2 {
  font-family: var(--heading);

  font-size:
    clamp(48px, 5vw, 70px);

  line-height: .92;

  letter-spacing: -4px;
}

.contact-copy h2 span {
  color: var(--lime);
}

.contact-copy p {
  max-width: 470px;

  margin-top: 22px;

  color: #999;

  font-size: 13px;

  line-height: 1.6;
}

.contact-button {
  min-height: 53px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding-inline: 22px;

  border-radius: 9px;

  background: white;

  color: var(--ink);

  font-size: 12px;

  font-weight: 700;
}

.contact-links {
  display: flex;

  gap: 20px;

  margin-top: 23px;

  color: #999;

  font-size: 10px;
}

.contact-links a:hover {
  color: white;
}


/* =========================
   FOOTER
========================= */

.footer {
  background: #0d0e10;
  color: var(--white);
  padding-block: 58px 30px;
}

.footer .logo {
  color: var(--white);
}

.footer .logo-mark {
  background: var(--white);
  color: #0d0e10;
}

.footer-brand .logo {
  font-size: 22px;
  letter-spacing: -1.1px;
}

.footer-brand .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 17px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 12px;
  color: #85878c;
  font-size: 10px;
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column small {
  margin-bottom: 5px;
  color: #6f7278;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-column a {
  color: #d4d5d7;
  font-size: 11px;
  transition: color .2s ease, transform .2s ease;
}

.footer-column a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #25272b;
  color: #6f7278;
  font-size: 9px;
}


/* =========================
   LAPTOP
========================= */

@media (max-width: 1200px) {

  .hero h1 {
    font-size: 70px;
  }

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

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .container {
    width: calc(100% - 64px);
  }

  .desktop-nav {
    gap: 18px;
  }

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

  .hero-art {
    min-height: 530px;
  }

  .section-heading.split {
    grid-template-columns: 1fr;

    gap: 25px;
  }

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

  .portfolio-card {
    flex: 0 0 calc(
      (100% - 18px) / 2
    );
  }

  .portfolio-prev {
    left: -12px;
  }

  .portfolio-next {
    right: -12px;
  }

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

  .why-grid article:nth-child(3) {
    border-left:
      1px solid #333;
  }

  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;

    gap: 55px;
  }

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

    gap: 45px;
  }

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

  .contact-inner {
    padding: 55px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding-block: 80px;
  }


  /* HEADER */

  .nav {
    height: 70px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }


  /* HERO */

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 50px;

    padding-bottom: 20px;
  }

  .hero h1 {
    font-size:
      clamp(47px, 14vw, 67px);

    letter-spacing: -3.5px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-location {
    font-size: 9px;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-browser {
    width: 94%;
  }

  .browser-screen {
    min-height: 260px;
  }

  .mock-links {
    display: none;
  }

  .mock-main {
    padding: 35px 25px;
  }

  .mock-main h2 {
    font-size: 39px;
  }

  .mock-orb {
    width: 190px;
    height: 190px;
  }

  .hero-phone {
    width: 98px;
    height: 205px;

    left: 5%;

    border-width: 4px;
  }

  .hero-phone h3 {
    font-size: 13px;
  }

  .hero-note {
    font-size: 11px;
  }

  .note-left {
    top: 2%;
  }

  .note-right {
    top: 0;
  }


  /* TRUST */

  .trust-inner {
    min-height: 115px;

    grid-template-columns:
      75px 1fr;

    gap: 18px;
  }

  .trust p {
    font-size: 13px;
  }

  .trust-number {
    display: none;
  }


  /* SERVICES */

  .section-heading h2,
  .work-heading h2 {
    font-size: 45px;

    letter-spacing: -3px;
  }

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

  .service-card {
    min-height: 230px;
  }


  /* WORK */

  .work-heading {
    display: block;
  }

  .work-heading > p {
    margin-top: 20px;
  }

  .featured-image {
    aspect-ratio: 1 / .85;

    border-radius: 18px;
  }

  .project-meta {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .portfolio-carousel {
    margin-top: 45px;
  }

  .portfolio-track {
    gap: 14px;

    padding-bottom: 12px;
  }

  .portfolio-card {
    flex: 0 0 88%;
  }

  .portfolio-image {
    aspect-ratio: 1.12 / .9;

    border-radius: 16px;
  }

  .image-expand {
    opacity: 1;

    transform: none;

    width: 34px;
    height: 34px;

    right: 10px;
    bottom: 10px;
  }

  .portfolio-arrow {
    top: auto;

    bottom: -58px;

    width: 38px;
    height: 38px;
  }

  .portfolio-prev {
    left: auto;

    right: 52px;
  }

  .portfolio-next {
    right: 0;
  }

  .portfolio-info {
    padding-top: 12px;
  }

  .portfolio-info strong {
    font-size: 14px;
  }

  .case-link {
    display: none;
  }


  /* LIGHTBOX */

  .portfolio-lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 16px;

    right: 16px;
  }

  .lightbox-content img {
    max-height: 72vh;

    border-radius: 8px;
  }


  /* WHY */

  .why {
    padding-block: 85px;
  }

  .why-heading {
    display: block;
  }

  .why-heading h2 {
    font-size: 48px;
  }

  .why-heading p {
    margin-top: 25px;
  }

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

  .why-grid article,
  .why-grid article:nth-child(3) {
    border-left:
      1px solid #333;
  }

  .transformation {
    flex-wrap: wrap;

    gap: 12px;
  }


  /* PROCESS */

  .process-intro h2 {
    font-size: 51px;
  }

  .process-item {
    grid-template-columns:
      42px 1fr;
  }


  /* ABOUT */

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

    gap: 55px;
  }

  .about-content h2 {
    font-size: 51px;
  }

  .about-content > p {
    font-size: 14px;
  }

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


  /* TOOLKIT */

  .toolkit {
    padding-block: 80px;
  }

  .toolkit-heading {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .toolkit-heading h2 {
    font-size: 49px;
  }

  .toolkit-grid {
    grid-template-columns:
      repeat(2, 1fr);

    margin-top: 45px;
  }


  /* STATEMENT */

  .statement {
    padding: 90px 20px;
  }

  .statement h2 {
    font-size: 47px;

    letter-spacing: -3px;
  }

  .statement-mark {
    font-size: 40px;
  }


  /* FAQ */

  .faq-intro h2 {
    font-size: 53px;
  }

  .faq-list summary {
    font-size: 14px;
  }


  /* CONTACT */

  .contact {
    padding-bottom: 60px;
  }

  .contact-inner {
    min-height: 430px;

    padding: 48px 25px;

    grid-template-columns: 1fr;

    gap: 40px;

    border-radius: 20px;
  }

  .contact-copy h2 {
    font-size: 47px;
  }

  .contact-button {
    width: 100%;
  }

  .contact-links {
    justify-content: center;
  }


  /* FOOTER */

  .footer-main {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 35px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 8px;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

  .hero h1 {
    font-size: 45px;
  }

  .hero-art {
    min-height: 350px;
  }

  .hero-phone {
    width: 87px;
    height: 185px;
  }

  .section-heading h2,
  .work-heading h2 {
    font-size: 40px;
  }

  .about-content h2 {
    font-size: 46px;
  }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

}

/* =========================
   TOOLKIT MARQUEE
========================= */

.toolkit-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 58px;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.12);
  padding: 24px 0;
  background: rgba(255,255,255,.025);
}

.toolkit-marquee::before,
.toolkit-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.toolkit-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.toolkit-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.toolkit-marquee-track {
  display: flex;
  width: max-content;
  animation: toolkitSlide 28s linear infinite;
  will-change: transform;
}

.toolkit-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.toolkit-marquee-group span {
  display: inline-flex;
  align-items: center;
  padding-inline: 34px;
  color: #f4f4f4;
  font-family: var(--heading);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.toolkit-marquee-group i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .9;
}

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

@keyframes toolkitSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .toolkit-marquee {
    margin-top: 42px;
    padding: 20px 0;
  }

  .toolkit-marquee::before,
  .toolkit-marquee::after {
    width: 55px;
  }

  .toolkit-marquee-track {
    animation-duration: 24s;
  }

  .toolkit-marquee-group span {
    padding-inline: 22px;
    font-size: 20px;
  }

  .toolkit-marquee-group i {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toolkit-marquee-track {
    animation: none;
    transform: none;
  }
}

/* =========================================================
   UCHUBLAB MOTION SYSTEM
========================================================= */

.motion-ready .hero-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1),
              transform .75s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--hero-index, 0) * 90ms);
}

.motion-ready .hero-art .hero-browser { transform: translateY(28px) scale(.985); }
.motion-ready .hero-art .hero-phone { transform: translateY(34px) rotate(2deg) scale(.98); }
.motion-ready .hero-art .hero-note { transform: translateY(18px) rotate(var(--note-rotate, 0deg)); }

.hero-loaded .hero-reveal { opacity: 1; transform: translateY(0); }
.hero-loaded .hero-art .hero-browser { transform: translateY(0) scale(1); }
.hero-loaded .hero-art .hero-phone { transform: translateY(0) rotate(0deg) scale(1); }
.hero-loaded .hero-art .hero-note { transform: translateY(0) rotate(var(--note-rotate, 0deg)); }

.hero-art .hero-browser,
.hero-art .hero-phone,
.hero-art .hero-note {
  transition: transform .95s cubic-bezier(.22,1,.36,1), opacity .75s ease;
}
.note-left { --note-rotate: -5deg; }
.note-right { --note-rotate: 4deg; }

.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--reveal-index, 0) * 75ms);
}
.motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Services */
.service-card { will-change: transform; }
.service-card .service-icon {
  transition: transform .45s cubic-bezier(.22,1,.36,1),
              background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover .service-icon { transform: translateY(-4px) scale(1.035); }

/* Work */
.featured-image, .portfolio-image { overflow: hidden; }
.featured-image img, .portfolio-image img {
  transition: transform .8s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.featured-image:hover img, .portfolio-image:hover img { transform: scale(1.035); }
.featured-image .project-overlay, .portfolio-image .image-expand {
  transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.featured-image:hover .project-overlay { transform: translateY(-2px); }
.portfolio-image:hover .image-expand { transform: translateY(-2px) scale(1.04); }

/* Process */
.process-item {
  transition: padding-left .4s cubic-bezier(.22,1,.36,1), background .35s ease;
}
.process-item:hover { padding-left: 8px; }
.process-item h3 { transition: color .3s ease; }
.process-item:hover h3 { color: var(--blue); }

/* About + contact */
.about-photo img {
  transition: transform .8s cubic-bezier(.22,1,.36,1), box-shadow .6s ease;
}
.about-photo:hover img {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(17,17,17,.12);
}
.contact-button {
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s ease, background .3s ease;
}
.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

/* IDEA ✦ DESIGN ✦ BUILD ✦ LIVE */
.transformation {
  margin-top: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 34px);
  color: #fff;
  font-family: var(--heading);
  font-size: clamp(18px, 2.15vw, 30px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.transformation span {
  display: inline-block;
  opacity: .96;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.transformation span:hover { opacity: 1; transform: translateY(-2px); }
.transformation i {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(12px, 1.6vw, 20px);
  color: var(--blue);
  font-size: clamp(10px, 1.2vw, 15px);
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 14px rgba(82,114,255,.65);
  animation: transformationStar 2.2s ease-in-out infinite;
}
.transformation i:nth-of-type(2) { animation-delay: .55s; }
.transformation i:nth-of-type(3) { animation-delay: 1.1s; }

@keyframes transformationStar {
  0%,100% { opacity:.35; transform:translateX(-7px) scale(.78); }
  50% { opacity:1; transform:translateX(7px) scale(1.15); }
}
.transformation span:nth-of-type(1) { animation: transformationWord 8.8s ease-in-out infinite; }
.transformation span:nth-of-type(2) { animation: transformationWord 8.8s .8s ease-in-out infinite; }
.transformation span:nth-of-type(3) { animation: transformationWord 8.8s 1.6s ease-in-out infinite; }
.transformation span:nth-of-type(4) { animation: transformationWord 8.8s 2.4s ease-in-out infinite; }

@keyframes transformationWord {
  0%,8%,100% { opacity:.72; transform:translateY(0); }
  13%,25% { opacity:1; transform:translateY(-2px); }
  31% { opacity:.88; transform:translateY(0); }
}

@media (max-width:700px) {
  .transformation {
    margin-top:48px;
    gap:10px;
    font-size:clamp(15px,4.8vw,22px);
    letter-spacing:-.035em;
  }
  .transformation i { font-size:9px; }
}

@media (prefers-reduced-motion:reduce) {
  .motion-ready .hero-reveal,
  .motion-ready .scroll-reveal {
    opacity:1; transform:none; transition:none;
  }
  .hero-art .hero-browser,
  .hero-art .hero-phone,
  .hero-art .hero-note { transition:none; transform:none; }
  .transformation i, .transformation span { animation:none; }
  .service-card .service-icon, .featured-image img, .portfolio-image img,
  .about-photo img, .contact-button, .process-item { transition:none; }
}


/* =========================================================
   DEDICATED CONTACT PAGE
   Reuses the existing Uchublab visual system.
========================================================= */

.contact-page {
  padding-top: 120px;
  padding-bottom: 100px;
}

.contact-page-hero {
  padding: 70px 0 55px;
}

.contact-page-hero .label {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(52px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -5px;
}

.contact-page-hero h1 span {
  color: var(--pink);
}

.contact-page-hero p {
  max-width: 610px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: stretch;
}

.contact-form-card,
.contact-direct-card {
  border-radius: 25px;
}

.contact-form-card {
  padding: 48px;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-form-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -230px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(82, 114, 255, .26), transparent 65%);
  pointer-events: none;
}

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

.contact-form-card .label {
  color: #999;
}

.contact-form-card h2 {
  margin: 8px 0 30px;
  font-family: var(--heading);
  font-size: clamp(32px, 4vw, 50px);
  line-height: .98;
  letter-spacing: -3px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}

.contact-field input,
.contact-field select {
  min-height: 50px;
  padding: 0 15px;
}

.contact-field textarea {
  min-height: 145px;
  padding: 14px 15px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #777;
}

.contact-field select {
  appearance: none;
}

.contact-field select option {
  color: var(--ink);
  background: #fff;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--pink);
  background: rgba(255,255,255,.09);
}

.contact-submit {
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  padding: 0 22px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: var(--pink);
}

.contact-form-note {
  margin: -4px 0 0;
  color: #777;
  font-size: 10px;
  line-height: 1.5;
}

.contact-direct-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-direct-card .label {
  color: var(--muted);
}

.contact-direct-card h2 {
  margin: 10px 0 15px;
  font-family: var(--heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -2px;
}

.contact-direct-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--cream);
}

.contact-method span:last-child {
  font-size: 16px;
}

.contact-method.whatsapp:hover {
  border-color: var(--pink);
}

.contact-direct-note {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.contact-page-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 900px) {
  .contact-page {
    padding-top: 100px;
  }

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

@media (max-width: 650px) {
  .contact-page {
    padding-top: 85px;
    padding-bottom: 65px;
  }

  .contact-page-hero {
    padding: 45px 0 35px;
  }

  .contact-page-hero h1 {
    font-size: clamp(45px, 13vw, 68px);
    letter-spacing: -3px;
  }

  .contact-page-hero p {
    font-size: 13px;
  }

  .contact-form-card,
  .contact-direct-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* =========================================================
   UCHUBLAB 4.0 MOTION + INTERACTION LAYER
   No custom cursor. Motion is driven by scroll, CSS and
   natural hover states.
========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: opacity .55s ease, visibility .55s ease,
              clip-path .8s cubic-bezier(.77,0,.18,1);
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.page-loader-inner { width: min(620px, calc(100% - 48px)); }
.page-loader-top {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:42px; color:#8e8e8e; font-size:10px;
  font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
}
.page-loader-brand {
  color:#fff; font-family:var(--heading); font-size:18px;
  letter-spacing:-1px;
}
.page-loader-title {
  display:flex; flex-wrap:wrap; gap:7px 16px; overflow:hidden;
  font-family:var(--heading); font-size:clamp(44px,8vw,90px);
  font-weight:800; line-height:.82; letter-spacing:-5px;
}
.page-loader-title span {
  display:inline-block;
  animation:loaderWord 1.8s cubic-bezier(.22,1,.36,1) both;
}
.page-loader-title span:nth-child(2){animation-delay:.08s;color:var(--pink)}
.page-loader-title span:nth-child(3){animation-delay:.16s;color:var(--blue)}
.page-loader-title span:nth-child(4){animation-delay:.24s;color:var(--lime)}
@keyframes loaderWord {
  from{opacity:0;transform:translateY(100%)}
  to{opacity:1;transform:translateY(0)}
}
.page-loader-line {
  height:2px; margin-top:45px; overflow:hidden; background:#292929;
}
.page-loader-line span {
  display:block; width:0; height:100%;
  background:linear-gradient(90deg,var(--pink),var(--blue),var(--lime));
  transition:width .25s ease;
}



.premium-reveal,.js-reveal {
  opacity:0; transform:translateY(32px);
  transition:opacity .85s cubic-bezier(.22,1,.36,1),
              transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--motion-delay,var(--reveal-delay,0ms));
}
.premium-reveal.is-visible,.js-reveal.is-visible {
  opacity:1; transform:translateY(0);
}
.hero-enter {
  opacity:0; transform:translateY(26px);
  transition:opacity .85s cubic-bezier(.22,1,.36,1),
              transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--hero-delay,0ms);
}
.page-loaded .hero-enter { opacity:1; transform:translateY(0); }
.page-loaded .hero-art { animation:heroFloatIn 1.1s cubic-bezier(.22,1,.36,1) both; }
@keyframes heroFloatIn {
  from{opacity:0;transform:translateY(35px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.hero-browser { animation:browserFloat 7s ease-in-out infinite; }
.hero-phone { animation:phoneFloat 6s ease-in-out infinite; }
.shape-blue,.shape-pink { animation:shapeFloat 5s ease-in-out infinite alternate; }
.shape-pink { animation-delay:-2s; }
.mock-orb { animation:orbPulse 7s ease-in-out infinite alternate; }
@keyframes browserFloat {0%,100%{translate:0 0}50%{translate:0 -7px}}
@keyframes phoneFloat {0%,100%{translate:0 0}50%{translate:0 8px}}
@keyframes shapeFloat {from{translate:0 0;scale:1}to{translate:5px -10px;scale:1.08}}
@keyframes orbPulse {from{scale:.96;opacity:.62}to{scale:1.05;opacity:.86}}

.service-card { transform:translateY(0); }
.service-card:hover {
  transform:translateY(-8px);
  box-shadow:0 24px 60px rgba(0,0,0,.16);
}
.service-card::before {
  transition:transform .65s cubic-bezier(.22,1,.36,1),opacity .4s ease;
}
.service-card:hover::before { transform:scale(1.35); }

.section-heading h2,.work-heading h2,.why-heading h2,
.about-content h2,.faq-intro h2 {
  animation:headingRest 6s ease-in-out infinite;
}
@keyframes headingRest {
  0%,100%{letter-spacing:-4px}
  50%{letter-spacing:-3.7px}
}

/* IDEA · DESIGN · BUILD · LIVE */
.trust-marquee-section {
  position:relative; overflow:hidden; padding:32px 0 40px;
  border-block:1px solid var(--line); background:var(--cream);
}
.trust-marquee-head,.trust-marquee-caption {
  width:min(var(--container),calc(100% - 96px)); margin-inline:auto;
}
.trust-marquee-head {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:25px;
}
.trust-marquee-head .trust-label {
  margin:0; font-size:10px; font-weight:700; letter-spacing:1.4px;
}
.trust-live {
  display:inline-flex; align-items:center; gap:7px; color:var(--muted);
  font-size:9px; font-weight:700; letter-spacing:1px;
}
.trust-live i {
  width:7px;height:7px;display:block;border-radius:50%;background:var(--lime);
  box-shadow:0 0 0 0 rgba(184,255,90,.55);
  animation:livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%{box-shadow:0 0 0 0 rgba(184,255,90,.55)}
  70%{box-shadow:0 0 0 8px rgba(184,255,90,0)}
  100%{box-shadow:0 0 0 0 rgba(184,255,90,0)}
}
.trust-marquee { width:100%; overflow:hidden; padding:5px 0 12px; }
.trust-marquee-track {
  width:max-content; display:flex; align-items:center;
  gap:clamp(18px,3vw,42px);
  animation:trustMarquee 18s linear infinite;
  will-change:transform;
}
.trust-marquee-track span {
  display:inline-block; font-family:var(--heading);
  font-size:clamp(58px,9vw,126px); font-weight:800; line-height:.8;
  letter-spacing:-.075em; color:var(--ink);
}
.trust-marquee-track span:nth-of-type(2){color:var(--pink)}
.trust-marquee-track span:nth-of-type(3){color:var(--blue)}
.trust-marquee-track span:nth-of-type(4){color:var(--lime)}
.trust-marquee-track b {
  display:inline-block; color:var(--ink);
  font-size:clamp(22px,3vw,42px);
  animation:marqueeSpark 1.7s ease-in-out infinite;
}
@keyframes trustMarquee {
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
@keyframes marqueeSpark {
  0%,100%{opacity:.35;transform:rotate(0) scale(.75)}
  50%{opacity:1;transform:rotate(90deg) scale(1)}
}
.trust-marquee-caption {
  display:flex; justify-content:flex-end; gap:7px; margin-top:10px;
  color:var(--muted); font-size:11px;
}
.trust-marquee-caption strong{color:var(--ink)}

.floating-whatsapp {
  position:fixed; right:24px; bottom:24px; z-index:450;
  min-height:54px; display:inline-flex; align-items:center; gap:10px;
  padding:0 16px; border:1px solid rgba(255,255,255,.15);
  border-radius:999px; background:var(--ink); color:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,.22); font-size:11px; font-weight:700;
  isolation:isolate;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease;
}
.floating-whatsapp:hover {
  transform:translateY(-5px); box-shadow:0 22px 48px rgba(0,0,0,.28);
}
.floating-whatsapp i { position:relative;z-index:2;font-size:21px;color:#25D366; }
.floating-whatsapp-text,.floating-whatsapp-arrow{position:relative;z-index:2}
.floating-whatsapp-arrow{color:#aaa}
.floating-whatsapp-pulse {
  position:absolute;inset:3px;z-index:0;border-radius:inherit;
  border:1px solid rgba(37,211,102,.35);
  animation:whatsappPulse 2.4s ease-out infinite;
}
@keyframes whatsappPulse {
  0%{opacity:.8;transform:scale(.96)}
  70%{opacity:0;transform:scale(1.08)}
  100%{opacity:0;transform:scale(1.08)}
}

@media (max-width:700px){
  .trust-marquee-head,.trust-marquee-caption{width:calc(100% - 40px)}
  .trust-marquee-section{padding-block:25px 32px}
  .trust-marquee-track{gap:16px;animation-duration:14s}
  .trust-marquee-track span{font-size:clamp(50px,16vw,88px)}
  .trust-marquee-caption{justify-content:flex-start;flex-wrap:wrap}
  .floating-whatsapp{right:16px;bottom:16px;min-height:50px;padding:0 14px}
}
@media (prefers-reduced-motion:reduce){
  .page-loader-title span,.hero-browser,.hero-phone,.shape-blue,.shape-pink,
  .mock-orb,.trust-marquee-track,.trust-marquee-track b,.trust-live i,
  .section-heading h2,.work-heading h2,.why-heading h2,.about-content h2,.faq-intro h2 {
    animation:none!important;
  }
  .premium-reveal,.js-reveal,.hero-enter {
    opacity:1!important;transform:none!important;transition:none!important;
  }
}


/* =========================================================
   SERVICES PAGE
========================================================= */

.services-page-hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--cream);
}

.services-page-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -160px;
  top: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,114,255,.22), rgba(255,92,255,.12) 48%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.services-page-hero .eyebrow {
  background: rgba(255,255,255,.42);
}

.services-page-hero h1 {
  max-width: 850px;
  margin-top: 24px;
  font-family: var(--heading);
  font-size: clamp(60px, 7.2vw, 104px);
  line-height: .88;
  letter-spacing: -6px;
  font-weight: 800;
}

.services-page-hero h1 span {
  color: var(--blue);
  position: relative;
}

.services-page-hero h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 6px;
  border-radius: 999px;
  background: var(--pink);
  transform: rotate(-2deg);
}

.services-page-hero-copy {
  max-width: 590px;
  margin-top: 30px;
  color: #5e5b56;
  font-size: 17px;
  line-height: 1.65;
}

.services-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.services-hero-index {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77736c;
  font-size: 10px;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.services-hero-index i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(184,255,90,.14);
}

.services-hero-stack {
  position: relative;
  min-height: 520px;
}

.services-stack-card {
  position: absolute;
  width: 78%;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 24px;
  box-shadow: 0 35px 80px rgba(17,17,17,.12);
  overflow: hidden;
}

.services-stack-card small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #66625c;
}

.services-stack-card strong {
  display: block;
  margin-top: 55px;
  font-family: var(--heading);
  font-size: 40px;
  line-height: .95;
  letter-spacing: -2px;
}

.services-stack-card span {
  display: block;
  margin-top: 16px;
  max-width: 230px;
  color: #66625c;
  font-size: 12px;
  line-height: 1.5;
}

.stack-card-one {
  top: 22px;
  left: 4%;
  z-index: 3;
  background: #fff;
  transform: rotate(-4deg);
}

.stack-card-two {
  top: 135px;
  right: 0;
  z-index: 2;
  background: #e8ecff;
  transform: rotate(5deg);
}

.stack-card-three {
  top: 255px;
  left: 10%;
  z-index: 1;
  background: #17191d;
  color: #fff;
  transform: rotate(-2deg);
}

.stack-card-three small,
.stack-card-three span {
  color: #a8a8a8;
}

.services-intro {
  padding-block: 90px;
  border-block: 1px solid var(--line);
}

.services-intro-grid {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 80px;
}

.services-intro-grid h2 {
  font-family: var(--heading);
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: .94;
  letter-spacing: -4px;
}

.services-intro-copy {
  max-width: 680px;
  color: #625f59;
  font-size: 17px;
  line-height: 1.7;
}

.services-intro-copy p + p {
  margin-top: 20px;
}

.service-detail-section {
  padding-block: 115px;
}

.service-detail-section.dark {
  background: var(--ink);
  color: #fff;
}

.service-detail-section + .service-detail-section {
  border-top: 1px solid var(--line);
}

.service-detail-head {
  display: grid;
  grid-template-columns: 110px 1fr .7fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 55px;
}

.service-detail-number {
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.service-detail-head h2 {
  font-family: var(--heading);
  font-size: clamp(44px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -4px;
}

.service-detail-head p {
  color: #77736c;
  font-size: 14px;
  line-height: 1.65;
}

.service-detail-section.dark .service-detail-head p {
  color: #a5a5a5;
}

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

.service-detail-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.36);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.service-detail-section.dark .service-detail-card {
  border-color: #2d2f34;
  background: #1a1b1f;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  border-color: rgba(82,114,255,.45);
  box-shadow: 0 20px 45px rgba(17,17,17,.08);
}

.service-detail-card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
}

.service-detail-card h3 {
  margin-top: 25px;
  font-family: var(--heading);
  font-size: 21px;
  letter-spacing: -.8px;
}

.service-detail-card p {
  margin-top: 9px;
  color: #6d6963;
  font-size: 13px;
  line-height: 1.6;
}

.service-detail-section.dark .service-detail-card p {
  color: #a0a0a0;
}

.services-process {
  padding-block: 115px;
  background: #eeeae2;
}

.services-process-head {
  max-width: 720px;
  margin-bottom: 60px;
}

.services-process-head h2 {
  margin-top: 18px;
  font-family: var(--heading);
  font-size: clamp(44px, 5vw, 70px);
  line-height: .92;
  letter-spacing: -4px;
}

.services-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d8d4cc;
  border: 1px solid #d8d4cc;
}

.services-process-item {
  min-height: 230px;
  padding: 28px;
  background: #f5f3ee;
}

.services-process-item .step {
  font-size: 10px;
  font-weight: 800;
  color: #77736c;
  letter-spacing: 1px;
}

.services-process-item h3 {
  margin-top: 55px;
  font-family: var(--heading);
  font-size: 25px;
  letter-spacing: -1.2px;
}

.services-process-item p {
  margin-top: 10px;
  color: #6b6760;
  font-size: 12px;
  line-height: 1.6;
}

.services-cta {
  padding-block: 120px;
  background: var(--ink);
  color: #fff;
}

.services-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
}

.services-cta h2 {
  margin-top: 16px;
  font-family: var(--heading);
  font-size: clamp(50px, 6vw, 84px);
  line-height: .9;
  letter-spacing: -5px;
}

.services-cta h2 span {
  color: var(--pink);
}

.services-cta p {
  max-width: 540px;
  margin-top: 22px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.65;
}

.services-cta .btn-dark {
  background: #fff;
  color: var(--ink);
}

.services-page .footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .services-hero-grid,
  .services-intro-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .services-hero-stack {
    min-height: 470px;
  }

  .service-detail-head {
    grid-template-columns: 70px 1fr;
  }

  .service-detail-head p {
    grid-column: 2;
  }

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

  .services-cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .services-page-hero {
    min-height: auto;
    padding-block: 70px 90px;
  }

  .services-page-hero h1 {
    font-size: clamp(48px, 14vw, 68px);
    letter-spacing: -4px;
  }

  .services-page-hero-copy {
    font-size: 15px;
  }

  .services-hero-stack {
    min-height: 390px;
  }

  .services-stack-card {
    width: 84%;
    min-height: 195px;
    padding: 22px;
  }

  .services-stack-card strong {
    margin-top: 36px;
    font-size: 29px;
  }

  .stack-card-two {
    top: 100px;
  }

  .stack-card-three {
    top: 205px;
  }

  .services-intro,
  .service-detail-section,
  .services-process,
  .services-cta {
    padding-block: 80px;
  }

  .services-intro-grid h2,
  .service-detail-head h2,
  .services-process-head h2 {
    letter-spacing: -3px;
  }

  .service-detail-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-detail-head p {
    grid-column: auto;
  }

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

  .services-process-grid {
    grid-template-columns: 1fr;
  }

  .services-process-item {
    min-height: 190px;
  }

  .services-process-item h3 {
    margin-top: 35px;
  }

  .services-cta h2 {
    font-size: clamp(48px, 13vw, 64px);
    letter-spacing: -3.5px;
  }
}


/* =========================================================
   SERVICES STICKY HEADER SAFETY
   Keep the page on the document viewport so the header
   can remain sticky while the Services page scrolls.
========================================================= */
body.services-page {
  overflow-x: clip;
}

/* =========================================================
   UCHUBLAB NAVIGATION
   Clean desktop navigation. Mobile menu remains intact.
========================================================= */

@media (min-width: 901px) {
  .header {
    background: rgba(245, 243, 238, .96);
    border-bottom: 1px solid rgba(17, 17, 17, .07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  }

  .header.scrolled {
    background: rgba(245, 243, 238, .985);
    border-bottom-color: rgba(17, 17, 17, .11);
    box-shadow: 0 8px 24px rgba(17, 17, 17, .045);
  }

  .nav {
    height: 78px;
    width: min(var(--container), calc(100% - 64px));
    gap: 28px;
  }

  .header .logo {
    flex: 0 0 auto;
    font-size: 21px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 10px;
  }

  .desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 8px;
    color: #5d5a55;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.1px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .desktop-nav a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
  }

  .desktop-nav a:hover,
  .desktop-nav a:focus-visible {
    color: var(--ink);
    background: rgba(17, 17, 17, .045);
    transform: translateY(-1px);
    outline: none;
  }

  .desktop-nav a:hover::after,
  .desktop-nav a:focus-visible::after,
  .desktop-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .desktop-nav a[aria-current="page"] {
    color: var(--ink);
  }

  .nav-cta {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px 0 18px;
    border: 1px solid var(--ink);
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.1px;
    box-shadow: 0 6px 16px rgba(17, 17, 17, .09);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
  }

  .nav-cta:hover,
  .nav-cta:focus-visible {
    background: #252525;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(17, 17, 17, .14);
    outline: none;
  }

  .nav-cta span {
    transition: transform .22s ease;
  }

  .nav-cta:hover span,
  .nav-cta:focus-visible span {
    transform: translate(2px, -2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav a,
  .desktop-nav a::after,
  .nav-cta,
  .nav-cta span {
    transition: none !important;
  }
}

.services-page-hero {
  min-height: clamp(700px, 82vh, 900px);
}

@media (max-width: 900px) {
  .services-page-hero {
    min-height: auto;
  }
}


/* =========================================================
   LEGAL PAGES
   Uses the existing Uchublab design system without changing
   the homepage/services UI.
========================================================= */

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-main {
  padding-block: 90px 120px;
}

.legal-hero {
  max-width: 900px;
  padding-block: 45px 70px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin-top: 24px;
  font-family: var(--heading);
  font-size: clamp(52px, 7vw, 88px);
  line-height: .9;
  letter-spacing: -5px;
  font-weight: 800;
}

.legal-hero > p {
  max-width: 680px;
  margin-top: 28px;
  color: #66625c;
  font-size: 16px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-top: 28px;
  color: #77736c;
  font-size: 10px;
  font-weight: 600;
}

.legal-meta span {
  position: relative;
}

.legal-meta span + span::before {
  content: "·";
  position: absolute;
  left: -14px;
  color: #aaa69e;
}

.legal-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
  padding-top: 65px;
}

.legal-nav {
  position: sticky;
  top: 105px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 5px;
}

.legal-nav-label {
  margin-bottom: 8px;
  color: #77736c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.legal-nav a {
  color: #77736c;
  font-size: 11px;
  line-height: 1.35;
  transition: color .2s ease, transform .2s ease;
}

.legal-nav a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding-block: 0 48px;
}

.legal-section + .legal-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-family: var(--heading);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.legal-section p {
  max-width: 720px;
  margin-top: 17px;
  color: #5f5b55;
  font-size: 13px;
  line-height: 1.75;
}

.legal-section ul {
  max-width: 720px;
  margin: 17px 0 0 19px;
  color: #5f5b55;
  font-size: 13px;
  line-height: 1.75;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--blue);
  font-weight: 600;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #25272b;
}

.legal-footer-links a {
  color: #8c8f95;
  font-size: 9px;
  transition: color .2s ease;
}

.legal-footer-links a:hover {
  color: var(--blue);
}

/* 404 */

.error-page .legal-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.error-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.error-code {
  font-family: var(--heading);
  font-size: clamp(130px, 18vw, 250px);
  line-height: .72;
  letter-spacing: -14px;
  font-weight: 800;
  color: var(--blue);
}

.error-copy {
  max-width: 600px;
}

.error-copy h1 {
  margin-top: 24px;
  font-family: var(--heading);
  font-size: clamp(48px, 6vw, 78px);
  line-height: .92;
  letter-spacing: -4px;
}

.error-copy > p {
  max-width: 520px;
  margin-top: 23px;
  color: #66625c;
  font-size: 14px;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.error-actions .btn {
  min-height: 50px;
}

@media (max-width: 900px) {
  .legal-main {
    padding-block: 65px 90px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.35);
  }

  .legal-nav-label {
    grid-column: 1 / -1;
  }

  .error-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 65px;
    padding-block: 45px;
  }

  .error-code {
    font-size: clamp(110px, 22vw, 190px);
  }
}

@media (max-width: 640px) {
  .legal-main {
    padding-block: 40px 70px;
  }

  .legal-hero {
    padding-block: 25px 48px;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 14vw, 67px);
    letter-spacing: -4px;
  }

  .legal-hero > p {
    margin-top: 22px;
    font-size: 14px;
  }

  .legal-meta {
    display: grid;
    gap: 8px;
    line-height: 1.4;
  }

  .legal-meta span + span::before {
    display: none;
  }

  .legal-layout {
    padding-top: 40px;
    gap: 35px;
  }

  .legal-nav {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .legal-section {
    padding-bottom: 38px;
  }

  .legal-section + .legal-section {
    padding-top: 38px;
  }

  .legal-section h2 {
    font-size: 25px;
    letter-spacing: -1px;
  }

  .legal-section p,
  .legal-section ul {
    font-size: 12px;
    line-height: 1.7;
  }

  .error-page .legal-main {
    min-height: auto;
  }

  .error-layout {
    padding-block: 35px 70px;
    gap: 45px;
  }

  .error-code {
    font-size: clamp(100px, 29vw, 150px);
    letter-spacing: -8px;
  }

  .error-copy h1 {
    font-size: clamp(45px, 13vw, 64px);
    letter-spacing: -3.5px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}


/* =========================================
   NAVIGATION INTERACTION POLISH
   ========================================= */

.mobile-nav a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: rgba(255,255,255,.86);
  transition:
    color .22s ease,
    transform .22s ease,
    opacity .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--pink);
  transition: width .25s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: #fff;
  transform: translateX(6px);
}

.mobile-nav a:hover::after,
.mobile-nav a:focus-visible::after,
.mobile-nav a[aria-current="page"]::after {
  width: 42px;
}

.mobile-nav a:active {
  transform: translateX(3px) scale(.985);
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  border-radius: 4px;
}

@media (hover: none) {
  .mobile-nav a:active {
    color: #fff;
    transform: translateX(4px);
  }

  .mobile-nav a:active::after {
    width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav a,
  .mobile-nav a::after {
    transition: none;
  }
}


/* SECTION MARKERS / ICON POLISH */
.process-item .process-check{width:38px;height:38px;flex:0 0 38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--blue);font-size:13px;box-shadow:0 8px 20px rgba(17,17,17,.06)}
.process-item .process-check i{line-height:1}
.why-grid article > span{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:24px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);font-family:var(--heading);font-size:16px;font-weight:800;letter-spacing:-.5px;box-shadow:0 8px 20px rgba(17,17,17,.05)}
.services-process-item .services-process-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:22px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--blue);font-size:15px;line-height:1}
.services-process-item .services-process-icon i{line-height:1}


/* WHY UCHUBLAB: icon-led cards */
.why-grid article { display:flex; flex-direction:column; align-items:flex-start; }
.why-grid article > .why-icon { width:44px; height:44px; flex:0 0 44px; display:inline-flex; align-items:center; justify-content:center; margin:0 0 24px; border:1px solid var(--line); border-radius:12px; background:var(--white); color:var(--blue); font-size:16px; line-height:1; box-shadow:0 8px 20px rgba(17,17,17,.05); transition:transform .25s ease,border-color .25s ease,background .25s ease; }
.why-grid article > .why-icon i { line-height:1; }
.why-grid article:hover > .why-icon { transform:translateY(-3px); border-color:rgba(82,114,255,.35); background:var(--blue-soft); }
.why-grid article h3 { margin-top:0; min-height:38px; display:flex; align-items:flex-start; }
.why-grid article p { margin-top:10px; max-width:260px; }
@media (max-width:900px) { .why-grid article h3 { min-height:0; } .why-grid article p { max-width:100%; } }

/* =========================================================
   MOBILE RESPONSIVE FIXES
   Services page + WHY UCHUBLAB cards
   Preserves the existing desktop UI.
========================================================= */

/* Keep every page section inside the viewport. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.container {
  min-width: 0;
}

@media (max-width: 640px) {
  /* -------------------------
     SERVICES PAGE: BASE WIDTH
  -------------------------- */
  body.services-page,
  body.services-page main,
  body.services-page section,
  body.services-page footer {
    width: 100%;
    max-width: 100%;
  }

  body.services-page .container {
    width: min(100% - 32px, var(--container));
    max-width: 100%;
    min-width: 0;
  }

  /* -------------------------
     SERVICES HERO
  -------------------------- */
  .services-page-hero {
    overflow: hidden;
  }

  .services-hero-grid,
  .services-intro-grid {
    min-width: 0;
  }

  .services-page-hero .eyebrow {
    max-width: 100%;
  }

  .services-page-hero h1,
  .services-page-hero-copy,
  .services-intro-grid,
  .services-intro-copy {
    max-width: 100%;
  }

  .services-hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .services-hero-actions .btn {
    max-width: 100%;
  }

  .services-hero-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .services-stack-card {
    left: 50%;
    right: auto;
    width: min(84%, 330px);
    max-width: calc(100% - 20px);
    transform: translateX(-50%) rotate(var(--card-rotation, 0deg));
    box-sizing: border-box;
  }

  .stack-card-one {
    --card-rotation: -4deg;
  }

  .stack-card-two {
    --card-rotation: 3deg;
  }

  .stack-card-three {
    --card-rotation: -2deg;
  }

  /* -------------------------
     SERVICE DETAIL HEADERS
  -------------------------- */
  .service-detail-head {
    width: 100%;
    max-width: 100%;
    justify-items: center;
    text-align: center;
  }

  .service-detail-number {
    justify-self: center;
  }

  .service-detail-head h2 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .service-detail-head p {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  /* -------------------------
     SERVICE DETAIL CARDS
     One proper centered card per row.
  -------------------------- */
  .service-detail-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .service-detail-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    overflow: hidden;
  }

  .service-detail-card .icon {
    flex: 0 0 40px;
    margin-inline: auto;
  }

  .service-detail-card h3 {
    width: 100%;
    margin-top: 18px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .service-detail-card p {
    width: 100%;
    max-width: 420px;
    margin: 9px auto 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* Disable the desktop hover lift on touch-sized cards. */
  .service-detail-card:hover {
    transform: none;
  }

  /* -------------------------
     SERVICES PROCESS CARDS
  -------------------------- */
  .services-process-grid {
    width: 100%;
    min-width: 0;
  }

  .services-process-item {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .services-process-item .services-process-icon {
    margin-inline: auto;
  }

  .services-process-item h3,
  .services-process-item p {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
  }

  /* -------------------------
     SERVICES CTA
  -------------------------- */
  .services-cta-inner {
    width: 100%;
    min-width: 0;
  }

  .services-cta-inner > div {
    min-width: 0;
  }

  .services-cta-inner h2,
  .services-cta-inner p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .services-cta-inner .btn {
    width: 100%;
  }

  /* -------------------------
     WHY UCHUBLAB
     Convert the desktop divider layout into
     proper individual mobile cards.
  -------------------------- */
  .why-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 55px;
    border-top: 0;
  }

  .why-grid article,
  .why-grid article:nth-child(3) {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #333;
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    box-sizing: border-box;
  }

  .why-grid article:first-child {
    border-left: 1px solid #333;
  }

  .why-grid article > .why-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .why-grid article h3 {
    width: 100%;
    min-height: 0;
    margin: 0;
    display: block;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .why-grid article p {
    width: 100%;
    max-width: 360px;
    margin: 10px auto 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  /* Remove hover movement from the mobile card icon. */
  .why-grid article:hover > .why-icon {
    transform: none;
  }
}

@media (max-width: 380px) {
  body.services-page .container {
    width: calc(100% - 24px);
  }

  .service-detail-card,
  .why-grid article {
    padding-inline: 18px;
  }

  .services-page-hero h1 {
    font-size: 47px;
    letter-spacing: -3px;
  }
}



/* =========================================================
   FINAL CARD CONTENT ALIGNMENT
   Center card icons, headings and text at every breakpoint.
   ========================================================= */

.service-detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-detail-card .icon {
  margin-inline: auto;
}

.service-detail-card h3 {
  width: 100%;
  text-align: center;
  text-wrap: balance;
}

.service-detail-card p {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

/* =========================================================
   FINAL WHY UCHUBLAB CARD ALIGNMENT
   Center icons, titles and copy on desktop, laptop and tablet.
   ========================================================= */

.why-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.why-grid article > .why-icon {
  margin-inline: auto;
}

.why-grid article h3 {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
}

.why-grid article p {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

/* =========================================================
   TARGETED FIX: SINGLE PAGE SCROLL + SERVICE HEAD SPACING
   ========================================================= */

/* Let the browser keep one normal document-level vertical scrollbar.
   Do not create a second scrolling context on html/body. */
html {
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-gutter: auto;
}

body {
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

/* Desktop/laptop: use the available container width properly.
   Keep service titles anchored to the left instead of leaving
   an oversized empty gutter before the heading. */
.service-detail-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .58fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

.service-detail-head h2 {
  width: 100%;
  max-width: none;
  text-align: left;
  text-wrap: balance;
}

.service-detail-head p {
  width: 100%;
  max-width: 560px;
  margin-inline: 0;
  text-align: left;
  text-wrap: balance;
}

/* Keep tablet/mobile centered as intended. */
@media (max-width: 1100px) {
  .service-detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }

  .service-detail-head h2,
  .service-detail-head p {
    text-align: center;
  }

  .service-detail-head p {
    margin-inline: auto;
  }
}
