/*
 * Aerion responsive refresh — July 2026
 * Homepage-only presentation; shared navigation remains in style.css.
 * The legacy .speed-hero rules remain in style.css as design documentation.
 * The homepage reuses its original circular motion system in the refreshed layout.
 */

:root {
  --refresh-red: #e84329;
  --refresh-red-dark: #b72f20;
  --refresh-navy: #0f395c;
  --refresh-navy-dark: #071629;
  --refresh-cream: #f5f3ef;
  --refresh-ink: #172b42;
  --refresh-line: rgba(15, 57, 92, 0.14);
  --refresh-title: clamp(2.35rem, 4vw, 4.5rem);
}

/* Shared interaction and sizing rules */
a.btn,
button.btn {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
}

a.btn-large,
button.btn-large {
  min-height: 54px;
  padding-inline: 28px;
}

.btn-glass {
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-white {
  border-color: #fff;
  margin-top: 18px;
}

.btn-outline-dark {
  border-color: var(--refresh-navy);
}

.section-eyebrow {
  margin: 0 0 14px;
  color: var(--refresh-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Quiet, creative-agency hero */
.home-v22 {
  background: var(--refresh-cream);
}

.home-v22 .container {
  max-width: 1180px;
}

.agency-hero {
  position: relative;
  min-height: min(860px, calc(100svh - 58px));
  padding: clamp(92px, 12vh, 145px) 0 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 26%, rgba(49, 103, 166, 0.38), transparent 28%),
    radial-gradient(circle at 22% 74%, rgba(232, 67, 41, 0.2), transparent 25%),
    linear-gradient(135deg, #07111f 0%, #0b1d36 52%, #102b4c 100%);
  color: #fff;
  text-align: center;
}

.agency-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.8px, transparent 0.8px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.agency-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 75vw;
  height: 75vw;
  min-width: 720px;
  min-height: 720px;
  top: -48%;
  left: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 67, 41, 0.16), rgba(39, 103, 171, 0.08) 43%, transparent 68%);
  filter: blur(12px);
  animation: agencyAmbientDrift 18s ease-in-out infinite alternate;
}

.agency-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.agency-hero-canvas .mesh-orb,
.agency-hero-canvas .motion-ring,
.agency-hero-canvas .motion-line {
  will-change: transform;
}

.home-v22 .agency-hero-canvas .orb-a {
  width: 30vw;
  height: 30vw;
  left: -5vw;
  top: -7vw;
  opacity: 0.62;
}

@keyframes agencyAmbientDrift {
  to {
    transform: translate3d(38vw, 18vh, 0) scale(1.12);
    opacity: 0.72;
  }
}

.agency-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px !important;
}

.agency-hero .hero-kicker {
  margin: 0 0 22px;
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.agency-hero .hero-kicker::before {
  display: none;
}

.agency-hero h1 {
  max-width: 940px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.agency-hero h1 em {
  color: var(--refresh-red);
  font-style: normal;
}

.agency-hero .hero-summary {
  max-width: 750px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.agency-hero .hero-actions {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 12px;
}

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

.agency-hero .hero-proof {
  max-width: 800px;
  margin: 58px auto 0;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  text-align: left;
}

/* Intro section */
.home-v22 .agency-intro {
  padding: clamp(80px, 10vw, 120px) 0;
}

.home-v22 .split-intro {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(45px, 7vw, 90px);
  align-items: center;
}

.home-v22 .split-intro h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.7rem);
}

.home-v22 .split-intro p:first-child {
  margin-top: 0;
}

.home-v22 .split-intro p:last-child {
  margin-bottom: 0;
}

/* Equal service cards */
.home-v22 .service-universe {
  padding: clamp(85px, 10vw, 120px) 0;
}

.home-v22 .universe-grid {
  align-items: stretch;
}

.home-v22 .universe-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: 128px 175px minmax(120px, auto) auto;
  align-content: start;
}

.home-v22 .universe-card.orange {
  background: linear-gradient(145deg, #e84329 0%, #7c201a 100%);
}

.home-v22 .universe-card.red {
  background: linear-gradient(145deg, #d92f4d 0%, #591225 100%);
}

.home-v22 .universe-card.navy {
  background: linear-gradient(145deg, #285581 0%, #030d1c 100%);
}

.home-v22 .universe-card h3 {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0 0 18px;
}

.home-v22 .universe-card p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.home-v22 .universe-card ul {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
}

.home-v22 .universe-card b {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 28px;
}

/* Service-led portfolio carousel */
.service-showcase {
  padding: clamp(85px, 10vw, 125px) 0;
  overflow: hidden;
  background: #f7f7f5;
}

.service-showcase-heading {
  margin-bottom: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
}

.service-showcase-heading h2 {
  max-width: 850px;
  margin: 0;
  color: var(--refresh-navy);
  font-size: 4.5rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.service-showcase-intro {
  padding-bottom: 5px;
}

.service-showcase-intro p {
  margin: 0 0 18px;
  color: #5e6976;
  font-size: 1.03rem;
  line-height: 1.65;
}

.portfolio-text-link,
.service-slide-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--refresh-navy);
  font-weight: 800;
}

.service-carousel {
  position: relative;
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  outline: none;
}

.service-carousel:focus-visible {
  outline: 3px solid rgba(232, 67, 41, 0.5);
  outline-offset: 7px;
}

.service-carousel-topbar {
  min-height: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.service-carousel-status {
  margin: 0;
  color: var(--refresh-navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.service-carousel-controls {
  position: static;
}

.service-carousel-controls button {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 57, 92, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--refresh-navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.service-carousel-controls button:first-child {
  left: -25px;
}

.service-carousel-controls button:last-child {
  right: -25px;
}

.service-carousel-controls button span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: translateY(-1px);
}

.service-carousel-controls button:hover,
.service-carousel-controls button:focus-visible {
  border-color: var(--refresh-red);
  background: var(--refresh-red);
  color: #fff;
}

.service-carousel-track {
  width: 100%;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.service-carousel-track::-webkit-scrollbar {
  display: none;
}

.service-slide {
  min-width: 100%;
  height: 570px;
  min-height: 0;
  border: 1px solid rgba(15, 57, 92, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.service-slide-copy {
  min-width: 0;
  padding: 48px 48px 48px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: var(--refresh-navy);
}

.service-number {
  margin: 0 0 28px;
  color: var(--refresh-red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-slide h3 {
  max-width: 580px;
  margin: 0 0 24px;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.service-slide-copy > p:not(.service-number) {
  max-width: 540px;
  margin: 0 0 28px;
  color: #606b78;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-slide-link {
  margin-top: 0;
}

.service-slide-visual {
  min-width: 0;
  min-height: 100%;
  padding: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9ecee;
}

.service-slide-visual img {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: contain !important;
  object-position: center;
  transition: transform 0.5s ease;
}

.service-slide-visual:hover img {
  transform: scale(1.015);
}

.service-slide-marketing .service-slide-copy {
  background: #171b23;
  color: #fff;
}

.service-slide-marketing .service-slide-copy > p:not(.service-number) {
  color: rgba(255, 255, 255, 0.72);
}

.service-slide-marketing .service-slide-link {
  color: #fff;
}

.service-slide-marketing .service-slide-visual {
  background: #d8d1c8;
}

.service-slide-content .service-slide-copy {
  background: #dc3b28;
  color: #fff;
}

.service-slide-content .service-number,
.service-slide-content .service-slide-copy > p:not(.service-number) {
  color: rgba(255, 255, 255, 0.78);
}

.service-slide-content .service-slide-link {
  color: #fff;
}

.service-slide-content .service-slide-visual {
  background: #efe8df;
}

.service-slide-digital .service-slide-copy {
  background: #153f62;
  color: #fff;
}

.service-slide-digital .service-number,
.service-slide-digital .service-slide-copy > p:not(.service-number) {
  color: rgba(255, 255, 255, 0.76);
}

.service-slide-digital .service-slide-link {
  color: #fff;
}

.service-slide-digital .service-slide-visual {
  background: #eeeee7;
}

.service-carousel-dots {
  min-height: 38px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.service-carousel-dots button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.service-carousel-dots button::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #aeb7bf;
  content: "";
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.service-carousel-dots button[aria-pressed="true"]::before {
  width: 28px;
  border-radius: 5px;
  background: var(--refresh-red);
}

/* Process timing and shared heading scale */
.home-v22 .process-section,
.home-v22 .team-preview {
  padding: clamp(85px, 10vw, 120px) 0;
}

.home-v22 .process-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(15, 57, 92, 0.09), transparent 28%),
    linear-gradient(135deg, #dfe8ef 0%, #edf1f3 100%);
}

.home-v22 .process-section .section-head h2,
.home-v22 .team-copy h2 {
  font-size: var(--refresh-title);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.home-v22 .process-step span {
  animation: processNumberPause 8s ease-in-out infinite;
}

.home-v22 .process-line::before {
  display: none;
}

.home-v22 .process-step:nth-child(2) span {
  animation-delay: 0.8s;
}

.home-v22 .process-step:nth-child(3) span {
  animation-delay: 1.6s;
}

.home-v22 .process-step:nth-child(4) span {
  animation-delay: 2.4s;
}

@keyframes processNumberPause {
  0%,
  72% {
    box-shadow: 0 0 0 0 rgba(232, 67, 41, 0);
    transform: rotate(0);
  }
  78% {
    box-shadow: 0 0 0 15px rgba(232, 67, 41, 0);
    transform: rotate(360deg);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 67, 41, 0);
    transform: rotate(360deg);
  }
}

/* Equal circular team portraits with unobstructed faces */
.home-v22 .team-preview-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 7vw, 88px);
}

.home-v22 .team-copy p:not(.section-eyebrow) {
  max-width: 560px;
}

.team-copy-intro {
  margin-bottom: 28px;
}

.home-v22 .team-copy-intro > div {
  display: flex;
  flex-direction: column;
}

.home-v22 .team-copy-intro h2 {
  margin-top: 0;
}

.home-v22 .team-copy-intro > div > p {
  margin-bottom: 0;
}

.home-v22 .team-collage {
  height: 560px;
  position: relative;
  display: block;
}

.team-portrait {
  position: absolute;
  width: min(46%, 285px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #171719;
  box-shadow: 0 25px 58px rgba(19, 30, 48, 0.2);
}

.team-portrait-one {
  left: 0;
  top: 128px;
}

.team-portrait-two {
  right: 0;
  top: 184px;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center 34%;
}

.human-ideas-pulse {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  margin: 0;
  color: var(--refresh-red);
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
  animation: humanIdeasFade 4.2s ease-in-out infinite;
}

@keyframes humanIdeasFade {
  0%,
  100% {
    opacity: 0.08;
  }
  45%,
  60% {
    opacity: 1;
  }
}

/* Balanced work-with-us banner */
.home-v22 .work-with-us-banner {
  padding: clamp(76px, 9vw, 110px) 0;
}

.home-v22 .work-with-us-banner .container {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.home-v22 .work-with-us-banner h2 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 4.9rem);
}

.work-with-us-copy {
  max-width: 460px;
  justify-self: end;
}

.work-with-us-copy p {
  margin-top: 0;
}

.work-with-us-copy h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.work-with-us-banner .section-eyebrow,
.quote-stage .section-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

/* Quote and final CTA polish */
.home-v22 .quote-inner > p:not(.section-eyebrow) {
  margin-bottom: 22px;
}

.home-v22 .final-cta .hero-actions {
  gap: 12px;
}

.home-v22 .final-cta .btn {
  min-width: 205px;
}

.home-v22 .final-cta .btn.js-whatsapp {
  min-height: 54px !important;
  padding: 0 28px !important;
  border: 1px solid var(--refresh-navy) !important;
  background: transparent !important;
  color: var(--refresh-navy) !important;
  box-shadow: none;
}

section[id] {
  scroll-margin-top: 64px;
}

/* Navigation and section layout across tablets and phones */
@media (max-width: 1100px) {
  .home-v22 .universe-card {
    padding: 30px;
  }
}

@media (max-width: 960px) {
  .social-dock {
    display: none;
  }

  .home-v22 .universe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-v22 .universe-card {
    min-height: 610px;
    grid-template-rows: 140px 230px minmax(125px, auto) auto;
  }

  .home-v22 .universe-card h3 {
    font-size: 1.85rem;
  }

  .service-showcase-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-showcase-heading h2 {
    font-size: 3.7rem;
  }

  .service-showcase-intro {
    max-width: 620px;
  }

  .service-carousel {
    width: calc(100% - 80px);
  }

  .service-slide {
    height: 500px;
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  }

  .service-slide-copy {
    padding: 40px 40px 40px 68px;
  }

  .service-slide h3 {
    font-size: 3rem;
  }

  .home-v22 .team-preview-grid,
  .home-v22 .work-with-us-banner .container {
    grid-template-columns: 1fr;
  }

  .work-with-us-copy {
    max-width: 660px;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .agency-hero {
    min-height: auto;
    padding: 90px 0 75px;
  }

  .agency-hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .agency-hero .hero-actions {
    max-width: 420px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

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

  .agency-hero .hero-proof {
    margin-top: 46px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .agency-hero .hero-proof div {
    display: block;
  }

  .agency-hero .hero-proof span {
    margin-left: 7px;
  }

  .home-v22 .split-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-v22 .universe-grid {
    grid-template-columns: 1fr;
  }

  .home-v22 .universe-card {
    min-height: 0;
    grid-template-rows: auto;
  }

  .home-v22 .universe-card h3 {
    margin-top: 90px;
  }

  .service-slide {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 460px;
  }

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

  .service-carousel-controls button:first-child {
    left: 8px;
  }

  .service-carousel-controls button:last-child {
    right: 8px;
  }

  .service-carousel-controls button {
    top: 73%;
  }

  .service-slide-copy {
    min-height: 470px;
    padding: 44px 34px;
  }

  .service-number {
    margin-bottom: 32px;
  }

  .service-slide h3 {
    max-width: 560px;
    font-size: 3rem;
  }

  .service-slide-visual {
    padding: 28px;
  }

  .home-v22 .team-collage {
    height: 560px;
  }

  .team-portrait {
    width: min(68%, 230px);
    border-width: 6px;
  }

  .team-portrait-one {
    left: 0;
    top: 112px;
  }

  .team-portrait-two {
    right: 0;
    top: 278px;
  }

  .human-ideas-pulse {
    top: 16px;
    right: 14px;
  }

  .home-v22 .work-with-us-banner h2 {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .home-v22 .final-cta .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin-inline: auto;
  }

  .home-v22 .final-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .agency-hero {
    padding-top: 76px;
  }

  .agency-hero h1 {
    font-size: clamp(2.75rem, 14vw, 3.7rem);
  }

  .agency-hero .hero-proof span {
    display: block;
    margin: 2px 0 0;
  }

  .home-v22 .split-intro h2,
  .service-showcase-heading h2,
  .home-v22 .process-section .section-head h2,
  .home-v22 .team-copy h2 {
    font-size: 2.55rem;
  }

  .home-v22 .universe-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .service-showcase {
    padding-block: 72px;
  }

  .service-carousel-topbar {
    min-height: 32px;
  }

  .service-carousel-controls button {
    width: 44px;
    height: 44px;
  }

  .service-slide {
    grid-template-rows: auto 340px;
  }

  .service-slide-copy {
    min-height: 450px;
    padding: 38px 24px;
  }

  .service-slide h3 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .service-slide-copy > p:not(.service-number) {
    font-size: 0.98rem;
  }

  .home-v22 .team-collage {
    height: 530px;
  }

  .human-ideas-pulse {
    max-width: 155px;
    font-size: 0.8rem;
  }

  .enhanced-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-hero::after,
  .agency-hero-canvas .mesh-orb,
  .agency-hero-canvas .motion-ring,
  .agency-hero-canvas .motion-line,
  .agency-hero-canvas .pixel-field,
  .human-ideas-pulse,
  .home-v22 .process-step span {
    animation: none !important;
  }

  .service-carousel-track {
    scroll-behavior: auto;
  }
}
