/* ==========================================================================
   AMWIO — styles.css
   ========================================================================== */

:root {
  --blue-900: #0b2f66;
  --blue-800: #123a7a;
  --blue-700: #1a4fa0;
  --blue-600: #3876ff;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --sky-top:  #bfe0ff;
  --sky-mid:  #dff1ff;
  --sky-bottom: #f5faff;
  --ink: #16233f;
  --ink-soft: #4b5c78;
  --white: #ffffff;
  --border: #e4ecf7;
  --shadow-sm: 0 2px 10px rgba(16, 44, 94, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 44, 94, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 44, 94, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }
/* Native smooth scrolling only as a fallback; Lenis (script.js) handles it when active */
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--blue-900); line-height: 1.2; }
p { margin: 0; color: var(--ink-soft); line-height: 1.7; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 400;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-700); }

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--white); }

.btn-nav { padding: 7px 16px; font-size: 0.75rem; font-weight: 400; }

/* ---------- Section shared ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--blue-800);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.section-head h2 { font-size: 1.9rem; }
.section-head--split {
  text-align: left;
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head--split .eyebrow, .section-head--split h2 { margin-bottom: 0; }

.view-all {
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-all svg { transition: transform 0.2s ease; }
.view-all:hover svg { transform: translateX(4px); }

section { position: relative; }
/* Own stacking context so .services (z-index:-1) stays behind About/Portfolio
   visually but its cards remain hoverable/clickable. */
main { position: relative; z-index: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* The glass layer lives on a pseudo-element (not the header itself) so the
   mobile menu inside the header can have its own working backdrop blur —
   browsers don't blur the page behind a child of a backdrop-filtered element. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled::before,
.site-header.menu-open::before {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 24px rgba(16, 44, 94, 0.1);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 56px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  margin-left: 15px;
}
.logo img { height: 34px; }
.logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.site-header.scrolled .main-nav a { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-600);
  transition: width 0.2s ease;
}
.site-header.scrolled .main-nav a:hover, .site-header.scrolled .main-nav a.active { color: var(--blue-700); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-900);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: visible;
  min-height: 660px;
  text-align: center;
  isolation: isolate;
}
section[id] { scroll-margin-top: 84px; }

/* Full-bleed background image (or CSS sky fallback if it's missing) */
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: center 38%;
  display: block;
}
.hero--empty .hero-bg img { display: none; }

/* Hero video sits on top of the still image and fades in once it's actually playing */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }

.hero-sky-fallback {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bottom) 100%);
}
.sky-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}
.cloud-layer {
  position: absolute;
  left: 0; right: 0;
  background-repeat: repeat-x;
  opacity: 0.9;
}
.clouds-back {
  top: 10%;
  height: 140px;
  background-image:
    radial-gradient(ellipse 90px 34px at 10% 50%, #fff 60%, transparent 62%),
    radial-gradient(ellipse 70px 28px at 35% 40%, #fff 60%, transparent 62%),
    radial-gradient(ellipse 110px 40px at 70% 55%, #fff 55%, transparent 62%),
    radial-gradient(ellipse 80px 30px at 92% 45%, #fff 60%, transparent 62%);
  filter: blur(1px);
}
.clouds-front {
  top: 28%;
  height: 100px;
  background-image:
    radial-gradient(ellipse 100px 32px at 20% 50%, #fff 65%, transparent 68%),
    radial-gradient(ellipse 60px 22px at 55% 45%, #fff 65%, transparent 68%),
    radial-gradient(ellipse 90px 30px at 85% 55%, #fff 60%, transparent 68%);
}

/* Soft cloud artwork so the bottom of the hero photo blends into the section below.
   A solid-color base fills in behind/underneath the cloud image so the transition
   always ends in a flat, seamless edge, whatever the viewport width. */
.hero-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: -91px;
  height: 260px;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(245, 250, 255, 0) 0%, var(--sky-bottom) 62%, #ffffff 100%);
}
.hero-fade-bottom img {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 205px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-scribble {
  position: absolute;
  z-index: 1;
  top: 41%; right: 14%;
  font-family: var(--font-script);
  color: var(--blue-800);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.55);
  line-height: 1.35;
  font-size: 1.4rem;
  transform: rotate(-12deg);
}
.hero-tagline {
  position: absolute;
  z-index: 1;
  top: auto; bottom: 21%; left: auto; right: 4%;
  font-family: var(--font-body);
  color: var(--white);
  text-shadow: 0 1px 5px rgba(11, 47, 102, 0.4);
  line-height: 1.45;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-align: left;
}
.hero-title {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-title span { color: var(--blue-600); }
.hero-title .hero-title-light { font-weight: 400; color: var(--blue-900); }
.hero-sub {
  margin: 10px auto 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.4;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.hero-actions .btn { font-weight: 400; }

.hero-illustration-note {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  text-align: left;
}
.hero-illustration-note code {
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}
.hero--empty .hero-illustration-note { display: inline-flex; }

.scroll-down {
  display: none;
}
@media (min-width: 640px) {
  .scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.8rem;
    color: var(--blue-700);
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
  }
}
.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--blue-700);
  border-radius: 12px;
  position: relative;
}
.mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--blue-700);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 16px; }
  100% { opacity: 0; top: 6px; }
}

/* ==========================================================================
   Highlights strip
   ========================================================================== */
.highlights { padding: 50px 0 25px; margin-top: -1px; }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 75px;
  text-align: center;
  margin-top: 12px;
}
.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 14px;
}
.highlight-icon svg { width: 29px; height: 29px; }
.highlight-item h2 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -1px; }
.highlight-item p { font-size: 0.9rem; letter-spacing: -1px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 40px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 3fr 4fr;
  align-items: center;
  padding-left: 50px;
}
.about-copy h2 { font-size: 2.1rem; margin-bottom: 18px; letter-spacing: -1px; }
.about-copy p { margin-bottom: 26px; max-width: 480px; }
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat:not(:last-child) {
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--blue-700);
  font-weight: 800;
}
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

.about-media { position: relative; }
.about-mockup {
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  position: relative;
  padding: 127px 0;
  z-index: -1;
  margin: -84px 0;
  background: #ffffff00 url('../images/services-bg.webp') center top / cover no-repeat;
}
.services > .container { position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  color: var(--blue-600);
  margin-bottom: 0px;
}
.service-icon svg { width: 48px; height: 48px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio { padding: 90px 0; }
.projects-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.projects-track { scrollbar-width: none; -ms-overflow-style: none; }
.projects-track::-webkit-scrollbar { display: none; }
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--border); }
.project-card h3 { display: flex; align-items: center; gap: 6px; }
/* Card with two screenshots that slowly cross-fade */
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-bottom: none;
}
.project-media--fade img:nth-child(2) {
  opacity: 0;
  animation: projectFade 8s ease-in-out infinite;
}
/* Stagger the three slideshows so they never switch at the same moment */
.project-card:nth-child(1) .project-media--fade img:nth-child(2) { animation-delay: 0s; }
.project-card:nth-child(2) .project-media--fade img:nth-child(2) { animation-delay: 2.7s; }
.project-card:nth-child(3) .project-media--fade img:nth-child(2) { animation-delay: 5.3s; }
@keyframes projectFade {
  0%, 40%   { opacity: 0; }
  50%, 90%  { opacity: 1; }
  100%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .project-media--fade img:nth-child(2) { animation: none; }
}
.project-card h3 .ext { color: var(--blue-600); opacity: 0.6; transition: transform 0.2s ease, opacity 0.2s ease; }
.project-card:hover h3 .ext { opacity: 1; transform: translate(2px, -2px); }
.project-card h3 { font-size: 1rem; padding: 16px 16px 2px; }
.project-card p { font-size: 0.85rem; padding: 0 16px 18px; }

.dots {
  display: none;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}
.dots button {
  /* invisible 24px-tall tap target; the visible dot is drawn by ::before */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border: none;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 5px;
  background: var(--border);
  transition: width 0.3s ease, background 0.3s ease;
}
.dots button.active::before { background: var(--blue-600); width: 22px; }

/* ==========================================================================
   Process
   ========================================================================== */
.scenic-section {
  position: relative;
  background: url('../images/bottom-bg.webp') center top / cover no-repeat;
}
.process { padding: 50px 0; }
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.process-step { text-align: center; width: 190px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; }
.step-arrow { color: var(--blue-300, #93c5fd); margin-top: 22px; flex-shrink: 0; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 50px 0; }
.testimonials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.testimonials-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
  max-width: 900px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.testimonials-track.sliding-next { transform: translateX(-24px); opacity: 0; }
.testimonials-track.sliding-prev { transform: translateX(24px); opacity: 0; }
.testimonials-track.sliding-in { transform: translateX(0); opacity: 1; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.testimonial-card--side { opacity: 0.5; transform: scale(0.85); max-width: 220px; display: block; }
.testimonial-card--main {
  box-shadow: var(--shadow-lg);
  flex: 1;
  max-width: 460px;
  padding: 36px 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}
.testimonial-card p { font-size: 0.95rem; margin-bottom: 14px; }
.testimonial-card strong { display: block; color: var(--blue-900); font-size: 0.92rem; }
.testimonial-card--main span { font-size: 0.8rem; color: var(--ink-soft); }
.t-stars { color: #f5b323; margin-top: 8px; font-size: 1.3rem; letter-spacing: 2px; }

.t-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.t-arrow:hover { background: var(--blue-600); color: var(--white); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: 50px 0px 225px;
  text-align: center;
  overflow: hidden;
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.cta-inner p { max-width: 480px; margin: 0 auto 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #edf7fd url('../images/footer-bottom-bg.png') center bottom / 100% auto no-repeat;
  color: var(--ink-soft);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand img { height: 34px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.88rem; }
.footer-brand p.footer-tagline { color: var(--blue-400); margin-top: 20px; }
.footer-col h3 {
  color: var(--blue-900);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--blue-600); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.88rem; }
.footer-contact svg { flex-shrink: 0; color: var(--blue-600); }
.social-icons { display: flex; gap: 10px; margin-top: 20px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icons a:hover { background: var(--blue-700); color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px 24px 22px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.heart { color: #ef4444; }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--blue-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero { min-height: 580px; }
  .hero-inner { padding-top: 115px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; padding-left: 24px; }
  .hero-bg img { object-fit: cover; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-scribble, .hero-tagline { display: none; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px rgba(16, 44, 94, 0.1);
    padding: 20px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 90;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .main-nav a { color: var(--ink); }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo-tagline { display: none; }

  .testimonial-card--main { max-width: 100%; }
  .testimonial-card--side { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: 420px; }
  .hero-inner { padding-top: 125px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-track { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat:not(:last-child) { padding-right: 12px; }
  .stat strong { font-size: 1.5rem; }
  .hero-sub br { display: none; }
  .hero-bg img { object-position: 18% 38%; }
  .hero-video { object-position: 3% 38%; }  /* keep the person on the cliff in frame */
  .testimonials-row { gap: 10px; }
  .testimonial-card--main { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Paper plane — flies down a dashed path as you scroll (built in script.js)
   ========================================================================== */
.plane-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
}
/* The dashed trail is clipped to everything above the plane, so it "draws" behind it */
.plane-trail-clip {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
}
.plane-trail-clip svg { display: block; }
.plane-loop-svg {
  position: absolute;
  top: 0; left: 0;
  display: block;
  transition: opacity 0.4s ease;
}
.plane-loop-svg.fade { opacity: 0; }
.plane-trail {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
  opacity: 0.7;
}
.paper-plane {
  position: absolute;
  top: 0; left: 0;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(16, 44, 94, 0.2));
}
.paper-plane svg { display: block; width: 100%; height: 100%; }

@media (max-width: 640px) {
  .paper-plane { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .plane-trail { stroke-width: 1.2; stroke-dasharray: 5 8; }
}
@media (prefers-reduced-motion: reduce) {
  .plane-layer { display: none; }
}

/* ==========================================================================
   Scroll reveal (classes added by script.js, so content stays visible without JS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.stat strong { font-variant-numeric: tabular-nums; }

/* ---------- Testimonials: dots, swipe, clickable side cards ---------- */
.testimonials-track { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.testimonial-card--side { cursor: pointer; }
.testimonial-card--side:hover { opacity: 0.7; }
.t-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 26px;
}
.t-dots button {
  background: none;
  border: none;
  padding: 8px 8px;       /* 24px tap target around the visible dot */
  cursor: pointer;
}
.t-dots button span {
  position: relative;
  display: block;
  width: 8px; height: 8px;
  border-radius: 5px;
  background: rgba(56, 118, 255, 0.25);
  overflow: hidden;
  transition: width 0.3s ease;
}
.t-dots button.active span { width: 30px; }
.t-dots button.active span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-600);
  transform-origin: left center;
}
.t-dots.autoplay button.active span::after { animation: tDotFill 5s linear forwards; }
.t-dots.autoplay.paused button.active span::after { animation-play-state: paused; }
@keyframes tDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .t-dots button.active span::after { animation: none; }
}

/* ==========================================================================
   Contact form (CTA section)
   ========================================================================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cf-field span { font-size: 0.82rem; font-weight: 600; color: var(--blue-900); }
.cf-field em { color: #ef4444; font-style: normal; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%234b5c78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cf-field ::placeholder { color: #9aa8bd; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(56, 118, 255, 0.18);
}
.cf-field.invalid input,
.cf-field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.cf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { width: 100%; justify-content: center; padding: 13px 24px; font-size: 0.95rem; }
.cf-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.cf-status { margin: 12px 0 0; min-height: 1.4em; text-align: center; font-size: 0.88rem; }
.cf-status.ok { color: #15803d; }
.cf-status.err { color: #dc2626; }
.cta-inner .cf-alt { margin: 18px auto 0; font-size: 0.85rem; color: var(--blue-900); text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9); }
.cf-alt a {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 500;
  text-shadow: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.cf-alt a:hover { background: var(--blue-50); color: var(--blue-600); }
.contact-form.sent .cf-row,
.contact-form.sent .cf-field,
.contact-form.sent .cf-submit { display: none; }
.contact-form.sent .cf-status { font-size: 1rem; margin: 0; padding: 24px 8px; }

@media (max-width: 640px) {
  .contact-form { padding: 20px 16px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
}
