/*
 * THEGROWNS — ABOUT US MOBILE V2
 * Phone-only overrides.
 * Desktop design remains unchanged.
 */

@media screen and (max-width: 767px) {

  /* Keep the existing approved hero photograph. */
  body .tg-about-v1 .tg-about-hero {
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Clean, restrained typography. */
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(36px, 9.2vw, 54px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    font-weight: 850 !important;
    max-width: 100% !important;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  body .tg-about-v1 .tg-about-hero h1 span {
    display: inline-block;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* Supporting copy: give each thought room to breathe. */
  body .tg-about-v1 .tg-about-hero p {
    line-height: 1.55 !important;
  }

  /* Make the main action comfortable on a phone. */
  body .tg-about-v1 .tg-about-hero a {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Remove the floating holographic emblem on mobile. */
  body .tg-about-v1 .tg-about-story
  .tg-story-hologram-v3 {
    display: none !important;
    visibility: hidden !important;
  }

  /* Ensure the story text sits above decorative effects. */
  body .tg-about-v1 .tg-about-story h2,
  body .tg-about-v1 .tg-about-story p {
    position: relative;
    z-index: 2;
  }

  /* Prevent decorative image overflow on narrow phones. */
  body .tg-about-v1 .tg-about-story {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Smaller iPhones */
@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(33px, 8.7vw, 40px) !important;
  }
}

/* ==========================================
   THEGROWNS — ABOUT MOBILE V3
   Dedicated mobile image and spacious layout
   ========================================== */

@media screen and (max-width: 767px) {

  /* Dedicated portrait image — desktop unaffected */
  body .tg-about-v1 .tg-about-hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(13, 8, 20, .10) 0%,
        rgba(13, 8, 20, .24) 48%,
        rgba(13, 8, 20, .40) 100%
      ),
      url("../images/about/tg-about-mobile-hero-v3.png") !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 760px;
    min-height: max(760px, 100svh);
    box-sizing: border-box;
  }

  /* Headline: clear hierarchy without crowding */
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(34px, 8.7vw, 46px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    margin-bottom: 36px !important;
  }

  /* Refined gradient second line */
  body .tg-about-v1 .tg-about-hero h1 span {
    line-height: 1.12 !important;
  }

  /* Supporting copy */
  body .tg-about-v1 .tg-about-hero p {
    line-height: 1.7 !important;
  }

  /* Allow separation between hero content blocks */
  body .tg-about-v1 .tg-about-hero h1 + * {
    margin-top: 28px;
  }

  /* Button spacing and touch comfort */
  body .tg-about-v1 .tg-about-hero a {
    min-height: 56px;
  }

  /* Keep hologram off the mobile story section */
  body .tg-about-v1 .tg-about-story
  .tg-story-hologram-v3 {
    display: none !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(32px, 8.5vw, 39px) !important;
  }
}


/* =============================================
   THEGROWNS ABOUT MOBILE V4
   SPACING / BREATHING ROOM ONLY
   ============================================= */

@media screen and (max-width: 767px) {

  /* Keep the mobile hero visually spacious. */
  body .tg-about-v1 .tg-about-hero {
    min-height: max(820px, 108svh) !important;
  }

  /* Space below the main headline. */
  body .tg-about-v1 .tg-about-hero h1 {
    margin-top: 26px !important;
    margin-bottom: 48px !important;
  }

  /* More room between individual statements. */
  body .tg-about-v1 .tg-about-hero p {
    line-height: 1.85 !important;
  }

  /* Add breathing room to the message panel. */
  body .tg-about-v1 .tg-about-hero
  [class*="message"],
  body .tg-about-v1 .tg-about-hero
  [class*="statement"] {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* More separation before the CTA. */
  body .tg-about-v1 .tg-about-hero
  a[href*="#"] {
    margin-top: 20px;
  }

  /* Preserve clean mobile typography. */
  body .tg-about-v1 .tg-about-hero h1 span {
    line-height: 1.12 !important;
  }

  /* Keep the hologram hidden in the story section. */
  body .tg-about-v1 .tg-about-story
  .tg-story-hologram-v3 {
    display: none !important;
  }
}

/* =============================================
   THEGROWNS ABOUT MOBILE V5
   Exact uploaded background + protected wall logo
   ============================================= */

@media screen and (max-width: 767px) {

  /*
   * Force the exact uploaded mobile image.
   * No additional image overlay.
   */
  body .tg-about-v1 .tg-about-hero {
    background-image:
      url("../images/about/tg-about-mobile-hero-v5.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 900px !important;
    min-height: max(900px, 115svh) !important;
    overflow: hidden;
  }

  /*
   * Keep the headline in the upper part of the hero.
   * Reduce its width so it doesn't stretch across
   * the wall-logo area.
   */
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(31px, 8vw, 39px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  /*
   * Reserve vertical breathing room after the title
   * for the wall-mounted TheGrowns signature.
   */
  body .tg-about-v1 .tg-about-hero h1 + * {
    margin-top: 190px !important;
  }

  /*
   * The message and CTA must remain below the logo.
   */
  body .tg-about-v1 .tg-about-hero
  [class*="message"],
  body .tg-about-v1 .tg-about-hero
  [class*="statement"] {
    margin-top: 0 !important;
  }

  body .tg-about-v1 .tg-about-hero p {
    line-height: 1.8 !important;
  }

  /* Preserve the mobile story hologram removal. */
  body .tg-about-v1 .tg-about-story
  .tg-story-hologram-v3 {
    display: none !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero h1 {
    font-size: 32px !important;
  }
}


/* TG_ABOUT_MOBILE_V6_START */

@media screen and (max-width: 767px) {

  /*
   * Establish vertical room for three visual zones:
   * 1. Headline at the top
   * 2. Unobstructed wall logo
   * 3. Message and CTA below
   */
  body .tg-about-v1 .tg-about-hero {
    min-height: 900px !important;
    min-height: max(900px, 115svh) !important;
  }

  /* Headline closer to the introductory eyebrow */
  body .tg-about-v1 .tg-about-hero h1 {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    line-height: 1.1 !important;
  }

  /*
   * Preserve the image's central logo by reserving
   * generous space below the headline.
   */
  body .tg-about-v1 .tg-about-hero h1 + * {
    margin-top: 245px !important;
  }

  /* Give the supporting message a calmer rhythm. */
  body .tg-about-v1 .tg-about-hero p {
    line-height: 1.9 !important;
  }

  /* Button remains below the message. */
  body .tg-about-v1 .tg-about-hero a {
    min-height: 56px;
  }

  /* Hide story hologram only on mobile. */
  body .tg-about-v1 .tg-about-story
  .tg-story-hologram-v3 {
    display: none !important;
  }
}

/* TG_ABOUT_MOBILE_V6_END */

/* ==============================================
   TG ABOUT MOBILE V7 — ACTUAL HERO STRUCTURE
   ============================================== */

@media screen and (max-width: 767px) {

  /* Actual image element — not the section */
  body .tg-about-v1 .tg-about-hero .tg-about-hero-media {
    background-image:
      url("../images/about/tg-about-mobile-hero-v7.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
  }

  /* Keep the wall image legible */
  body .tg-about-v1 .tg-about-hero .tg-about-hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(8,5,16,.35) 0%,
        rgba(8,5,16,.05) 35%,
        rgba(8,5,16,.05) 65%,
        rgba(8,5,16,.25) 100%
      ) !important;
  }

  /* Mobile hero gets its own vertical composition */
  body .tg-about-v1 .tg-about-hero {
    min-height: 880px !important;
    min-height: max(880px, 112svh) !important;
    display: flex !important;
    align-items: stretch !important;
  }

  /*
   * Actual content container.
   * Two headline rows, protected logo gap,
   * message panel, button.
   */
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    width: calc(100% - 48px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 55px 0 95px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows:
      auto
      auto
      minmax(175px, 1fr)
      auto
      auto !important;

    align-content: stretch !important;
    align-items: start !important;
    row-gap: 0 !important;
  }

  /* Eyebrow near headline */
  body .tg-about-v1 .tg-about-hero .tg-about-eyebrow {
    grid-row: 1 !important;
    margin: 0 0 14px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  /* Headline stays near the top */
  body .tg-about-v1 .tg-about-hero h1 {
    grid-row: 2 !important;
    margin: 0 !important;
    font-size: clamp(32px, 8.5vw, 43px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.05em !important;
  }

  /* Reset earlier margin-based attempts */
  body .tg-about-v1 .tg-about-hero h1 + * {
    margin-top: 0 !important;
  }

  /* Message panel below the protected wall-logo area */
  body .tg-about-v1 .tg-about-hero .tg-about-motto {
    grid-row: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 28px !important;
    padding: 22px 20px !important;
    font-size: 14px !important;
    line-height: 2.1 !important;
  }

  /* CTA below message panel */
  body .tg-about-v1 .tg-about-hero .tg-about-btn {
    grid-row: 5 !important;
    justify-self: start !important;
    margin: 0 !important;
    min-height: 58px !important;
  }

  /* No floating hologram in mobile story section */
  body .tg-about-v1 .tg-about-story .tg-story-hologram-v3 {
    display: none !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    width: calc(100% - 38px) !important;
  }

  body .tg-about-v1 .tg-about-hero h1 {
    font-size: clamp(30px, 8.2vw, 37px) !important;
  }
}

/* =============================================
   TG ABOUT MOBILE V8 — BALANCED SPACING
   Refines V7 without changing its image
   ============================================= */

@media screen and (max-width: 767px) {

  /* Reduce the excessive overall hero height. */
  body .tg-about-v1 .tg-about-hero {
    min-height: 700px !important;
    height: auto !important;
  }

  /*
   * Keep the headline, logo, message and CTA
   * within a more balanced vertical composition.
   */
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    padding: 42px 0 65px !important;

    grid-template-rows:
      auto
      auto
      190px
      auto
      auto !important;

    align-content: start !important;
  }

  /* Eyebrow and headline grouped together. */
  body .tg-about-v1 .tg-about-hero .tg-about-eyebrow {
    margin-bottom: 12px !important;
  }

  body .tg-about-v1 .tg-about-hero h1 {
    margin: 0 !important;
  }

  /* Message panel with comfortable spacing. */
  body .tg-about-v1 .tg-about-hero .tg-about-motto {
    margin: 0 0 26px !important;
    padding: 22px 20px !important;
    line-height: 1.95 !important;
  }

  /* Button immediately follows the message. */
  body .tg-about-v1 .tg-about-hero .tg-about-btn {
    margin: 0 !important;
  }

  /* Keep the story hologram hidden on phones. */
  body .tg-about-v1 .tg-about-story .tg-story-hologram-v3 {
    display: none !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    grid-template-rows:
      auto
      auto
      175px
      auto
      auto !important;
  }
}

/* =============================================
   TG ABOUT MOBILE V9
   Move message and CTA into the water area.
   Preserve the approved upper composition.
   ============================================= */

@media screen and (max-width: 767px) {

  /*
   * Increase only the reserved gap between
   * headline and message panel.
   */
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    grid-template-rows:
      auto
      auto
      315px
      auto
      auto !important;

    padding-bottom: 65px !important;
  }

  /* Preserve the panel and button relationship. */
  body .tg-about-v1 .tg-about-hero .tg-about-motto {
    margin: 0 0 26px !important;
  }

  body .tg-about-v1 .tg-about-hero .tg-about-btn {
    margin: 0 !important;
  }

  /* Desktop unaffected; hologram stays hidden on mobile. */
  body .tg-about-v1 .tg-about-story .tg-story-hologram-v3 {
    display: none !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-hero .tg-about-hero-inner {
    grid-template-rows:
      auto
      auto
      295px
      auto
      auto !important;
  }
}

/* ==========================================
   TG ABOUT MOBILE V10
   Fix headline wrapping on narrow screens
   ========================================== */

@media screen and (max-width: 767px) {

  /*
   * Philosophy: keep RESEARCH. on one line.
   * Scale typography rather than splitting
   * the final punctuation.
   */
  body .tg-about-v1 .tg-about-manifesto h2 {
    font-size: clamp(35px, 10.5vw, 56px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  /*
   * Research / Afterthought section:
   * prevent the final T from wrapping.
   */
  body .tg-about-v1 .tg-about-process h2,
  body .tg-about-v1 .tg-about-formula h2 {
    font-size: clamp(32px, 9vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  /* Preserve whole words inside gradient spans. */
  body .tg-about-v1 .tg-about-manifesto h2 span,
  body .tg-about-v1 .tg-about-process h2 span,
  body .tg-about-v1 .tg-about-formula h2 span {
    white-space: nowrap !important;
  }
}

@media screen and (max-width: 390px) {

  body .tg-about-v1 .tg-about-manifesto h2 {
    font-size: 10vw !important;
  }

  body .tg-about-v1 .tg-about-process h2,
  body .tg-about-v1 .tg-about-formula h2 {
    font-size: 8.5vw !important;
  }
}


/* TG_ABOUT_MOBILE_V11 */
@media screen and (max-width: 767px) {
  body .tg-about-v1 .tg-about-afterthought-mobile-fix {
    font-size: clamp(28px, 7.7vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.065em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .tg-about-v1 .tg-about-afterthought-mobile-fix span {
    white-space: nowrap !important;
  }
}

@media screen and (max-width: 390px) {
  body .tg-about-v1 .tg-about-afterthought-mobile-fix {
    font-size: 7.4vw !important;
  }
}

/* TG_ABOUT_MOBILE_V13 */
.tg-about-approach-mobile-v13 {
  display: none;
}

@media screen and (max-width: 767px) {

  /* Hide original oversized heading on phones only. */
  body .tg-about-v1 .tg-about-approach-mobile-v12 {
    display: none !important;
  }

  /* Mobile-specific three-line composition. */
  body .tg-about-v1 .tg-about-approach-mobile-v13 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
    font-size: clamp(31px, 8vw, 43px) !important;
    font-weight: 900 !important;
    line-height: 1.13 !important;
    letter-spacing: -.055em !important;
    text-transform: uppercase !important;
  }

  body .tg-about-v1 .tg-about-approach-mobile-v13 > span {
    display: block !important;
    white-space: nowrap !important;
  }

  body .tg-about-v1 .tg-about-approach-line-one {
    color: #23152e !important;
  }

  body .tg-about-v1 .tg-about-approach-line-gradient {
    background: linear-gradient(
      105deg,
      #522178 0%,
      #943dc4 58%,
      #c45bea 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }
}
