.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr;      /* logo tight, menu fills */
    grid-template-areas: "logo-section menu-section";
    align-items: center;                  /* vertical center for grid items */
    justify-items: start;                 /* left in each cell */
    gap: 12px;
    padding-left: 64px;
    padding-right: 64px;
  }

.logo-section { grid-area: logo-section;  color: var(--gray-900); font-weight: 900; font-size: 2rem;}
.logo-section a {
    color: var(--gray-900);
    text-decoration: none;
}

.menu-section {
    grid-area: menu-section;
    justify-self: end;
    align-self: center;
    display: flex;
    gap: 24px;              /* << space between nav items */
    white-space: nowrap;    /* keep them on one line */
  }
  
  .menu-section a { text-decoration: none; padding: 4px 6px; color: var(--gray-900); }

  .menu-mobile-section { display: none; }

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100%;
    grid-template-areas: "problem-statement solution-statement";
    min-height: 90vh;
    color: var(--gray-200);
    border-style: solid;
    border-width: 1px;
    border-color: transparent;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.problem-statement { grid-area: problem-statement;
    background: var(--gray-900);
    padding-left: 64px;
    /* padding-right: 8px; */
    font-size: 3rem;
    line-height: 7.25rem;
}

.solution-statement { grid-area: solution-statement;
     background: var(--gray-850);
     padding-top: 64px;
     padding-right: 64px;
     padding-left: 24px;
     font-size: 2rem;
     font-weight: 100;
     }

.solution-statement ul {
    list-style: none;
}

.solution-statement li {
    margin-bottom: 4rem;
}


.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100%;
    grid-template-areas: "right-section left-section";
    min-height: 100vh;
    color: white;
    border-style: solid;
    border-width: 1px;
    border-color: transparent;
}

.right-section { 
    grid-area: left-section;
    background: var(--gray-850);
    padding-top: 64px;
    padding-right: 64px;
    padding-left: 24px;
    font-size: 2rem;
    font-weight: 100;
    list-style: none;
}

.right-section ul {
    list-style: none;
}

.right-section li {
    margin-bottom: 4rem;
}

.left-section { 
    grid-area: right-section;
    background: var(--gray-900);
    padding-left: 64px;
    /* padding-right: 8px; */
    font-size: 3rem;
    line-height: 7.25rem;
}

.overview-summary {
    display: flex;
    flex-direction: column;   /* ← stack children */
    justify-content: center;
    align-items: center;
    text-align: center;       /* center the text */
    gap: 1rem;                /* space between h1 and h2 */
    min-height: 100vh;
    width: 100%;
    padding: 128px;
    border: 1px solid transparent;
    color: var(--gray-300);
  }
  
  /* optional: keep lines a comfortable width */
  .overview-summary > * {
    max-width: 70ch;
  }
  

  /* prevent CSS transitions from interfering */
.left-section, .right-section, .content-section {
    transition: none !important;
  }
  

.contact-section {
    min-height: 100vh;
    width: 100%;
    border-style: solid;
    border-width: 1px;
    border-color: transparent;
}

.terms-section {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  grid-template-rows: 100%;
  grid-template-areas: "terms-l terms-main terms-r";
  min-height: 100vh;
}

.terms-main { grid-area: terms-main; color: var(--gray-300); }
.terms-main a {
  color: var(--accent-2);
  text-decoration: none;
}

.terms-l { grid-area: terms-l; }
.terms-r { grid-area: terms-r; }

/* --- Keep desktop (MacBook Pro) sizes; only shrink below breakpoints --- */

/* 1500px and down: nudge paddings so the split breathes */
@media (max-width: 1500px) {
    .problem-statement  { padding-left: 56px; }
    .solution-statement { padding-right: 56px; }
  }
  
  /* 1200px and down: slightly smaller headline + tighter leading, less padding */
  @media (max-width: 1200px) {
    .problem-statement  { padding-left: 48px; }
    .problem-statement h1, .left-section h1 { font-size: 3.8rem; line-height: 1.5; }
    .solution-statement, .right-section { padding-right: 48px; line-height: 1.5; }
  }
  
  /* 1024px and down (tablet landscape): reduce a bit more */
  @media (max-width: 1024px) {
    .problem-statement h1, .left-section h1 { font-size: 3.4rem; }
    .solution-statement, .right-section   { font-size: 1.6rem; line-height: 1.5; }
  }
  
  /* 900px and down: keep columns but tighten spacing */
  @media (max-width: 900px) {
    .problem-statement  { padding-left: 36px; }
    .solution-statement { padding-right: 36px; }
    .solution-statement li, .right-section li { margin-bottom: 1.5rem; }
  }
  
  /* 768px and down (tablet portrait): last step before stacking */
  @media (max-width: 768px) {
    .problem-statement  { padding-left: 24px; }
    .solution-statement { padding: 36px 24px 0 20px; }
    .problem-statement h1 { font-size: 2.1rem; }
    .solution-statement   { font-size: 1.4rem; }
  }
  
  /* 640px and down: stack to one column so nothing collides */
  @media (max-width: 640px) {
    .hero-layout {
      grid-template-columns: 1fr;
      grid-template-areas:
        "problem-statement"
        "solution-statement";
      height: auto; /* let content grow */
    }
    .problem-statement  { padding: 28px 20px 0 20px; }
    .solution-statement { padding: 20px; }
    .problem-statement h1 { font-size: 1.9rem; }
    .solution-statement   { font-size: 1.25rem; }
    .solution-statement li { margin-bottom: 1rem; }
  }
  

  /* Mobile overlay styles for hero (<=640px) */
  @media (max-width: 640px) {

    .logo-section {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
    }
    .hero-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;               /* two rows */
        grid-template-areas:
          "problem-statement"
          "solution-statement";
        height: auto;                                 /* let content size itself */
        overflow: visible;
        position: static;
        gap: 16px;                                    /* optional spacing between rows */
      }
    
      .problem-statement {
        grid-area: problem-statement;
        position: static;                             /* reset any layering */
        z-index: auto;
        padding: 28px 20px 0 20px;
        height: auto;                                 /* undo fixed heights */
        line-height: 1.4;
      }
      .problem-statement h1 {
        font-size: 2.8rem;
      }
    
      .solution-statement {
        grid-area: solution-statement;
        position: static;                             /* <-- critical: no absolute overlay */
        inset: auto;                                  /* reset from any previous 'inset:0' */
        z-index: auto;
        transform: none !important;                   /* kill slide-in transforms */
        will-change: auto;
        padding: 20px;
        height: auto;
      }
    
      /* Optional: hide the desktop menu on mobile */
      .menu-section { display: none; }
      .menu-mobile-section{
        position: absolute;                           /* pin to the right edge */
        top: 50%;
        right: 16px;                                  /* tweak as you like */
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 12px;
    
        /* these kill the shifting */
        width: auto;                                  /* don't stretch */
        justify-content: flex-end;                    /* harmless now */
        z-index: 1300;                                /* over content inside header */
      }
      

      .content-section {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;                 /* two rows */
        grid-template-areas:
          "left-section"
          "right-section";
        height: auto;                                   /* let content grow */
        overflow: visible;
        position: static;
        gap: 16px;                                      /* optional spacing */
        border-color: transparent;                      /* keep your border logic clean */
      }
    
      .right-section {
        grid-area: right-section;
        position: static;
        z-index: auto;
        transform: none !important;                     /* kill any GSAP/inline transforms */
        opacity: 1 !important;
        will-change: auto;
        padding: 20px;                                  /* comfy mobile padding */
        font-size: 1.25rem;
        line-height: 1.5;
      }
    
      .left-section {
        grid-area: left-section;
        position: static;
        z-index: auto;
        transform: none !important;
        opacity: 1 !important;
        will-change: auto;
        padding: 20px;
        font-size: 1.8rem;                              /* adjust if needed */
        line-height: 1.4;
      }

      .overview-summary {
        padding: 8px;
      }
      .overview-summary h1 {
        font-size: 1.5rem;
      }

      .overview-summary h2 {
        font-size: 1.25rem;
      }
      
  }
  