/*
 * Homepage programme overview styling.
 * These selectors are intentionally scoped to the landing page components.
 */

/* The source container has its own internal gutter; retain the original 85% shell. */
.ta-container {
  width: 100%;
  max-width: var(--ta-container);
  padding-inline: 1.5rem;
}

/* Hero: source values are 128px top padding, 64px bottom padding and a 7/5 grid. */
.ta-hero--home {
  padding: 8rem 0 4rem;
}

.ta-hero-grid {
  min-height: 0;
  padding-top: 1rem;
  padding-bottom: 0;
}

.ta-hero-copy {
  max-width: 48rem;
  transform: translateY(-2rem);
}

.ta-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.ta-hero-copy > p {
  max-width: 65ch;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}

.ta-actions {
  margin-top: 2rem;
}

.ta-actions .ta-button,
.ta-final-cta .ta-button {
  min-height: 0;
  padding: .875rem 1.75rem;
  line-height: 1.5;
}

/* Buttons use the shared outlined arrow icon, not a text glyph.
   Keep the existing accessible arrow text in the markup, but render it with
   the same 20px vector shape and hover movement. */
.ta-button {
  gap: .5rem;
}

.ta-button > .ta-icon--arrow-right {
  display: block;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform .3s ease-out;
}

.ta-button:hover > .ta-icon--arrow-right {
  transform: translateX(.375rem);
}

/* Draw the FAQ plus/minus from centred strokes instead of a font glyph.
   This keeps both axes mathematically centred inside the circular control. */
.ta-faq-list summary::after {
  content: "";
  display: block;
  flex: 0 0 1.875rem;
  width: 1.875rem;
  height: 1.875rem;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) center / .75rem .125rem no-repeat,
    linear-gradient(currentColor, currentColor) center / .125rem .75rem no-repeat;
}

.ta-faq-list details[open] summary::after {
  content: "";
  background: linear-gradient(currentColor, currentColor) center / .75rem .125rem no-repeat;
}

/* The FAQ introduction begins on the first accordion rule, not midway down
   the list.  Keep the sticky column anchored to the top of the shared grid. */
.ta-faq-layout {
  align-items: start;
}

.ta-faq-layout > aside {
  /* Keep the copy on the same first row as the accordion rule. The old
     sticky offset could pull it down after the section entered the viewport. */
  position: static;
  top: auto;
  align-self: start;
  margin-top: 0;
  padding-top: 0;
  transform: none;
}

.ta-hero .ta-button--light {
  background: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: none;
}

.ta-hero .ta-button--light:hover {
  background: rgba(255,255,255,.2);
}

.ta-hero-art {
  width: 100%;
  max-width: 24rem;
  height: auto;
  aspect-ratio: 4 / 5;
  justify-self: center;
}

/* The photo deliberately overscans the masked diagonal frame.  This is the
   counter-skewed structure so there is never a
   teal strip exposed at either diagonal edge. */
.ta-hero-image-fill {
  width: 125%;
  height: 100%;
  margin-left: -12.5%;
  transform: skewX(8deg);
}

.ta-hero-image img {
  width: 100%;
  height: 100%;
  margin-left: 0;
  transform: none;
}

.ta-hero-tag {
  display: block;
  min-width: 15rem;
  height: 3.75rem;
  padding: .5rem 1.5rem .5rem .5rem;
}

.ta-hero-tag-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 1rem;
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}

.ta-hero-tag b {
  padding: .5rem 1rem;
  font-size: 1.125rem;
}

.ta-hero-tag span {
  font-size: 1rem;
  letter-spacing: -.025em;
}

.ta-hero-tag--one {
  top: 15%;
  left: -10.5rem;
}

.ta-hero-tag--two {
  min-width: 13.75rem;
  right: -9.25rem;
  bottom: 15%;
}

.ta-hero-tag.is-swapping .ta-hero-tag-content {
  opacity: 0;
  transform: translateY(-.625rem);
}

.ta-problem-grid {
  gap: 2rem;
  margin-top: 8rem;
  padding-bottom: 3rem;
}

.ta-image-card {
  border-radius: 2.5rem;
  transition: transform .3s ease-out, box-shadow .7s ease-out;
}

.ta-image-card:hover {
  transform: translateY(-.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .7);
}

.ta-card-image {
  height: 12rem;
}

.ta-card-image img {
  transition: transform .7s ease-out;
}

.ta-image-card:hover .ta-card-image img {
  transform: scale(1.05);
}

.ta-card-content {
  min-height: 0;
  padding: 3rem;
}

.ta-card-content h2,
.ta-section h2:not(.ta-basic-page h2) {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.21;
  letter-spacing: -.025em;
}

.ta-card-content p {
  max-width: 65ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}

/* The source wraps the path and benefits in a single white shape field. */
.ta-section--paths {
  padding-top: 8rem;
}

.ta-section--paths > .ta-section-shape {
  width: 70%;
  height: 120%;
  background: linear-gradient(135deg, rgba(0,188,203,.15), rgba(0,188,203,.05), transparent);
}

.ta-section--paths::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 5%;
  width: 37.5rem;
  height: 37.5rem;
  border-radius: 50%;
  background: rgba(0,188,203,.2);
  filter: blur(7.5rem);
  pointer-events: none;
}

.ta-section--benefits::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -8rem;
  right: -10%;
  width: 70%;
  height: calc(100% + 8rem);
  transform: skewX(20deg);
  transform-origin: top left;
  border-left: 1px solid rgba(0,188,203,.2);
  background: linear-gradient(135deg, rgba(0,188,203,.15), rgba(0,188,203,.05), transparent);
  pointer-events: none;
}

.ta-section-heading {
  margin-bottom: 6rem;
}

.ta-section-heading h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}

.ta-section--paths .ta-section-heading h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em !important;
}

.ta-section-heading p {
  max-width: 65ch;
  margin-top: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}

.ta-path-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  position: relative;
  height: 9.75rem;
  margin: 0 0 .5rem;
  padding-inline: 2rem;
}

.ta-path-rail::before {
  display: none;
}

.ta-path-step {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.ta-path-step--two { margin-top: 3rem; }
.ta-path-step--three { margin-top: 6rem; }

.ta-path-node {
  position: relative;
  z-index: 2;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  /* Prevent the legacy straight-rail selector from offsetting each node.
     The stepped line begins at the exact centre of this circle. */
  margin-top: 0 !important;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ta-teal);
  box-shadow: 0 0 0 1px rgba(0,188,203,.2), 0 2px 4px rgba(0,35,84,.1);
}

.ta-path-step--two .ta-path-node {
  background: var(--ta-mist);
  box-shadow: 0 0 0 1px rgba(10,122,133,.2), 0 2px 4px rgba(0,35,84,.1);
}

.ta-path-step--three .ta-path-node {
  background: var(--ta-navy);
  box-shadow: 0 0 0 1px rgba(0,35,84,.2), 0 2px 4px rgba(0,35,84,.1);
}

.ta-path-step b {
  position: relative;
  z-index: 1;
  color: rgba(0,35,84,.6);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ta-path-step--two b { color: var(--ta-teal-dark); }

.ta-path-track {
  position: absolute;
  z-index: 0;
  top: .625rem;
  left: 50%;
  width: calc(100% + 2rem);
  height: 3rem;
  pointer-events: none;
}

.ta-path-track i {
  position: absolute;
  display: block;
  border-color: rgba(0,188,203,.4);
  border-style: solid;
  border-width: 0;
}

.ta-path-track-top {
  top: 0;
  left: 0;
  width: 50%;
  height: 1.5rem;
  border-top-width: 4px !important;
  border-right-width: 4px !important;
  border-radius: 0 1.5rem 0 0;
}

.ta-path-track-bottom {
  top: 1.5rem;
  left: calc(50% - 4px);
  width: calc(50% + 4px);
  height: 1.5rem;
  border-bottom-width: 4px !important;
  border-left-width: 4px !important;
  border-radius: 0 0 0 1.5rem;
}

.ta-year-grid {
  gap: 2rem;
  align-items: start;
}

.ta-year-card {
  display: flex;
  min-height: 31.25rem;
  padding: 3rem;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.5rem;
  min-width: 0;
}

.ta-year-card--mist {
  border: 1px solid rgba(0,188,203,.2);
  box-shadow: 0 20px 50px rgba(0,188,203,.15);
}

.ta-year-card--teal,
.ta-year-card--navy {
  box-shadow: none;
}

.ta-year-card:hover {
  transform: translateY(-.5rem);
}

.ta-year-card p {
  margin: 0 0 2.25rem;
  text-transform: none;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .05em;
}

.ta-year-card--teal p { color: rgba(0,35,84,.7); }
.ta-year-card--mist p { color: var(--ta-teal-dark); }
.ta-year-card--navy p { color: rgba(255,255,255,.5); }

.ta-year-card h3 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.21;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.ta-year-card dl {
  margin: 3rem 0 0;
}

.ta-has-motion .ta-year-card[data-ta-reveal] {
  transform: translateY(2.5rem);
}

.ta-has-motion .ta-year-card[data-ta-reveal].ta-is-visible {
  transform: none;
}

@media (min-width: 1260px) {
  .ta-year-card--mist { margin-top: 3rem; }
  .ta-year-card--navy { margin-top: 6rem; }
}

.ta-year-card dl div + div {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

.ta-year-card dt {
  margin-bottom: .75rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.ta-year-card dd {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.625;
}

.ta-year-card dl div:first-child dd {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.375;
}

.ta-benefit-grid {
  max-width: 72rem;
  gap: 6rem;
}

.ta-benefit-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.ta-benefit-heading .ta-heading-icon {
  flex: 0 0 auto;
  margin: 0;
  border-width: 3.5px;
}

.ta-benefit-grid h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.21;
  letter-spacing: -.025em;
}

.ta-dot-list {
  margin-top: 0;
}

.ta-dot-list li {
  margin-top: 1.5rem;
  padding-left: 1.375rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.015em;
}

.ta-dot-list li:first-child {
  margin-top: 0;
}

.ta-dot-list li::before {
  top: .55em;
  width: .375rem;
  height: .375rem;
}

.ta-final-cta .ta-container {
  max-width: 72rem;
}

.ta-final-cta h2 {
  max-width: none;
  margin-bottom: 2.5rem;
  padding-bottom: .12em;
  /* Match the Overview display treatment exactly; the generic page-heading
     rule is intentionally overridden here. */
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -.04em !important;
}

.ta-final-cta .ta-button {
  margin-top: 0;
}

/* Source-motion timing: 700ms ease-out reveal, with spring-like badges. */
.ta-has-motion [data-ta-reveal] {
  opacity: 0;
  transform: translateY(1.875rem);
  transition: opacity .7s ease-out var(--ta-reveal-delay, 0s), transform .7s ease-out var(--ta-reveal-delay, 0s);
}

.ta-has-motion [data-ta-reveal="hero-title"] {
  transform: translateX(-3.125rem);
}

.ta-has-motion [data-ta-reveal="hero-image"] {
  /* The frame owns the skew.  Applying it on this wrapper as well briefly
     compressed the photograph into a second, incorrect diagonal shape. */
  transform: scale(.95);
}

.ta-has-motion [data-ta-reveal="badge"] {
  transform: translate(var(--ta-badge-x, 0), var(--ta-badge-y, 0)) scale(.96);
  transition-duration: .65s;
  transition-timing-function: cubic-bezier(.22, 1.35, .36, 1);
}

.ta-has-motion .ta-hero-tag--one[data-ta-reveal="badge"] { --ta-badge-x: -1.875rem; --ta-badge-y: .9375rem; }
.ta-has-motion .ta-hero-tag--two[data-ta-reveal="badge"] { --ta-badge-x: 1.875rem; --ta-badge-y: -.9375rem; }

.ta-has-motion [data-ta-reveal="final"] {
  transform: translateY(1.25rem) scale(.98);
  transition-duration: .6s;
}

.ta-has-motion [data-ta-reveal].ta-is-visible {
  opacity: 1;
  transform: none;
}

[data-ta-split-text] .ta-split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.875rem);
  transition: opacity .8s ease-out, transform .8s ease-out;
  transition-delay: calc(var(--ta-char-index) * .03s);
}

.ta-is-visible [data-ta-split-text] .ta-split-char {
  opacity: 1;
  transform: none;
}

.ta-has-motion [data-ta-path-rail] .ta-path-node {
  transform: scale(0);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.ta-has-motion [data-ta-path-rail] .ta-path-track i {
  clip-path: inset(0 100% 100% 0);
  transition: clip-path .35s linear;
}

.ta-has-motion [data-ta-path-rail] .ta-path-step--one .ta-path-node { transition-delay: .1s; }
.ta-has-motion [data-ta-path-rail] .ta-path-step--two .ta-path-node { transition-delay: .9s; }
.ta-has-motion [data-ta-path-rail] .ta-path-step--three .ta-path-node { transition-delay: 1.75s; }

.ta-has-motion [data-ta-path-rail] .ta-path-step--one .ta-path-track-top { transition-delay: .3s; }
.ta-has-motion [data-ta-path-rail] .ta-path-step--one .ta-path-track-bottom { transition-delay: .65s; }
.ta-has-motion [data-ta-path-rail] .ta-path-step--two .ta-path-track-top { transition-delay: 1.15s; }
.ta-has-motion [data-ta-path-rail] .ta-path-step--two .ta-path-track-bottom { transition-delay: 1.5s; }

.ta-has-motion [data-ta-path-rail].ta-is-visible .ta-path-node {
  transform: scale(1);
}

.ta-has-motion [data-ta-path-rail].ta-is-visible .ta-path-track i {
  clip-path: inset(0 0 0 0);
}

@media (max-width: 1259px) {
  .ta-container { max-width: 100%; }
  .ta-hero-grid { padding-top: 1rem; padding-bottom: 0; }
  .ta-hero-art { max-width: 36rem; aspect-ratio: 16 / 9; }
  .ta-hero-tag { max-width: calc(100vw - 2rem); }
  .ta-hero-tag--one { left: -2rem; }
  .ta-hero-tag--two { right: -2rem; }
  .ta-path-rail { display: none; }
}

@media (max-width: 767px) {
  .ta-container { padding-inline: 1rem; }
  .ta-hero-grid { padding-top: 0; padding-bottom: 0; gap: .9375rem; }
  .ta-hero-copy { transform: none; }
  .ta-hero-grid { gap: 3rem; }
  .ta-hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 6vw, 4rem); }
  .ta-hero-copy > p { margin-top: 0; }
  .ta-hero-art { margin-top: 5rem; }
  .ta-hero-art { width: 85%; max-width: 24rem; aspect-ratio: 4 / 5; margin-top: 5rem; }
  .ta-hero-tag { min-width: auto; height: 3.0625rem; padding: .375rem .75rem .375rem .375rem; }
  .ta-hero-tag-content { gap: .5rem; }
  .ta-hero-tag b { padding: .4375rem .625rem; font-size: .75rem; }
  .ta-hero-tag span { font-size: .6875rem; }
  .ta-hero-tag--one { top: 8%; left: -.75rem; }
  .ta-hero-tag--two { right: -.75rem; bottom: 5%; }
  .ta-problem-grid { margin-top: 8rem; padding-bottom: 3rem; }
  .ta-card-content { padding: 1.875rem; }
  .ta-card-content p { margin-top: 1.0625rem; font-size: .9375rem; }
  .ta-section--paths { padding-top: 4.25rem; }
  .ta-section-heading { margin-bottom: 2.5rem; }
  .ta-section-heading p { margin-top: 0; font-size: 1rem; }
  .ta-year-card { min-height: 0; padding: 1.875rem; }
  .ta-year-card dl { margin-top: 2.375rem; }
  .ta-year-card dd { font-size: 1rem; }
  .ta-benefit-grid { gap: 3.75rem; }
  .ta-dot-list li { font-size: 1.375rem; }
  .ta-final-cta h2 { font-size: clamp(2.5rem, 10vw, 3.4rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ta-has-motion [data-ta-reveal],
  .ta-has-motion [data-ta-reveal="hero-title"],
  .ta-has-motion [data-ta-reveal="hero-image"],
  .ta-has-motion [data-ta-reveal="badge"],
  .ta-has-motion [data-ta-reveal="final"],
  .ta-has-motion [data-ta-path-rail] .ta-path-node,
  .ta-has-motion [data-ta-path-rail] .ta-path-track i,
  [data-ta-split-text] .ta-split-char {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ta-button:hover > .ta-icon--arrow-right {
    transform: none;
  }
}
