/* Homepage hero on phones and tablets only (index.html,
   .page-container.hc, up to 980px). Same words and links as on desktop;
   only the look changes: the office photograph full-bleed behind a deep
   green shade, a small eyebrow, a two-weight headline (light line, bold
   line), pill buttons and a small founder line, with the copy at the
   bottom like an app's opening screen. The header floats over it there
   (<header data-float-over="mobile">, site-nav.js). Wider screens keep
   the original hero exactly as it was. Loaded after the page's own
   <style>, so these rules win. */

/* Desktop: the original hero. The headline's two lines keep their break. */
.hc .hc-l1 { display: block; }
.hc-media, .hc-shade, .hc-proof, .hc .hc-short { display: none; }

@media (max-width: 980px) {
  .page-container.hc {
    --hc-ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* No isolation here: the site header lives inside this element and must
       stay above the sections that follow it. */
    position: relative; overflow: hidden; height: auto !important;
    min-height: calc(100vh - 2 * var(--frame, 24px) - 4px); min-height: calc(100svh - 2 * var(--frame, 24px) - 4px);
    background: #08150E;
  }
  /* What the old layout used, out of the way */
  .hc .bg-grid-lines, .hc .right-panel-wrapper, .hc .right-arc-svg, .hc .mobile-hero-image, .hc .accent-divider { display: none !important; }

  .hc-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hc-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
    transform: scale(1.14); animation: hc-push 2.6s var(--hc-ease) both, hc-drift 30s ease-in-out 2.6s infinite alternate;
  }
  @keyframes hc-push { from { transform: scale(1.14); opacity: 0; } to { transform: scale(1.04); opacity: 1; } }
  @keyframes hc-drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.2%); } }
  .hc-shade {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(6, 15, 10, 0.94) 0%, rgba(6, 15, 10, 0.82) 38%, rgba(6, 15, 10, 0.45) 68%, rgba(6, 15, 10, 0.25) 100%),
      linear-gradient(0deg, rgba(6, 15, 10, 0.85) 0%, rgba(6, 15, 10, 0) 40%),
      linear-gradient(180deg, rgba(6, 15, 10, 0.55) 0%, rgba(6, 15, 10, 0) 25%);
  }

  .hc .left-panel {
    position: relative; z-index: 2;
    width: 100%; max-width: 1180px; min-height: inherit; justify-content: center;
    padding: clamp(8.5rem, 19vh, 10.5rem) 6% clamp(5rem, 10vh, 6.5rem);
  }
  .hc .interactive-content { max-width: 900px; }

  .hc .tagline {
    display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1.6rem;
    font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
    color: rgba(250, 249, 246, 0.7);
  }
  .hc .tagline::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }

  .hc .heading {
    font-family: 'Montserrat', sans-serif; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em;
    color: #FBF8F2; margin: 0 0 1.8rem;
  }
  .hc .heading em { font-family: inherit; font-style: normal; font-weight: inherit; color: inherit; }
  .hc .hc-l1, .hc .hc-l2 { display: block; }
  .hc .hc-l1 { font-weight: 300; color: rgba(251, 248, 242, 0.62); }
  .hc .hc-l2 { font-weight: 600; color: #FFFFFF; }
  .hc .hc-l1 { animation: hc-up 1.1s var(--hc-ease) 0.35s both; }
  .hc .hc-l2 { animation: hc-up 1.1s var(--hc-ease) 0.5s both; }
  .hc .tagline { animation: hc-up 1s var(--hc-ease) 0.2s both; }
  .hc .description { animation: hc-up 1s var(--hc-ease) 0.7s both; }
  .hc .cta-container { animation: hc-up 1s var(--hc-ease) 0.85s both; }
  .hc .hc-proof { animation: hc-up 1s var(--hc-ease) 1s both; }
  @keyframes hc-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  .hc .description { font-size: clamp(0.95rem, 1.15vw, 1.08rem); line-height: 1.75; color: rgba(250, 249, 246, 0.72); max-width: 540px; margin-bottom: 2.4rem; }

  .hc .cta-container { gap: 0.8rem; flex-wrap: wrap; }
  .hc .cta-container .btn-consultation,
  .hc .cta-container .btn-explore {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.5rem; border-radius: 999px;
    font-family: 'Montserrat', sans-serif; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; text-transform: none;
    transition: transform 0.4s var(--hc-ease), box-shadow 0.4s var(--hc-ease), background-color 0.3s ease, border-color 0.3s ease;
  }
  .hc .cta-container .btn-consultation {
    background: linear-gradient(135deg, #8FD8B0, #6CC596); color: #0A1C12; border: 1px solid transparent;
    box-shadow: 0 14px 34px -14px rgba(108, 197, 150, 0.6);
  }
  .hc .cta-container .btn-explore {
    background: rgba(250, 249, 246, 0.08); color: #FBF8F2; border: 1px solid rgba(250, 249, 246, 0.26);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .hc .cta-container .btn-explore::after { display: none; }
  @media (hover: hover) {
    .hc .cta-container .btn-consultation:hover { background: linear-gradient(135deg, #A1E2BF, #7BD2A4); color: #0A1C12; border-color: transparent; transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(108, 197, 150, 0.7); }
    .hc .cta-container .btn-explore:hover { background: rgba(250, 249, 246, 0.16); color: #FFFFFF; border-color: rgba(250, 249, 246, 0.5); transform: translateY(-2px); }
  }
  .hc .cta-container .btn-consultation:focus-visible, .hc .cta-container .btn-explore:focus-visible { outline: 2px solid #E5C697; outline-offset: 3px; }

  .hc-proof {
    display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.8rem; align-self: flex-start;
    color: rgba(250, 249, 246, 0.7); font-family: 'Montserrat', sans-serif; font-size: 0.82rem; text-decoration: none;
  }
  .hc-proof img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid rgba(229, 198, 151, 0.5); }
  .hc-proof strong { color: #FBF8F2; font-weight: 600; }
  .hc-proof:hover strong { text-decoration: underline; text-underline-offset: 3px; }
  .hc-proof:focus-visible { outline: 2px solid #E5C697; outline-offset: 4px; border-radius: 999px; }

  .hc .scroll-explore { color: rgba(250, 249, 246, 0.6); }
  .hc .scroll-explore .scroll-text { color: rgba(250, 249, 246, 0.6); }
  .hc .scroll-explore .scroll-line { background: rgba(250, 249, 246, 0.35); }

  /* Phone and tablet layout: the photo fills the top, the copy sits at
     the bottom over a vertical shade. */
  .hc-media, .hc-shade { display: block; }
  .hc-proof { display: inline-flex; }
  .hc .hc-short { display: block; }
  .hc .hc-long { display: none; }
  .page-container.hc { height: auto; min-height: calc(100svh - 2 * var(--frame, 12px) - 4px); display: flex; }
  .hc .left-panel { width: 100%; min-height: 0; flex: 1; justify-content: flex-end; padding: 7.5rem 6% 2.2rem; }
  .hc .tagline { font-size: 0.64rem; letter-spacing: 0.16em; margin-bottom: 1.1rem; white-space: nowrap; }
  .hc .tagline::before { width: 22px; }
  .hc-media img { object-position: 58% 40%; }
  .hc-shade {
    background:
      linear-gradient(0deg, rgba(6, 15, 10, 0.97) 0%, rgba(6, 15, 10, 0.88) 45%, rgba(6, 15, 10, 0.4) 72%, rgba(6, 15, 10, 0.55) 88%, rgba(6, 15, 10, 0.78) 100%);
  }
  .hc .heading { font-size: clamp(2.05rem, 9vw, 3.6rem); margin-bottom: 1.1rem; }
  .hc .description { margin-bottom: 1.5rem; font-size: 0.88rem; line-height: 1.65; }
  .hc-proof { margin-top: 1.3rem; font-size: 0.78rem; }
  .hc .cta-container { flex-wrap: nowrap; }
  .hc .cta-container .btn-consultation, .hc .cta-container .btn-explore { flex: 0 1 auto; padding: 0.9rem 1.1rem; font-size: 0.8rem; justify-content: center; white-space: nowrap; }
}
@media (max-width: 420px) {
  .hc .cta-container { flex-wrap: wrap; }
  .hc .cta-container .btn-consultation, .hc .cta-container .btn-explore { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-media img, .hc .hc-l1, .hc .hc-l2, .hc .tagline, .hc .description, .hc .cta-container, .hc-proof { animation: none; }
  .hc-media img { transform: scale(1.04); }
}
