/* ──────────────────────────────────────────────────────────────────────────
   V2 Anvil & Ember — Mobile pass
   Overrides the inline styles in v2-ember.jsx for ≤960 and ≤640.
   !important is used deliberately because inline styles win otherwise.
   ────────────────────────────────────────────────────────────────────────── */

/* Talk-to-Brom button — pulse + hover (works at all viewports) */
.v2-brom-btn { transition: filter 0.18s, transform 0.18s, box-shadow 0.18s; }
.v2-brom-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.5) !important;
}
.v2-brom-live {
  animation: v2-brom-pulse 1.6s ease-out infinite;
}
@keyframes v2-brom-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(26, 15, 0, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(26, 15, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 15, 0, 0); }
}

/* Hamburger button is hidden on desktop */
.v2-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 220, 180, 0.16);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.v2-nav-toggle:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
}
.v2-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f5ede2;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.v2-nav-open .v2-nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.v2-nav-open .v2-nav-toggle span:nth-child(2) { opacity: 0; }
.v2-nav-open .v2-nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════ ≤960px ══════════════ */
@media (max-width: 960px) {

  /* ── Nav ── */
  .v2-nav {
    padding: 18px 24px !important;
  }
  .v2-nav-logo img { height: 30px !important; }
  .v2-nav-toggle { display: flex; }
  .v2-nav-links {
    position: fixed !important;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: rgba(12, 9, 8, 0.97);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 220, 180, 0.16);
    padding: 16px 24px 28px !important;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.32s;
    z-index: 60;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .v2-nav-open .v2-nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .v2-nav-links a {
    padding: 16px 0 !important;
    font-size: 12px !important;
    letter-spacing: 0.32em !important;
    border-bottom: 1px solid rgba(255, 220, 180, 0.08);
  }
  .v2-nav-links a.v2-nav-cta {
    margin: 14px 0 0;
    text-align: center;
    padding: 16px 22px !important;
    border: 1px solid #f59e0b !important;
    color: #f59e0b !important;
    border-radius: 999px !important;
  }

  /* ── Hero ── */
  .v2-hero {
    height: auto !important;
    min-height: 720px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .v2-hero-stage {
    position: relative !important;
    inset: auto !important;
    padding: 24px 32px 0 !important;
  }
  .v2-hero-body {
    margin-top: 24px !important;
    max-width: none !important;
  }
  .v2-hero-body h1 {
    font-size: clamp(64px, 11vw, 96px) !important;
    margin-top: 24px !important;
    margin-bottom: 22px !important;
  }
  .v2-hero-body p {
    font-size: 18px !important;
    margin-bottom: 32px !important;
  }
  .v2-hero-body > div:last-child {
    flex-wrap: wrap;
    gap: 14px !important;
  }
  .v2-hero-foot {
    position: relative !important;
    bottom: auto !important;
    left: 0 !important; right: 0 !important;
    padding: 32px;
    flex-direction: column;
    align-items: start !important;
    gap: 18px;
  }
  .v2-hero-foot > div:last-child {
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  /* ── Marquee ── */
  .v2-marquee { padding: 16px 0 !important; }
  .v2-marquee-track {
    gap: 32px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.22em !important;
  }

  /* ── Services ── */
  .v2-services { padding: 96px 32px !important; }
  .v2-services-intro {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 56px !important;
    align-items: start !important;
  }
  .v2-services-intro > div > h2 {
    font-size: clamp(56px, 10vw, 72px) !important;
  }
  .v2-services-intro > p {
    font-size: 18px !important;
    max-width: none !important;
  }
  .v2-services-grid {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
  }
  .v2-services-grid article h3 {
    font-size: 36px !important;
  }

  /* ── Process ── */
  .v2-process { padding: 96px 32px !important; }
  .v2-process > div > div:first-child {
    margin-bottom: 64px !important;
  }
  .v2-process > div > div:first-child h2 {
    font-size: clamp(56px, 11vw, 80px) !important;
  }
  .v2-process > div > div:first-child p {
    font-size: 17px !important;
  }
  .v2-process-stages {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 24px !important;
  }
  .v2-process-line { display: none; }

  /* ── Pullquote ── */
  .v2-pullquote { padding: 96px 32px !important; }
  .v2-pullquote blockquote {
    font-size: clamp(28px, 5.6vw, 40px) !important;
    line-height: 1.2 !important;
  }

  /* ── Testimonials ── */
  .v2-testimonials { padding: 96px 32px !important; }
  .v2-testimonials > div:first-child {
    margin-bottom: 56px !important;
  }
  .v2-testimonials > div:first-child h2 {
    font-size: clamp(48px, 10vw, 64px) !important;
  }
  .v2-testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .v2-testimonials-grid figure {
    padding: 32px !important;
  }

  /* ── Pricing ── */
  .v2-pricing { padding: 96px 32px !important; }
  .v2-pricing > div:first-child {
    margin-bottom: 56px !important;
  }
  .v2-pricing > div:first-child h2 {
    font-size: clamp(48px, 10vw, 64px) !important;
  }
  .v2-pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .v2-pricing-grid > div { padding: 32px !important; }

  /* ── FAQ ── */
  .v2-faq { padding: 96px 32px !important; }
  .v2-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .v2-faq-grid > div:first-child h2 {
    font-size: clamp(48px, 10vw, 64px) !important;
  }
  .v2-faq-grid > div:last-child > div > div span {
    font-size: 20px !important;
  }
  .v2-faq-brom {
    flex-direction: column !important;
    align-items: start !important;
  }
  .v2-process-brom {
    margin-top: 56px !important;
  }
  .v2-pricing-helga {
    margin-top: 56px !important;
  }
  .v2-services-ragnor {
    margin-top: 56px !important;
  }

  /* ── Journal ── */
  .v2-journal { padding: 96px 32px !important; }
  .v2-journal-head {
    flex-direction: column;
    align-items: start !important;
    gap: 24px;
  }
  .v2-journal-head > div h2 {
    font-size: clamp(48px, 10vw, 64px) !important;
  }
  .v2-journal-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* ── CTA ── */
  .v2-cta { padding: 112px 32px !important; }
  .v2-cta h2 {
    font-size: clamp(56px, 12vw, 96px) !important;
  }
  .v2-cta p {
    font-size: 17px !important;
  }
  .v2-cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ── Footer ── */
  .v2-footer { padding: 56px 32px 28px !important; }
  .v2-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
  }
  .v2-footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .v2-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: left;
  }
}

/* ══════════════ ≤640px ══════════════ */
@media (max-width: 640px) {

  /* ── Nav ── */
  .v2-nav { padding: 14px 20px !important; }
  .v2-nav-links { top: 64px; padding: 14px 20px 24px !important; }

  /* ── Hero ── */
  .v2-hero {
    min-height: 0;
    padding-top: 84px;
    padding-bottom: 72px;
  }
  .v2-hero-stage { padding: 16px 20px 0 !important; }
  .v2-hero-body h1 { font-size: clamp(48px, 13vw, 72px) !important; }
  .v2-hero-body p { font-size: 16.5px !important; }
  .v2-hero-body > div:last-child a:first-child {
    padding: 16px 24px !important;
    font-size: 13px !important;
  }
  .v2-hero-foot { padding: 24px 20px; font-size: 9px !important; }
  .v2-hero-foot > div:first-child { font-size: 9px !important; }

  /* ── Marquee ── */
  .v2-marquee-track { gap: 24px !important; font-size: 10.5px !important; }

  /* ── Services ── */
  .v2-services { padding: 72px 20px !important; }
  .v2-services-intro > div > h2 { font-size: clamp(44px, 12vw, 56px) !important; }
  .v2-services-intro > p { font-size: 16.5px !important; }
  .v2-services-grid { gap: 48px !important; }
  .v2-services-grid article { padding-top: 28px !important; }
  .v2-services-grid article h3 { font-size: 30px !important; }
  .v2-services-grid article p { font-size: 16px !important; }

  /* ── Process ── */
  .v2-process { padding: 72px 20px !important; }
  .v2-process > div > div:first-child h2 { font-size: clamp(44px, 13vw, 64px) !important; }
  .v2-process-stages {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .v2-process-stages > div { text-align: left !important; padding: 0 !important; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
  .v2-process-stages > div > div:first-child { margin: 0 !important; width: 96px !important; height: 96px !important; }
  .v2-process-stages > div > div:first-child > span:first-child { font-size: 34px !important; }
  .v2-process-stages > div h3 { margin-bottom: 6px !important; font-size: 26px !important; }
  .v2-process-stages > div p { max-width: none !important; margin: 0 !important; font-size: 14.5px !important; }

  /* ── Pullquote ── */
  .v2-pullquote { padding: 72px 20px !important; }
  .v2-pullquote blockquote { font-size: clamp(24px, 6vw, 32px) !important; }

  /* ── Testimonials ── */
  .v2-testimonials { padding: 72px 20px !important; }
  .v2-testimonials > div:first-child h2 { font-size: clamp(40px, 12vw, 52px) !important; }
  .v2-testimonials-grid figure { padding: 28px 24px !important; }
  .v2-testimonials-grid figure blockquote { font-size: 16.5px !important; }

  /* ── Pricing ── */
  .v2-pricing { padding: 72px 20px !important; }
  .v2-pricing > div:first-child h2 { font-size: clamp(40px, 12vw, 52px) !important; }
  .v2-pricing-grid > div { padding: 28px 24px !important; }
  .v2-pricing-grid > div h3 { font-size: 44px !important; }

  /* ── FAQ ── */
  .v2-faq { padding: 72px 20px !important; }
  .v2-faq-grid > div:first-child h2 { font-size: clamp(44px, 12vw, 60px) !important; }
  .v2-faq-grid > div:last-child > div > div span { font-size: 17.5px !important; line-height: 1.25; }
  .v2-faq-grid > div:last-child > div p { font-size: 15.5px !important; }

  /* ── Journal ── */
  .v2-journal { padding: 72px 20px !important; }
  .v2-journal-head > div h2 { font-size: clamp(40px, 12vw, 52px) !important; }
  .v2-journal-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .v2-journal-grid h3 { font-size: 22px !important; max-width: none !important; }

  /* ── CTA ── */
  .v2-cta { padding: 96px 20px !important; }
  .v2-cta h2 { font-size: clamp(48px, 14vw, 72px) !important; margin-bottom: 22px !important; }
  .v2-cta p { font-size: 16.5px !important; margin-bottom: 36px !important; }
  .v2-cta-actions { flex-direction: column; gap: 16px !important; }

  /* ── Footer ── */
  .v2-footer { padding: 48px 20px 24px !important; }
  .v2-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .v2-footer-grid > div:first-child { grid-column: auto; }
  .v2-footer-bottom { font-size: 9px !important; }
}
