/* =========================================================
   COREGROWTH — Digital Growth & Content
   ========================================================= */

:root {
  --blue: #1688FF;
  --blue-light: #5AB2FF;
  --dark: #07131B;
  --black: #050B10;
  --white: #FFFFFF;
  --bg-light: #F5F7F8;
  --text: #091017;
  --muted: #697680;
  --border-light: #E4E9EC;
  --border-dark: #1C3648;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --max-width: 1160px;
  --section-pad: 116px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  --glow-blue: radial-gradient(60% 60% at 50% 0%, rgba(22,136,255,0.16), rgba(22,136,255,0) 70%);
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--blue-light); }

.h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
}
.h2--light { color: var(--white); }

.p-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 16px 0 0;
}
.p-lead--dark { color: #A9BAC4; }

.text-accent { color: var(--blue); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 3px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), gap 220ms var(--ease);
}
.text-link:hover { color: var(--blue); border-color: var(--blue); gap: 10px; }
.text-link--light { color: var(--white); border-color: rgba(255,255,255,0.28); }
.text-link--light:hover { color: var(--blue-light); border-color: var(--blue-light); }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--sm { width: 15px; height: 15px; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ED47A;
  display: inline-block;
  flex-shrink: 0;
}
.dot--sm { width: 6px; height: 6px; }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head--dark { max-width: 560px; }
.section-head--center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .p-lead { margin-left: auto; margin-right: auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 24px;
  font-size: 15px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
  white-space: nowrap;
}
.btn--large { padding: 15px 28px; font-size: 15.5px; }
.btn--small { padding: 10px 18px; font-size: 13.5px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(22,136,255,0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(22,136,255,0.6); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn--ghost:hover { border-color: var(--text); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 320ms var(--ease), border-color 320ms var(--ease), backdrop-filter 320ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 19, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nav__mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav__brandtext { display: flex; flex-direction: column; line-height: 1.2; }
.nav__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.nav__sub { font-size: 11px; color: #9FB2BD; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: #D7E2E7;
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 6px;
}

.mobile-menu {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,19,27,0.98);
  backdrop-filter: blur(14px);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 10px 22px 26px;
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  color: #E7EEF1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu__cta {
  margin-top: 18px;
  border-bottom: none;
  text-align: center;
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* =========================================================
   HERO — rotating video showcase
   ========================================================= */
.hero {
  position: relative;
  background: var(--dark);
  padding-top: 128px;
  overflow: hidden;
}

/* Full-bleed slide stack. Each .hero__slide is absolutely
   positioned and cross-fades via opacity — see initHeroShowcase
   in app.js. Only the active slide is visible/opaque. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Poster images (existing brand illustrations) show instantly
     and remain visible if a real video source isn't present yet. */
  background: var(--dark);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,16,0.55) 0%, rgba(5,11,16,0.72) 55%, rgba(5,11,16,0.92) 100%),
    var(--glow-blue);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 32px 150px;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero__content { max-width: 640px; }

.hero__headline {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero__lead {
  font-size: 17px;
  color: #D3DEE4;
  max-width: 480px;
  margin: 22px 0 0;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover { border-color: #fff; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 13.5px;
  color: #A9BAC4;
}
.hero__trust-dot { opacity: 0.6; }

/* Slim progress rail across the bottom of the hero. The inner bar's
   width is reset to 0 then transitioned to 100% for each slide's
   dwell time by app.js, so it visibly fills before the cross-fade. */
.hero__progress {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 28px;
}
.hero__progress::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.hero__progress-bar {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__progress-bar.is-animating {
  transition: transform linear;
}

@media (max-width: 640px) {
  .hero__progress-bar { left: 22px; right: 22px; }
}

@media (max-width: 980px) {
  .hero { padding-top: 108px; }
  .hero__inner { padding: 50px 22px 110px; min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

/* =========================================================
   SERVICE STRIP
   ========================================================= */
.strip {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #C7D3D9;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.strip__item:last-child { border-right: none; }
.strip__item:hover { background: rgba(22,136,255,0.08); color: #fff; }
.strip__item:hover .icon { transform: translate(2px,-2px); color: var(--blue-light); }
.strip__num { font-size: 12px; color: #5E7580; font-weight: 600; }
.strip__name { font-size: 14px; font-weight: 500; margin-right: auto; }
.strip .icon { transition: transform 220ms var(--ease), color 220ms var(--ease); color: #5E7580; }

@media (max-width: 900px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2) { border-right: none; }
  .strip__item { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 520px) {
  .strip__inner { grid-template-columns: 1fr; }
  .strip__item { border-right: none; }
}

/* =========================================================
   INTRODUCTION
   ========================================================= */
.intro {
  background: var(--white);
  padding: var(--section-pad) 0;
}
.intro__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .intro__grid { grid-template-columns: 1fr; gap: 14px; }
}
.intro__body .text-link { margin-top: 22px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--bg-light);
  padding: var(--section-pad) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Each service is a single interactive card: a full-width toggle
   button (icon + title + short description + chevron) that expands
   a detail panel underneath. See initServiceCards in app.js. */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -24px rgba(9,16,23,0.18);
  border-color: #CFE3F7;
}

.service-card__toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon heading chevron"
    "desc desc desc";
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}

.service-card__icon {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(22,136,255,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms var(--ease), transform 220ms var(--ease), color 220ms var(--ease);
}
.service-card__icon .icon { width: 22px; height: 22px; }
.service-card:hover .service-card__icon,
.service-card__toggle[aria-expanded="true"] .service-card__icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.service-card__heading { grid-area: heading; align-self: center; }
.service-card__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 6px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.service-card__desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.service-card__chevron {
  grid-area: chevron;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.service-card__chevron .icon { width: 15px; height: 15px; }
.service-card__toggle[aria-expanded="true"] .service-card__chevron {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.service-card__panel {
  padding: 0 30px 28px;
  color: var(--muted);
}
.service-card__panel p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
}
.service-card__panel[hidden] { display: none; }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card__toggle {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon chevron"
      "heading heading"
      "desc desc";
    padding: 24px;
  }
  .service-card__chevron { justify-self: end; }
}

/* =========================================================
   OUR WORK
   ========================================================= */
.work {
  background: var(--white);
  padding: var(--section-pad) 0;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--black);
}
.work-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease);
}
.work-card:hover .work-card__image img { transform: scale(1.04); }
.work-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(5,11,16,0.92) 20%, rgba(5,11,16,0.15) 85%, transparent);
  transition: background 300ms var(--ease);
}
.work-card:hover .work-card__body {
  background: linear-gradient(to top, rgba(5,11,16,0.97) 30%, rgba(5,11,16,0.35) 85%, rgba(5,11,16,0.1));
}
.work-card__label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.work-card__title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  max-width: 90%;
  font-family: var(--font-head);
}
.work-card__arrow {
  position: absolute;
  top: 20px; right: 20px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
  padding: 9px;
  width: 34px; height: 34px;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}
.work-card:hover .work-card__arrow {
  transform: translate(3px, -3px);
  background: var(--blue);
}

@media (max-width: 860px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .work__grid { grid-template-columns: 1fr; }
}

.work__cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* =========================================================
   PARTNERS
   ========================================================= */
.partners {
  background: var(--bg-light);
  padding: var(--section-pad) 0;
  position: relative;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  animation: partnerFloat 6s ease-in-out infinite;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.partner-logo:nth-child(2) { animation-delay: -1s; }
.partner-logo:nth-child(3) { animation-delay: -2s; }
.partner-logo:nth-child(4) { animation-delay: -3s; }
.partner-logo:nth-child(5) { animation-delay: -4s; }
.partner-logo:nth-child(6) { animation-delay: -5s; }
.partner-logo span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #B7C2C9;
  white-space: nowrap;
  transition: color 240ms var(--ease);
}
.partner-logo:hover {
  transform: translateY(-4px);
  border-color: #CFE3F7;
  box-shadow: 0 16px 30px -20px rgba(22,136,255,0.35);
}
.partner-logo:hover span { color: var(--blue); }

@keyframes partnerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .partners__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-logo { animation: none; }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.process {
  background: var(--dark);
  padding: var(--section-pad) 0;
}
.timeline {
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.timeline__item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.timeline__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-light);
}
.timeline__item h3 {
  color: #fff;
  font-size: 19px;
  margin: 0 0 6px;
}
.timeline__item p {
  color: #A9BAC4;
  margin: 0;
  font-size: 15px;
  max-width: 460px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--bg-light);
  padding: var(--section-pad) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__image img {
  border-radius: var(--radius-l);
  width: 100%;
}
.about__points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__points li {
  padding-left: 20px;
  border-left: 2px solid var(--border-light);
}
.about__points h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.about__points p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__image { max-width: 440px; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--white);
  padding: var(--section-pad) 0;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  padding: 26px;
  position: relative;
}
.testimonial-card__tag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-light);
  padding: 4px 9px;
  border-radius: 999px;
}
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: #F5A623;
  margin-bottom: 14px;
}
.testimonial-card__stars .icon { width: 15px; height: 15px; }
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 18px;
}
.testimonial-card__author { display: flex; flex-direction: column; }
.testimonial-card__name { font-weight: 700; font-size: 14px; }
.testimonial-card__type { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--dark);
  padding: var(--section-pad) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.contact__form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-l);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Two-column pairing (name/email, phone/company, contact
   method/budget) — collapses to one column on narrow screens
   so the form always reads top-to-bottom cleanly on mobile. */
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #C7D3D9;
}
.field__req { color: #FF9E9E; font-weight: 700; }
.field__optional {
  font-weight: 500;
  color: #7E93A0;
  text-transform: none;
  letter-spacing: 0;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.field select { appearance: none; }
.field select option { color: #091017; }
.field input::placeholder,
.field textarea::placeholder { color: #6E828D; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.09);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22,136,255,0.22);
}
.field__error {
  display: none;
  font-size: 12.5px;
  color: #FF8383;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #E5484D; }
.field.has-error .field__error { display: block; }

.contact__success,
.contact__error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-s);
}
.contact__success {
  color: #6FE3A6;
  background: rgba(46,212,122,0.1);
  border: 1px solid rgba(46,212,122,0.25);
}
.contact__error {
  color: #FF9E9E;
  background: rgba(229,72,77,0.1);
  border: 1px solid rgba(229,72,77,0.3);
}
.contact__error .icon { flex-shrink: 0; }
.contact__success[hidden],
.contact__error[hidden] { display: none; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .contact__form-row { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   PROCESS + CONTACT VISUALS — FIXED / RESPONSIVE
   ========================================================= */

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.process__content,
.contact__content {
  min-width: 0;
}

/* Visual area */
.process__visual,
.contact__visual {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 38vw, 580px);
  overflow: visible;
}

/* Image frames */
.process__image,
.contact__image {
  position: absolute;
  margin: 0;
  overflow: hidden;

  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: #10232F;
  box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 0.75);

  isolation: isolate;
}

/* Images */
.process__image img,
.contact__image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;

  transition: transform 700ms var(--ease);
}

/* Dark image overlay */
.process__image::after,
.contact__image::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(7, 19, 27, 0.02),
      rgba(7, 19, 27, 0.22)
    );

  pointer-events: none;
  z-index: 2;
}

/* ---------------------------------------------------------
   PROCESS IMAGES
   --------------------------------------------------------- */

.process__image--one {
  width: 72%;
  height: clamp(300px, 27vw, 400px);

  top: 0;
  right: 6%;

  transform: rotate(1deg);
}

.process__image--two {
  width: 58%;
  height: clamp(220px, 20vw, 295px);

  left: 0;
  bottom: 0;

  transform: rotate(-1deg);
}

/* ---------------------------------------------------------
   CONTACT IMAGES
   --------------------------------------------------------- */

.contact__image--one {
  width: 74%;
  height: clamp(290px, 25vw, 370px);

  left: 0;
  top: 0;

  transform: rotate(-1deg);
}

.contact__image--two {
  width: 58%;
  height: clamp(220px, 20vw, 305px);

  right: 0;
  bottom: 0;

  transform: rotate(1deg);
}

/* Hover */
.process__image:hover img,
.contact__image:hover img {
  transform: scale(1.035);
}


/* =========================================================
   REVEAL ANIMATION
   IMPORTANT:
   The old CSS had .reveal and floating animation both
   controlling transform. That caused conflicts.
   Now reveal controls opacity only.
   ========================================================= */

.process__image.reveal,
.contact__image.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.process__image.reveal.is-visible,
.contact__image.reveal.is-visible {
  opacity: 1;
}


/* ---------------------------------------------------------
   FLOATING EFFECT
   Applied after reveal
   --------------------------------------------------------- */

.process__image--one.reveal.is-visible {
  animation:
    processFloatOne 7s ease-in-out 700ms infinite;
}

.process__image--two.reveal.is-visible {
  animation:
    processFloatTwo 8s ease-in-out 700ms infinite;
}

.contact__image--one.reveal.is-visible {
  animation:
    contactFloatOne 7.5s ease-in-out 700ms infinite;
}

.contact__image--two.reveal.is-visible {
  animation:
    contactFloatTwo 8.5s ease-in-out 700ms infinite;
}


/* =========================================================
   FLOAT KEYFRAMES
   ========================================================= */

@keyframes processFloatOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, -9px, 0) rotate(1.4deg);
  }
}

@keyframes processFloatTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, 8px, 0) rotate(-1.4deg);
  }
}

@keyframes contactFloatOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(-1.3deg);
  }
}

@keyframes contactFloatTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, 8px, 0) rotate(1.3deg);
  }
}


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

.contact__grid {
  display: grid;

  grid-template-columns:
    minmax(320px, 0.92fr)
    minmax(0, 1.08fr);

  gap: clamp(40px, 5vw, 72px);

  align-items: center;
}


/* =========================================================
   LARGE DESKTOP / TV
   ========================================================= */

@media (min-width: 1400px) {

  .container {
    max-width: 1280px;
  }

  .process__grid,
  .contact__grid {
    gap: 80px;
  }

  .process__visual,
  .contact__visual {
    min-height: 590px;
  }

  .process__image--one {
    height: 420px;
  }

  .process__image--two {
    height: 315px;
  }

  .contact__image--one {
    height: 390px;
  }

  .contact__image--two {
    height: 320px;
  }
}


/* =========================================================
   LAPTOP / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

  .process__grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(300px, 0.8fr);

    gap: 42px;
  }

  .contact__grid {
    grid-template-columns:
      minmax(300px, 0.85fr)
      minmax(0, 1fr);

    gap: 42px;
  }

  .process__visual,
  .contact__visual {
    min-height: 470px;
  }

  .process__image--one {
    height: 340px;
  }

  .process__image--two {
    height: 250px;
  }

  .contact__image--one {
    height: 330px;
  }

  .contact__image--two {
    height: 255px;
  }
}


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

@media (max-width: 860px) {

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

  .process__visual {
    width: 100%;
    max-width: 640px;
    min-height: 450px;

    margin: 0 auto;
    order: 2;
  }

  .process__content {
    order: 1;
  }


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

  .contact__visual {
    width: 100%;
    max-width: 640px;
    min-height: 450px;

    margin: 0 auto;
    order: 1;
  }

  .contact__content {
    order: 2;
  }


  .process__image--one {
    width: 72%;
    height: 330px;

    right: 5%;
  }

  .process__image--two {
    width: 58%;
    height: 245px;
  }


  .contact__image--one {
    width: 74%;
    height: 330px;
  }

  .contact__image--two {
    width: 58%;
    height: 250px;
  }
}


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

@media (max-width: 600px) {

  .process__visual,
  .contact__visual {
    min-height: 370px;
  }


  .process__image--one {
    width: 76%;
    height: 265px;

    right: 2%;
  }

  .process__image--two {
    width: 61%;
    height: 205px;

    left: 0;
  }


  .contact__image--one {
    width: 76%;
    height: 265px;

    left: 0;
  }

  .contact__image--two {
    width: 61%;
    height: 205px;

    right: 0;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

  .process__visual,
  .contact__visual {
    min-height: 320px;
  }


  .process__image--one {
    width: 78%;
    height: 225px;
    right: 1%;
  }

  .process__image--two {
    width: 62%;
    height: 175px;
  }


  .contact__image--one {
    width: 78%;
    height: 225px;
  }

  .contact__image--two {
    width: 62%;
    height: 175px;
  }
}


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

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

  .process__image,
  .contact__image {
    animation: none !important;
    transition: none !important;
  }

  .process__image.reveal,
  .contact__image.reveal {
    opacity: 1;
    transform: none !important;
  }

  .process__image img,
  .contact__image img {
    transition: none !important;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .nav__name { color: #fff; }
.footer .nav__sub { color: #6E828D; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a { color: #A9BAC4; font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: #A9BAC4;
}
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: #6E828D;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: #A9BAC4; }

@media (max-width: 700px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* =========================================================
   AI CHATBOT
   ========================================================= */
.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
}
.chat__toggle {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(22,136,255,0.65), 0 0 0 0 rgba(22,136,255,0.5);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  animation: chatGlow 3.2s ease-in-out infinite;
}
.chat__toggle:hover { transform: translateY(-2px) scale(1.03); }
.chat__toggle .icon { width: 24px; height: 24px; }
.chat__online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #2ED47A;
  border: 2.5px solid var(--dark);
}

@keyframes chatGlow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(22,136,255,0.55), 0 0 0 0 rgba(22,136,255,0.35); }
  50% { box-shadow: 0 10px 30px -8px rgba(22,136,255,0.65), 0 0 0 10px rgba(22,136,255,0); }
}

.chat__panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -20px rgba(5,11,16,0.45);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatOpen 260ms var(--ease);
}

@keyframes chatOpen {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat__header {
  background: var(--dark);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat__header-title { margin: 0; font-weight: 700; font-size: 14.5px; font-family: var(--font-head); }
.chat__header-status {
  margin: 3px 0 0;
  font-size: 12px;
  color: #A9BAC4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat__close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat__close .icon { width: 15px; height: 15px; }

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: msgIn 220ms var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg--bot {
  background: #fff;
  border: 1px solid var(--border-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg--user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg--typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 13px 16px;
}
.msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.1s infinite ease-in-out;
}
.msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.chip {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.chip:hover { background: #EAF3FE; border-color: #BFDCFB; color: var(--blue); }

.chat__input {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.chat__input input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  background: var(--bg-light);
}
.chat__input input:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat__input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms var(--ease);
}
.chat__input button:hover { background: #0E6FDB; }

.chat__panel[hidden] { display: none; }

@media (max-width: 480px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__panel { width: calc(100vw - 28px); height: 65vh; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat__toggle { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   V2 CONVERSION + TRUST POLISH
   ========================================================= */
.partners .section-head { margin-bottom: 40px; }
.partners .section-head .p-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.partner-logo img {
  width: auto;
  max-width: 128px;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .68;
  transition: filter 240ms var(--ease), opacity 240ms var(--ease), transform 240ms var(--ease);
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.03); }

.work-card {
  box-shadow: 0 20px 50px -34px rgba(5,11,16,.55);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px -34px rgba(5,11,16,.68);
}
.work-card__label { max-width: calc(100% - 42px); }

.about__image {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 28px 60px -40px rgba(5,11,16,.45);
}

.contact__reassurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #9FB2BD;
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .contact__reassurance { gap: 6px; font-size: 12px; }
  .partner-logo img { max-width: 110px; max-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-card, .partner-logo img { transition: none; }
}


