/* ============================================================
   QUANIMOUS — Main Stylesheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --cream:          #FAF9F6;
  --cream-soft:     #F2EFE8;
  --accent:         #4a5d73;
  --accent-hover:   #3d4f63;
  --accent-light:   rgba(74, 93, 115, 0.1);
  --text:           #1c1c1e;
  --text-secondary: #6e6e73;
  --text-muted:     #aeaeb2;
  --white:          #ffffff;
  --border:         rgba(74, 93, 115, 0.12);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;

  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.1);

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  --nav-h:  68px;
}

/* ── Custom Cursor ── */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    will-change: transform;
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transition: opacity 0.3s, background 0.2s;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(74, 93, 115, 0.45);
    transition: opacity 0.3s,
                border-color 0.35s var(--ease),
                background   0.35s var(--ease);
  }

  .cursor-ring.is-hover {
    border-color: rgba(74, 93, 115, 0.9);
    background: rgba(74, 93, 115, 0.07);
  }

  .cursor-ring.is-click {
    border-color: var(--accent);
    background: rgba(74, 93, 115, 0.12);
  }

  /* Dot turns white over the dark CTA section */
  .cursor-dot.is-dark { background: #fff; }
  .cursor-ring.is-dark { border-color: rgba(255,255,255,0.55); }
  .cursor-ring.is-dark.is-hover { border-color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.08); }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; }
ul     { list-style: none; }


/* ── Layout ── */
.container {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow {
  width: min(100%, 740px);
  margin: 0 auto;
  padding: 0 28px;
}


/* ── Typography helpers ── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  font-size: 15px;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74, 93, 115, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 13px 28px;
  font-size: 15px;
  border: 1.5px solid rgba(74, 93, 115, 0.25);
}
.btn--ghost:hover {
  background: var(--accent-light);
  border-color: transparent;
}

.btn--white {
  background: var(--white);
  color: var(--accent);
  padding: 14px 28px;
  font-size: 15px;
}
.btn--white:hover {
  background: #f0ede8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.btn--lg  { padding: 16px 36px; font-size: 16px; }
.btn--sm  { padding: 10px 22px; font-size: 14px; }
.btn--full { width: 100%; padding: 18px; font-size: 16px; }


/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo__mark {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

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

.nav__phone {
  margin-left: auto;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: opacity var(--transition);
}
.nav__phone:hover { opacity: 0.7; }

.nav__cta {}


/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 28px 100px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(74, 93, 115, 0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__h1 {
  font-size: clamp(54px, 8.5vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 26px;
}
.hero__h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.65;
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 0.9;  transform: scaleY(1);   transform-origin: top; }
}


/* ═══════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════ */
.stats-strip {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat__num {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__unit {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--accent);
  margin-left: 2px;
  letter-spacing: 0;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   SECTIONS — Shared
═══════════════════════════════════════════════ */
.section { padding: 128px 0; }
.section--soft { background: var(--cream-soft); }

.section__header {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__h2 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--text);
}

.section__body {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.68;
}


/* ═══════════════════════════════════════════════
   HOW IT WORKS — Steps
═══════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step__num {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(74, 93, 115, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.step__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.step__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════
   TESTIMONIALS TICKER
═══════════════════════════════════════════════ */
.ticker-section { overflow: hidden; }
.ticker-section .section__header { padding-bottom: 0; margin-bottom: 56px; }

.ticker-wrap {
  overflow: hidden;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  user-select: none;
}

.ticker-wrap {
  cursor: grab;
}
.ticker-wrap.dragging {
  cursor: grabbing;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 380px;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow-md); }

.testimonial__quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--accent-light);
  color: rgba(74, 93, 115, 0.18);
  user-select: none;
}

.testimonial__quote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial__biz {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 52px 48px;
  border: 1px solid var(--border);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.pricing-card__top {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.pricing-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.pricing-card__price {
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.price__dollar {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-right: 3px;
}

.price__per {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  align-self: flex-end;
  margin-bottom: 10px;
  margin-left: 3px;
}

.pricing-card__tagline {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.pricing-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}


/* ═══════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-item__q:hover { color: var(--accent); }

.faq-item__q svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-item__q { color: var(--accent); }
.faq-item.open .faq-item__q svg { transform: rotate(180deg); color: var(--accent); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-item__a { grid-template-rows: 1fr; }

.faq-item__a > div { overflow: hidden; }

.faq-item__a p {
  padding-bottom: 22px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
}


/* ═══════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════ */
.cta-section {
  background: var(--accent);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

.cta__h2 {
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.04;
}

.cta__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
  line-height: 1.68;
}

.cta__note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 93, 115, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-submit { margin-top: 4px; }

.form-notice {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
  transition: color 0.2s;
}

.form-notice--success { color: #2d7a4f; font-weight: 500; }
.form-notice--error   { color: #b94040; font-weight: 500; }

.contact-details {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.contact-detail:hover { color: var(--accent); }
.contact-detail svg   { flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: #1a1a1e;
  padding: 52px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__logo .logo__mark {
  height: 32px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.24);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  text-align: center;
}


/* ═══════════════════════════════════════════════
   OUR WORK GRID
═══════════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card__chrome {
  background: var(--cream-soft);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.work-card__dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.work-card__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

.work-card__url {
  flex: 1;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.work-card__screen {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.work-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
  display: block;
}

.work-card:hover .work-card__screen img {
  transform: scale(1.04);
}

.work-card__info {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.work-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.work-card__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}

.work-card__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.work-card:hover .work-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}


/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Large mobile / small tablet (≤ 860px)
═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .section { padding: 96px 0; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }

  .section__h2 { font-size: clamp(34px, 7vw, 52px); }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Globals */
  .section { padding: 80px 0; }
  .section__header { margin-bottom: 52px; }

  /* Work grid */
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .section__body { font-size: 16px; }

  /* Stats */
  .stats-strip { padding: 52px 0; }
  .stats-grid { flex-wrap: wrap; gap: 40px 0; }
  .stat { flex: 0 0 50%; padding: 0 16px; }
  .stat-divider { display: none; } /* all dividers hidden at 2-col, use wrapping instead */

  /* Features */
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature-card { padding: 24px 20px; }

  /* Ticker cards */
  .testimonial { width: 300px; padding: 30px 26px; gap: 24px; }

  /* Pricing */
  .pricing-card { padding: 36px 28px 32px; }
  .pricing-card__price { font-size: 72px; }

  /* FAQ */
  .faq-item__q { font-size: 15px; padding: 18px 0; }

  /* CTA */
  .cta-section { padding: 88px 0; }
  .cta__sub { font-size: 16px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding-bottom: 80px; }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 540px)
═══════════════════════════════════════════════ */
@media (max-width: 540px) {
  /* Nav */
  .nav__phone { display: none; }
  .nav__cta { padding: 9px 18px; font-size: 13px; margin-left: auto; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 60px; }
  .hero__h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero__sub { font-size: 16px; }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__ctas .btn { text-align: center; }
  .hero__scroll-hint { display: none; }

  /* Stats */
  .stat { flex: 0 0 100%; }
  .stat-divider { display: none; }
  .stat__num { font-size: 44px; }

  /* Steps */
  .step__num { font-size: 64px; }

  /* Features — single col on small phones */
  .features-grid { grid-template-columns: 1fr; }

  /* Ticker */
  .testimonial { width: 280px; padding: 28px 22px; }
  .ticker-track { gap: 16px; }

  /* Pricing */
  .pricing-card { padding: 28px 20px 24px; }
  .pricing-card__price { font-size: 60px; }

  /* CTA */
  .cta-section { padding: 72px 0; }
  .cta__h2 { font-size: clamp(36px, 10vw, 52px); }
  .btn--white { width: 100%; }

  /* Form */
  .form-input { font-size: 16px; } /* prevent iOS zoom on focus */

  /* Footer */
  .footer { padding: 44px 0 32px; }
  .footer__nav { gap: 8px 20px; }
}


/* ═══════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader__logo {
  width: 72px;
  height: auto;
}

/* line draws via GSAP (circle dasharray/offset set in HTML) */
.loader-line {
  stroke-dasharray: 118;
  stroke-dashoffset: 118;
}


/* ═══════════════════════════════════════════════
   HERO CANVAS
═══════════════════════════════════════════════ */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   SPLIT-LINE TEXT REVEAL
═══════════════════════════════════════════════ */
.split-line {
  display: block;
  overflow: hidden;
  line-height: 1.1;
}

.split-line__inner {
  display: block;
}


/* ═══════════════════════════════════════════════
   STEPS LAYOUT (two-column split)
═══════════════════════════════════════════════ */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Override old 3-column grid inside the new layout */
.steps-layout .steps {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.steps-layout .steps::before {
  display: none;
}

.steps-visual {
  position: relative;
}

.steps-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.steps-img-wrap .parallax-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
}

.steps-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.steps-img-badge__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.steps-img-badge__val {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.steps-img-badge__label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}


/* ═══════════════════════════════════════════════
   SHOWCASE  (full-bleed cinematic section)
═══════════════════════════════════════════════ */
.showcase {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.showcase__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.showcase__bg-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center top;
}

.showcase__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 18, 28, 0.80) 0%,
    rgba(30, 42, 56, 0.65) 60%,
    rgba(10, 18, 28, 0.58) 100%
  );
}

.showcase__content {
  position: relative;
  z-index: 2;
  padding: 120px 28px;
}

.showcase__eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.showcase__h2 {
  font-size: clamp(52px, 8.5vw, 104px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
  margin: 20px 0 60px;
}

.showcase__stats {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.showcase__stat-num {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.showcase__stat-unit {
  font-size: 0.46em;
  font-weight: 500;
}

.showcase__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.showcase__stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   PARALLAX WRAPPER
═══════════════════════════════════════════════ */
.parallax-wrap { overflow: hidden; }
.parallax-img  { will-change: transform; }


/* ═══════════════════════════════════════════════
   CARD 3D TILT
═══════════════════════════════════════════════ */
.feature-card { transform-style: preserve-3d; }


/* ═══════════════════════════════════════════════
   CURSOR TRAIL DOTS
═══════════════════════════════════════════════ */
@media (pointer: fine) {
  .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    will-change: transform, opacity;
  }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — new cinematic elements
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .steps-layout { gap: 56px; }
}

@media (max-width: 860px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .steps-visual { max-width: 520px; margin: 0 auto; }

  .showcase__content { padding: 80px 28px; }
  .showcase__stats   { gap: 32px; }
}

@media (max-width: 540px) {
  .steps-img-badge  { display: none; }
  .showcase__h2     { font-size: clamp(38px, 11vw, 56px); }
  .showcase__stats  { gap: 24px; }
  .showcase__stat-divider { display: none; }
}
