/* Homepage v3 hero: premium agency studio with safe desktop, tablet, and mobile geometry. */
.hero {
  min-height: 0;
  padding-top: 86px;
  background:
    radial-gradient(circle at 78% 22%, rgba(21, 95, 171, .78) 0, rgba(21, 95, 171, 0) 34%),
    radial-gradient(circle at 18% 82%, rgba(57, 213, 255, .13) 0, rgba(57, 213, 255, 0) 34%),
    linear-gradient(140deg, #041126 0%, #071a35 58%, #08284d 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(4, 17, 38, 0), rgba(4, 17, 38, .36));
  content: "";
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  min-height: 650px;
  gap: clamp(30px, 5.2vw, 82px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 28px 0 52px;
}

.hero h1 { text-wrap: balance; }
.hero h2 { max-width: 650px; text-wrap: balance; }
.hero-copy .hero-description { max-width: 650px; }
.hero-actions { gap: 12px; }

.hero-studio-visual {
  --hero-pointer-x: 0px;
  --hero-pointer-y: 0px;
  position: relative;
  z-index: 3;
  width: min(100%, 690px);
  min-width: 0;
  margin-left: auto;
  padding: 28px 0 34px;
  isolation: isolate;
  transform: translate3d(var(--hero-pointer-x), var(--hero-pointer-y), 0);
  transition: transform .35s cubic-bezier(.2, .75, .2, 1);
}

.studio-glow,
.studio-orbit {
  position: absolute;
  pointer-events: none;
}

.studio-glow {
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  animation: glowBreathe 6.6s ease-in-out infinite;
}

.studio-glow-blue {
  top: 48px;
  right: 24px;
  width: 410px;
  height: 330px;
  background: rgba(31, 145, 255, .28);
}

.studio-glow-cyan {
  right: 150px;
  bottom: 72px;
  width: 260px;
  height: 210px;
  background: rgba(57, 213, 255, .16);
  animation-delay: -2.2s;
}

.studio-orbit {
  z-index: 1;
  border: 1px solid rgba(104, 207, 255, .22);
  border-radius: 999px;
}

.studio-orbit-one {
  top: 0;
  right: 14px;
  width: min(88%, 560px);
  height: 420px;
  border-left-color: transparent;
  border-bottom-color: rgba(57, 213, 255, .08);
  transform: rotate(-15deg);
}

.studio-orbit-two {
  right: 95px;
  bottom: 20px;
  width: min(58%, 360px);
  height: 260px;
  border-top-color: transparent;
  transform: rotate(28deg);
}

.studio-shell {
  position: relative;
  z-index: 3;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(159, 219, 255, .32);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(10, 46, 87, .92), rgba(3, 19, 43, .94)),
    rgba(6, 27, 54, .94);
  box-shadow: 0 34px 92px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
}

.studio-shell::before {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    linear-gradient(rgba(126, 219, 255, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 219, 255, .24) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 82%);
  pointer-events: none;
}

.studio-topbar,
.studio-media,
.studio-bottom-grid {
  position: relative;
  z-index: 2;
}

.studio-topbar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 4px 13px;
  color: #b8cfea;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.studio-topbar > span { display: flex; gap: 5px; }
.studio-topbar i { width: 7px; height: 7px; border-radius: 50%; background: #39d5ff; }
.studio-topbar i:nth-child(2) { background: #ffb049; }
.studio-topbar i:nth-child(3) { background: #75e0bb; }
.studio-topbar strong { color: #fff; white-space: nowrap; }
.studio-topbar em { overflow: hidden; margin-left: auto; color: #7edbff; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.studio-media {
  overflow: hidden;
  aspect-ratio: 1.56 / 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #061a35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.studio-media .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity .9s ease, transform 1.8s cubic-bezier(.2, .75, .2, 1);
}

.studio-media .hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-studio-visual:hover .studio-media .hero-slide.active {
  transform: scale(1.025);
}

.studio-media-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 18, 39, .02) 30%, rgba(3, 18, 39, .84)),
    linear-gradient(90deg, rgba(3, 18, 39, .28), transparent 54%);
}

.studio-dots {
  top: 15px;
  right: 15px;
  z-index: 6;
}

.studio-caption {
  z-index: 5;
  right: 15px;
  bottom: 15px;
  left: 15px;
  max-width: 540px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(4, 20, 43, .86), rgba(7, 45, 84, .56));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.studio-caption > span {
  flex: 0 0 auto;
  background: rgba(57, 213, 255, .12);
}

.studio-caption div { min-width: 0; }
.studio-caption small { overflow: hidden; color: #aee6ff; text-overflow: ellipsis; white-space: nowrap; }
.studio-caption strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.2;
}

.studio-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr);
  gap: 10px;
  margin-top: 12px;
}

.studio-proof-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(126, 219, 255, .17);
  border-radius: 18px;
  background: radial-gradient(circle at 16% 22%, rgba(57, 213, 255, .16), transparent 38%), rgba(255, 255, 255, .065);
}

.studio-proof-card small,
.studio-side-card small,
.studio-stat-panel small {
  display: block;
  color: #82dfff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.studio-proof-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.studio-service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.studio-service-strip span {
  display: grid;
  min-width: 0;
  min-height: 70px;
  place-items: center;
  padding: 9px 5px;
  border: 1px solid rgba(180, 223, 255, .12);
  border-radius: 15px;
  color: #65d8ff;
  background: rgba(255, 255, 255, .052);
}

.studio-service-strip b {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #d9e9f8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-side-card,
.studio-stat-panel {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(171, 218, 255, .24);
  background: linear-gradient(145deg, rgba(7, 42, 80, .92), rgba(4, 23, 49, .91));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  backdrop-filter: blur(15px);
}

.studio-side-card {
  display: flex;
  width: min(238px, 42%);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 17px;
  animation: floatY 5.8s ease-in-out infinite;
}

.studio-side-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #73dbff;
  background: rgba(57, 213, 255, .13);
}

.studio-side-card strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
}

.studio-card-build {
  top: 10px;
  left: -12px;
}

.studio-card-automate {
  right: -4px;
  bottom: 16px;
  animation-delay: -2.4s;
}

.studio-stat-panel {
  right: 26px;
  top: 124px;
  width: 188px;
  padding: 13px;
  border-radius: 18px;
}

.studio-stat-panel strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.studio-stat-panel span {
  display: grid;
  grid-template-columns: .7fr .92fr .52fr;
  gap: 5px;
  margin-top: 12px;
}

.studio-stat-panel i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.studio-stat-panel i:nth-child(2) { background: linear-gradient(90deg, var(--cyan), #75e0bb); }
.studio-stat-panel i:nth-child(3) { background: linear-gradient(90deg, var(--orange), #ffd08a); }

.studio-stat-panel em {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #b9d5ee;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.studio-stat-panel svg { color: #75e0bb; flex: 0 0 auto; }

@media (max-width: 1120px) {
  .hero { padding-top: 74px; }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }
  .hero-copy {
    max-width: 780px;
    padding-bottom: 10px;
  }
  .hero-studio-visual {
    width: min(100%, 760px);
    margin: 0 auto;
    padding-top: 22px;
  }
  .studio-card-build { left: 6px; }
  .studio-card-automate { right: 8px; }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 57px;
    overflow: hidden;
  }
  .hero > .container {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .hero-grid {
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: min(100%, 340px);
    padding: 18px 0 6px;
  }
  .hero-copy,
  .hero h1,
  .hero h2,
  .hero-description,
  .hero-supporting-line,
  .hero-copy .eyebrow {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: wrap;
  }
  .hero h1,
  .hero h2,
  .hero-description {
    display: block;
    width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero h1 { max-width: 9ch !important; }
  .hero h2 { max-width: 13ch !important; }
  .hero-description { max-width: 35ch !important; }
  .hero h2 {
    font-size: clamp(25px, 7.1vw, 30px);
    line-height: 1.14;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.68;
  }
  .hero-supporting-line {
    font-size: 9px;
    letter-spacing: .1em;
    line-height: 1.55;
  }
  .hero-copy .eyebrow {
    font-size: 10px;
    letter-spacing: .1em;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .hero-studio-visual {
    width: 100%;
    margin-top: 12px;
    padding: 8px 0 24px;
    overflow: visible;
    transform: none;
  }
  .studio-shell {
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 20px 52px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .08);
  }
  .studio-topbar {
    margin: 1px 3px 10px;
    font-size: 8px;
  }
  .studio-topbar em {
    display: none;
  }
  .studio-media {
    aspect-ratio: 1.15 / 1;
    border-radius: 18px;
  }
  .studio-dots {
    top: 11px;
    right: 11px;
  }
  .studio-caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    padding: 10px;
  }
  .studio-caption strong {
    font-size: 13px;
  }
  .studio-bottom-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 9px;
  }
  .studio-proof-card {
    padding: 12px;
  }
  .studio-service-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .studio-service-strip span {
    min-height: 53px;
    padding: 7px 3px;
    border-radius: 12px;
  }
  .studio-service-strip b {
    font-size: 7px;
  }
  .studio-side-card,
  .studio-stat-panel {
    display: none;
  }
  .studio-orbit-one {
    top: 3px;
    right: -44px;
    width: 340px;
    height: 300px;
  }
  .studio-orbit-two {
    right: 8px;
    bottom: 8px;
    width: 230px;
    height: 190px;
  }
}

@media (max-width: 440px) {
  .studio-media {
    aspect-ratio: 1.04 / 1;
  }
  .studio-service-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-studio-visual,
  .studio-media .hero-slide,
  .studio-side-card {
    transition: none;
    animation: none;
  }
}
