/* TalkWise sitewide alignment audit — 2026-10-02
   A quiet finishing layer: consistent measures, endings and responsive rhythm
   without flattening the deliberately different editorial sections. */

:root {
  --tw-page-gutter: max(24px, calc(50vw - 580px));
  --tw-reading-measure-comfortable: 64ch;
}

.talkwise-site {
  overflow-x: clip;
}

.talkwise-site img,
.talkwise-site picture,
.talkwise-site figure {
  max-width: 100%;
}

/* Headings should make deliberate shapes instead of leaving isolated words. */
.talkwise-site main h1,
.talkwise-site main h2,
.talkwise-site main h3 {
  text-wrap: balance;
}

.talkwise-site main p,
.talkwise-site main li {
  text-wrap: pretty;
}

/* Keep reading copy generous but controlled. This applies only to ordinary
   editorial prose, leaving labels, facts, credentials and controls alone. */
.talkwise-site:not(.home-page) main section p:not(.section-label):not(.small-print):not(.practice-note):not(.topic-sources):not(.form-privacy-intro),
.talkwise-site:not(.home-page) main section li {
  max-width: var(--tw-reading-measure-comfortable);
}

/* Remove the accidental final pocket created by collapsing margins at the
   foot of otherwise well-spaced sections. */
.talkwise-site main section > :last-child,
.talkwise-site main section > div > :last-child,
.talkwise-site main article > :last-child {
  margin-bottom: 0;
}

/* The supporting-page introductions now share one calm baseline. Their
   individual backgrounds and type treatments remain unchanged. */
.talkwise-site:not(.home-page) .page-intro {
  padding-top: clamp(2.5rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.talkwise-site:not(.home-page) .page-intro h1 {
  max-width: 15ch;
  margin-bottom: clamp(1.35rem, 2.2vw, 2rem);
}

.talkwise-site:not(.home-page) .page-intro .page-lead,
.talkwise-site:not(.home-page) .page-intro > div > p {
  max-width: 58ch;
}

/* A title and its first paragraph should always read as one unit. */
.talkwise-site:not(.home-page) main section h2 + p,
.talkwise-site:not(.home-page) main section h3 + p {
  margin-top: clamp(.9rem, 1.5vw, 1.25rem);
}

/* Avoid decorative dividers becoming detached lines. */
.talkwise-site:not(.home-page) main hr {
  margin-block: clamp(1.75rem, 3vw, 2.75rem);
}

/* The footer is part of the same alignment system rather than a narrower,
   unrelated block. */
.talkwise-site .talkwise-footer {
  padding-inline: var(--tw-page-gutter);
}

@media (max-width: 760px) {
  :root {
    --tw-page-gutter: 24px;
  }

  /* Eighteen pixels is the minimum sustained reading size across the mobile
     editorial pages. Compact interface text is intentionally excluded. */
  .talkwise-site:not(.home-page) main section p:not(.section-label):not(.small-print):not(.practice-note):not(.topic-sources):not(.form-privacy-intro),
  .talkwise-site:not(.home-page) main section li {
    font-size: 1.125rem;
    line-height: 1.72;
  }

  .talkwise-site:not(.home-page) .page-intro {
    padding-top: 2.35rem;
    padding-bottom: 2.8rem;
  }

  .talkwise-site:not(.home-page) .page-intro h1 {
    max-width: 12ch;
    margin-bottom: 1.25rem;
  }

  .talkwise-site:not(.home-page) main h2 {
    max-width: 18ch;
  }

  .talkwise-site:not(.home-page) main h3 {
    max-width: 24ch;
  }

  .talkwise-site main figure img {
    display: block;
    margin-inline: auto;
  }
}

/* Wide-screen editorial composition. Supporting pages should use the canvas,
   without stretching prose into tiring line lengths or imitating cards. */
@media (min-width: 900px) {
  .talkwise-site:not(.home-page) .page-intro {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    column-gap: clamp(4rem, 7vw, 7.5rem);
    align-items: start;
  }

  .talkwise-site:not(.home-page) .page-intro > .return-link,
  .talkwise-site:not(.home-page) .page-intro > .section-label,
  .talkwise-site:not(.home-page) .page-intro > .depth-route {
    grid-column: 1 / -1;
  }

  .talkwise-site:not(.home-page) .page-intro > h1 {
    grid-column: 1;
    margin-bottom: 0;
  }

  .talkwise-site:not(.home-page) .page-intro > .page-lead,
  .talkwise-site:not(.home-page) .page-intro > h1 + p {
    grid-column: 2;
    align-self: end;
    margin: 0;
  }

  .talkwise-site:not(.home-page) .page-intro > .depth-route {
    margin-top: clamp(2.25rem, 4vw, 3.75rem);
  }

  .talkwise-site .depth-section__inner {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    column-gap: clamp(4rem, 7vw, 7.5rem);
    row-gap: .85rem;
    width: min(100%, 1160px);
    max-width: 1160px;
    margin-inline: auto;
  }

  .talkwise-site .depth-section__inner > .section-label,
  .talkwise-site .depth-section__inner > h2 {
    grid-column: 1;
  }

  .talkwise-site .depth-section__inner > p,
  .talkwise-site .depth-section__inner > h3,
  .talkwise-site .depth-section__inner > .culture-language-note,
  .talkwise-site .depth-section__inner > ul {
    grid-column: 2;
    margin-top: 0;
  }

  .talkwise-site .depth-section__inner > .section-label {
    align-self: end;
    margin-bottom: 0;
  }

  .talkwise-site .depth-section__inner > h2 {
    align-self: start;
    margin: 0;
  }

  .talkwise-site .depth-section__inner > h3 {
    margin-top: 1.2rem;
  }

  .talkwise-site .depth-section__inner > .depth-anchor {
    margin-top: 1.2rem;
  }

  /* The professional journey is a sequence of distinct thoughts. A true
     two-column grid fills the page while preserving row-by-row reading order. */
  .talkwise-site .phase2-section3__narrative {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.55rem, 2.5vw, 2.35rem) clamp(3rem, 6vw, 6rem);
    width: 100%;
    max-width: none;
    margin-top: clamp(3.25rem, 5vw, 5rem);
  }

  .talkwise-site .phase2-section3__narrative > p {
    align-self: start;
  }

  .talkwise-site .phase2-section3__narrative > .phase2-section3__turn {
    grid-column: 1 / -1;
    max-width: 28ch !important;
    margin: clamp(1.25rem, 2vw, 2rem) auto .5rem !important;
    text-align: center;
  }

  .talkwise-site .phase2-section3__conclusion {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    width: 100%;
    max-width: none;
  }

  .talkwise-site .phase2-section3__experience {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .talkwise-site .phase2-section3__final {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 35ch !important;
    text-align: center;
  }
}

/* This is an explanatory note within the prose, not a UI card. */
.talkwise-site .culture-language-note {
  padding: 1.35rem 0 1.35rem clamp(1.2rem, 2.5vw, 2rem);
  border: 0;
  border-left: 2px solid rgba(181, 138, 77, .72);
  border-radius: 0;
  background: transparent;
}

/* The thought belongs quietly to the ripple. It must never become a pill,
   hover label or detached interface element. */
.home-page .phase2-section2__awareness-art figcaption {
  position: static !important;
  display: block !important;
  width: auto !important;
  margin: .7rem auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b604d !important;
  font-family: Lora, Georgia, serif;
  font-size: clamp(.98rem, 1.05vw, 1.08rem) !important;
  font-style: italic;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@media (max-width: 899px) {
  .talkwise-site .phase2-section3__narrative,
  .talkwise-site .phase2-section3__conclusion,
  .talkwise-site .depth-section__inner {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Final ripple alignment: centre the visible artwork beneath the trust
   statement rather than beneath the full left grid track. */
@media (min-width: 900px) {
  .talkwise-site.home-page .phase2-section2__awareness-art {
    justify-self: start !important;
    margin-left: 1rem !important;
    margin-right: 0 !important;
    transform: translateY(-50px);
  }
}

/* The ripple thought is a discreet discovery, not permanent body copy. */
.home-page .phase2-section2__awareness-art figcaption {
  position: absolute !important;
  top: 78% !important;
  left: 50% !important;
  width: max-content !important;
  max-width: 88% !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 999px !important;
  background: rgba(48, 67, 57, .72) !important;
  box-shadow: 0 4px 14px rgba(32, 45, 38, .12) !important;
  color: #fffaf3 !important;
  font-family: Lora, Georgia, serif;
  font-size: clamp(.72rem, .76vw, .8rem) !important;
  font-style: italic;
  line-height: 1.25 !important;
  letter-spacing: .02em;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, 5px) !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
  pointer-events: none;
}

.home-page .phase2-section2__awareness-art:hover figcaption {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .talkwise-site *,
  .talkwise-site *::before,
  .talkwise-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Homepage precision corrections — intentionally limited to the four areas
   approved in this pass. */
@media (min-width: 900px) {
  .home-page .phase2-section2__awareness-art {
    align-self: start;
    justify-self: center;
    width: min(100%, 25.5rem);
    margin-top: -14.5rem;
    margin-right: 0;
    margin-bottom: -11.5rem;
  }

  .home-page .home-professional-summary {
    align-items: start;
    padding-top: clamp(4.25rem, 5.5vw, 5.25rem);
  }
}

/* The drop's thought now belongs beneath the illustration. It is legible at
   rest and no longer depends on hovering over a pale area of the picture. */
.home-page .phase2-section2__awareness-art figcaption {
  position: static;
  display: block;
  width: min(100%, 30rem);
  max-width: none;
  margin: .45rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f654f;
  backdrop-filter: none;
  font-size: clamp(.82rem, .84vw, .92rem);
  line-height: 1.45;
  letter-spacing: .018em;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: color .25s ease;
}

@media (min-width: 900px) {
  /* The source artwork contains a deep transparent lower canvas. Cropping the
     layout footprint keeps the visible ripple aligned with the adjacent copy. */
  .home-page .phase2-section2__awareness-art img {
    clip-path: inset(0 0 24% 0);
    margin-bottom: -9.5rem;
  }
}

.home-page .phase2-section2__awareness-art:hover figcaption,
.home-page .phase2-section2__awareness-art:focus figcaption,
.home-page .phase2-section2__awareness-art:focus-visible figcaption,
.home-page .phase2-section2__awareness-art:focus-within figcaption,
.home-page .phase2-section2__awareness-art:active figcaption {
  color: #40584a;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* “What happens” is a continuous therapeutic process, not a group of cards. */
.home-page .phase2-section5__flow {
  position: relative;
  display: grid;
  gap: clamp(2.1rem, 3.5vw, 3rem);
  padding-left: clamp(2rem, 3.8vw, 3rem);
}

.home-page .phase2-section5__flow::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .6rem;
  left: .35rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(181, 135, 70, .18), rgba(181, 135, 70, .72) 38%, rgba(67, 99, 82, .62) 72%, rgba(67, 99, 82, .12));
}

.home-page .phase2-section5__passage,
.home-page .phase2-section5__passage:first-child {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.home-page .phase2-section5__passage::before {
  content: "";
  position: absolute;
  top: .58rem;
  left: calc(-1 * clamp(2rem, 3.8vw, 3rem) - .03rem);
  width: .72rem;
  height: .72rem;
  border: 1px solid rgba(168, 119, 60, .72);
  border-radius: 50%;
  background: #f8f4ed;
  box-shadow: 0 0 0 .34rem rgba(248, 244, 237, .9);
}

/* A slow passage of colour follows the four recognition headings. The words
   never disappear and the effect remains subordinate to the copy. */
.home-page .phase2-section4__pathways h3 {
  background-image: linear-gradient(105deg, currentColor 0 38%, #c49a52 48%, #3f6b59 56%, currentColor 66% 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-page .phase2-section4__pathways::after {
  background-size: 100% 220%;
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .phase2-section4__pathways h3 {
    animation: tw-recognition-heading-light 10s ease-in-out infinite;
  }

  .home-page .phase2-section4__pathways article:nth-child(2) h3 { animation-delay: -2.2s; }
  .home-page .phase2-section4__pathways article:nth-child(3) h3 { animation-delay: -4.4s; }
  .home-page .phase2-section4__pathways article:nth-child(4) h3 { animation-delay: -6.6s; }

  .home-page .phase2-section4__pathways::after {
    animation: tw-recognition-path-light 12s ease-in-out infinite;
  }
}

@keyframes tw-recognition-heading-light {
  0%, 72%, 100% { background-position: 100% 50%; }
  84% { background-position: 0% 50%; }
}

@keyframes tw-recognition-path-light {
  0%, 100% { background-position: 50% 100%; opacity: .48; }
  50% { background-position: 50% 0%; opacity: .8; }
}

@media (max-width: 760px) {
  .home-page .phase2-section2__awareness-art figcaption {
    margin-top: .25rem;
    font-size: .84rem;
  }

  .home-page .phase2-section5__flow {
    gap: 2.35rem;
    padding-left: 1.7rem;
  }

  .home-page .phase2-section5__passage::before {
    left: -1.72rem;
    width: .62rem;
    height: .62rem;
  }

  .home-page .home-professional-summary {
    gap: 2.6rem;
    padding-top: 3.4rem;
  }
}

/* Authoritative final ripple treatment. Kept last so the older responsive
   artwork rules cannot reclaim its alignment or caption behaviour. */
@media (min-width: 900px) {
  .talkwise-site.home-page .phase2-section2__awareness-art {
    justify-self: start !important;
    margin-left: 1rem !important;
    margin-right: 0 !important;
  }
}

.talkwise-site.home-page .phase2-section2__awareness-art figcaption {
  position: absolute !important;
  top: 82% !important;
  left: 50% !important;
  width: max-content !important;
  max-width: 88% !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 999px !important;
  background: rgba(48, 67, 57, .72) !important;
  box-shadow: 0 4px 14px rgba(32, 45, 38, .12) !important;
  color: #fffaf3 !important;
  font-size: clamp(.72rem, .76vw, .8rem) !important;
  line-height: 1.25 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, 5px) !important;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
  pointer-events: none !important;
}

.talkwise-site.home-page .phase2-section2__awareness-art:hover figcaption {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

/* Booking page: keep the practical contact choices present beside the long
   secure enquiry form, without changing the natural stacked mobile flow. */
@media (min-width: 900px) {
  .talkwise-site.booking-page .contact-alternatives {
    position: sticky;
    top: 8.25rem;
    align-self: start;
  }
}

/* Booking contact routes: comfortable touch targets without changing the
   established typography or adding button-like boxes. */
.talkwise-site.booking-page .contact-alternatives .contact-email {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

/* Payment introduction: keep the client-only reassurance visibly attached to
   the title without allowing the two blocks to collide in the editorial grid. */
.talkwise-site.payment-page .page-intro > p:not(.page-lead) {
  margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
}

@media (max-width: 760px) {
  .talkwise-site.payment-page .page-intro > p:not(.page-lead) {
    margin-top: 1.15rem;
  }
}

/* The visual step numbers are decorative. Explicit aria-hidden elements keep
   their appearance while preventing generated counters being announced twice. */
.tw-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* About introduction: keep this invitation quieter than the page's major
   editorial transitions. The unique class prevents changes to other titles. */
.talkwise-site .page-intro .about-page-title {
  font-size: clamp(2.5rem, 3.6vw, 2.85rem);
}

@media (max-width: 760px) {
  .talkwise-site .page-intro .about-page-title {
    font-size: 2.25rem;
  }
}

.talkwise-site.booking-page .enquiry-journey li::before {
  content: none !important;
  display: none !important;
}

.talkwise-site.booking-page .enquiry-step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  margin: 0 !important;
  padding: 0;
  width: 48px;
  height: 48px;
  border: 1px solid #b68a4f;
  border-radius: 50%;
  background: #f4f0e8;
  color: #415e4e;
  box-shadow: 0 0 0 8px #f4f0e8;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .talkwise-site.booking-page .enquiry-step-number {
    left: -58px;
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 6px #f4f0e8;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .talkwise-site.booking-page .enquiry-step-number {
    animation: tw-path-glow 7s ease-in-out infinite alternate;
  }
}
