/*
 * Gymful UI V3.1 — touch composition and a shared Growth System dial.
 * Loaded after the V3 component styles. Scroll and image transforms belong to
 * scenes-v3.js; this file only defines their frames, spacing and state accents.
 */

/* One persistent dial lets the visitor follow the selection between layers. */
.gf-system-content {
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.gf-system-dial-row {
  --gf-dial-size: 7.5rem;
  --gf-orbit-radius: calc(var(--gf-dial-size) / 2);
  --gf-orbit-point-size: 1.375rem;
  display: grid;
  grid-template-columns: calc(var(--gf-dial-size) + 1.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gf-line);
}

.gf-system-dial-row .gf-system-orbit {
  float: none;
  flex: 0 0 auto;
  align-self: center;
  width: var(--gf-dial-size);
  max-width: none;
  height: var(--gf-dial-size);
  margin: .75rem;
  aspect-ratio: 1;
  overflow: visible;
}

.gf-system-dial-row .gf-orbit-circle span {
  font-size: .4375rem;
  line-height: 1.4;
  letter-spacing: .14em;
}

.gf-system-dial-row .gf-orbit-circle b {
  margin-top: .1rem;
  font-size: 3.25rem;
  font-variant-numeric: tabular-nums;
  line-height: .95;
}

.gf-system-dial-row .gf-orbit-point {
  top: calc(50% - var(--gf-orbit-point-size) / 2);
  left: calc(50% - var(--gf-orbit-point-size) / 2);
  width: var(--gf-orbit-point-size);
  height: var(--gf-orbit-point-size);
  font-size: .5rem;
  transform: rotate(calc(var(--point) * 60deg))
    translateY(calc(-1 * var(--gf-orbit-radius)))
    rotate(calc(var(--point) * -60deg));
  transition: background-color .22s, border-color .22s, color .22s;
}

.gf-system-orbit__rotor {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  transform-origin: center;
}

.gf-system-layout[data-gf-tabs-ready] .gf-system-orbit__rotor {
  transition: transform .6s var(--gf-ease);
}

.gf-orbit-marker {
  --gf-orbit-marker-size: calc(var(--gf-orbit-point-size) + .5rem);
  position: absolute;
  top: calc(50% - var(--gf-orbit-radius) - var(--gf-orbit-marker-size) / 2);
  left: calc(50% - var(--gf-orbit-marker-size) / 2);
  display: block;
  width: var(--gf-orbit-marker-size);
  height: var(--gf-orbit-marker-size);
  border: 1px solid var(--gf-acid);
  border-radius: 50%;
}

.gf-system-dial-label {
  min-width: 0;
}

.gf-system-dial-label .gf-eyebrow {
  color: var(--gf-acid);
  font-size: .6875rem;
  letter-spacing: .04em;
}

.gf-system-dial-label .gf-eyebrow > span {
  font: inherit;
}

.gf-system-dial-label [data-tabs-layer-name] {
  margin-top: .65rem;
  color: var(--gf-paper);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.gf-system-dial-label > span:last-child {
  display: block;
  margin-top: .6rem;
  color: #a9b6a0;
  font-size: .625rem;
  line-height: 1.4;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gf-system-panels,
.gf-system-panels .gf-system-panel {
  min-width: 0;
  min-height: 0;
}

.gf-system-panels .gf-system-panel {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.gf-system-panels .gf-system-panel__copy {
  padding: 0;
}

.gf-system-panels .gf-system-panel__copy h3 {
  max-width: 13em;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 3.5vw, 3.8rem);
}

/* A scroll-linked line shows where the reader is in the three-step approach. */
.gf-approach-steps[data-gf-process] [data-gf-process-step] {
  position: relative;
  border-left-color: rgb(240 239 233 / 20%);
}

.gf-approach-steps[data-gf-process] [data-gf-process-step]::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--gf-acid);
  content: "";
  transform: scaleY(var(--gf-process-progress, 0));
  transform-origin: top;
  pointer-events: none;
}

.gf-approach-steps[data-gf-process] .gf-step-number {
  color: #8b9983;
  transition: color .25s;
}

.gf-approach-steps[data-gf-process] [data-process-current="true"] .gf-step-number,
.gf-approach-steps[data-gf-process] [data-process-complete="true"] .gf-step-number {
  color: var(--gf-acid);
}

/* Clipping only: the renderer owns the image's scale and pan. */
[data-gf-parallax] {
  overflow: hidden;
  overflow: clip;
}

.gf-nav-mobile-cta {
  display: none;
}

.gf-cases [data-slider="progress"] {
  margin-top: 1.5rem;
  background: rgb(18 20 18 / 18%);
}

.gf-cases [data-slider="progress"] > span {
  background: var(--gf-ink);
}

@media (min-width: 768px) and (max-width: 1050px) {
  .gf-system-layout {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
    gap: 1.5rem;
  }

  .gf-system-content {
    padding: 1.5rem;
  }

  .gf-system-dial-row {
    --gf-dial-size: 6.25rem;
    gap: 1rem;
  }

  .gf-system-dial-label [data-tabs-layer-name] {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 6rem;
  }

  .gf-section {
    padding-block: 3.5rem;
  }

  .gf-section-heading {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  /* Keep the compact headline, invitation and first image close together. */
  .gf-hero {
    padding-top: 7rem;
    padding-bottom: 1.75rem;
  }

  .gf-hero-topline {
    margin-bottom: 1.5rem;
  }

  .gf-hero h1 {
    font-size: clamp(4.6rem, 24vw, 10.5rem);
    line-height: .88;
  }

  .gf-hero-last {
    padding-left: 0;
  }

  .gf-hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .gf-hero-bottom > p {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .gf-hero-bottom > div {
    display: flex;
    text-align: left;
  }

  .gf-hero-bottom .gf-button {
    width: 100%;
    min-height: 3.5rem;
    padding-left: 1.25rem;
    font-size: .875rem;
  }

  .gf-showreel-section .gf-showreel {
    --gf-video-aspect: 1.03;
    --gf-video-radius: .875rem;
  }

  /* Native tab strips show the next choice while keeping feedback in view. */
  .gf-system-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .gf-system-navigation,
  .gf-cap-layout {
    min-width: 0;
  }

  .gf-system-navigation [data-tabs="nav"],
  .gf-cap-nav {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    width: calc(100% + var(--gf-gutter) + var(--gf-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--gf-gutter));
    padding: .5rem var(--gf-gutter) .625rem;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gf-gutter);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
  }

  .gf-system-navigation [data-tabs="nav"]::-webkit-scrollbar,
  .gf-cap-nav::-webkit-scrollbar {
    display: none;
  }

  .gf-system-step,
  .gf-cap-button {
    flex: 0 0 9.5rem;
    width: 9.5rem;
    min-width: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    padding: .65rem .85rem;
    gap: .6rem;
    border: 1px solid var(--gf-line);
    border-radius: .4rem;
    scroll-snap-align: start;
  }

  .gf-system-step {
    font-size: .8125rem;
    line-height: 1.25;
  }

  .gf-system-step__number,
  .gf-cap-button > span:first-child {
    flex: 0 0 auto;
    font-size: .5625rem;
    font-variant-numeric: tabular-nums;
  }

  .gf-system-step__arrow,
  .gf-cap-button > span:last-child {
    display: none;
  }

  .gf-system-navigation [data-tabs="indicator"],
  .gf-cap-nav [data-tabs="indicator"] {
    border: 1px solid var(--gf-acid);
    border-radius: .4rem;
    background: #28311f;
  }

  .gf-system-step[aria-selected="true"],
  .gf-cap-button[aria-selected="true"] {
    border-color: transparent;
    color: var(--gf-acid);
  }

  .gf-system-layout:not([data-gf-tabs-ready]) .gf-system-step[aria-selected="true"],
  .gf-cap-layout:not([data-gf-tabs-ready]) .gf-cap-button[aria-selected="true"] {
    border-color: var(--gf-acid);
    background: #28311f;
  }

  .gf-system-note {
    margin-top: .5rem;
    font-size: .6875rem;
    line-height: 1.5;
  }

  .gf-system-content {
    padding: 1.25rem;
    border-radius: .8rem;
  }

  .gf-system-dial-row {
    --gf-dial-size: 5.25rem;
    --gf-orbit-point-size: 1.125rem;
    grid-template-columns: calc(var(--gf-dial-size) + 1.25rem) minmax(0, 1fr);
    gap: .875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.125rem;
  }

  .gf-system-dial-row .gf-system-orbit {
    margin: .625rem;
  }

  .gf-system-dial-row .gf-orbit-circle span {
    font-size: .375rem;
    letter-spacing: .1em;
  }

  .gf-system-dial-row .gf-orbit-circle b {
    font-size: 2.45rem;
  }

  .gf-system-dial-row .gf-orbit-point {
    font-size: .4375rem;
  }

  .gf-system-dial-label .gf-eyebrow {
    gap: .45rem;
    font-size: .625rem;
    letter-spacing: .02em;
  }

  .gf-system-dial-label [data-tabs-layer-name] {
    margin-top: .5rem;
    font-size: 1.25rem;
  }

  .gf-system-dial-label > span:last-child {
    margin-top: .45rem;
    font-size: .5625rem;
    letter-spacing: .025em;
  }

  .gf-system-panels .gf-system-panel__copy h3 {
    max-width: 12em;
    font-size: clamp(2.25rem, 10.7vw, 2.8rem);
    line-height: .98;
  }

  .gf-system-panel__copy > p {
    font-size: .9375rem;
    line-height: 1.6;
  }

  .gf-system-panel__copy .gf-tags {
    margin-top: 1rem;
  }

  .gf-system-panel__copy .gf-tags li {
    padding: .4rem .65rem;
    font-size: .625rem;
    line-height: 1.35;
  }

  .gf-system-panel__copy .gf-system-next {
    margin-top: 1.125rem;
    padding-top: 1rem;
    font-size: .6875rem;
    line-height: 1.6;
  }

  .gf-system-foot {
    gap: .3rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    font-size: .625rem;
    letter-spacing: 0;
  }

  .gf-system-foot > span:last-child {
    display: none;
  }

  .gf-cap-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .gf-cap-button {
    font-size: 1.7rem;
    line-height: 1.05;
    white-space: normal;
  }

  .gf-cap-stage {
    border-radius: .8rem;
  }

  .gf-cap-stage [data-tabs="visual-wrap"] {
    aspect-ratio: 16 / 10;
  }

  .gf-cap-stage [data-tabs="content-wrap"] {
    padding: 1.25rem;
  }

  .gf-cap-content {
    min-height: 0;
  }

  .gf-cap-content .gf-eyebrow {
    margin-bottom: .875rem;
    font-size: .625rem;
  }

  .gf-cap-content h3 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 10vw, 2.6rem);
    line-height: .98;
  }

  .gf-cap-content > p:not(.gf-eyebrow) {
    font-size: .9375rem;
    line-height: 1.6;
  }

  .gf-cap-content .gf-button {
    width: 100%;
    min-height: 3.4rem;
    margin-top: 1.5rem;
  }

  /* The scene renderer handles movement; cards stay in ordinary reading flow. */
  .gf-ecosystem {
    padding-bottom: 0;
  }

  .gf-stack-card {
    min-height: 0;
    margin-top: -.75rem;
    padding: 1.5rem 1.25rem 2.25rem;
    border-radius: .875rem .875rem 0 0;
  }

  .gf-stack-card:first-child {
    margin-top: 0;
  }

  .gf-stack-card__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
  }

  .gf-stack-copy .gf-eyebrow {
    margin-bottom: 1.25rem;
  }

  .gf-stack-copy h3 {
    max-width: 12em;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 10.7vw, 3rem);
  }

  .gf-stack-copy > p:not(.gf-eyebrow) {
    font-size: .9375rem;
    line-height: 1.6;
  }

  .gf-stack-tag {
    max-width: 100%;
    margin-top: 1.125rem;
    font-size: .625rem;
    line-height: 1.4;
  }

  .gf-stack-visual {
    aspect-ratio: 1.2;
    border-radius: .6rem;
  }

  /* Service introductions lead to the work sooner on a narrow screen. */
  .gf-service-hero {
    padding-top: 7rem;
  }

  .gf-service-hero > .gf-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .gf-service-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: .6875rem;
  }

  .gf-service-heading,
  .gf-service-hero--print .gf-service-heading {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .gf-service-heading > .gf-eyebrow {
    margin: 0 0 .875rem;
    font-size: .65rem;
    line-height: 1.45;
  }

  .gf-service-heading h1,
  .gf-service-hero--print .gf-service-heading h1 {
    max-width: 16ch;
    font-size: clamp(3.15rem, 13.6vw, 6.5rem);
    line-height: .94;
  }

  .gf-service-intro,
  .gf-service-hero--print .gf-service-intro {
    margin-top: 1.5rem;
    padding: 0;
  }

  .gf-service-intro > p {
    max-width: 50ch;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .gf-service-intro > div {
    gap: .625rem;
  }

  .gf-service-intro .gf-button {
    width: 100%;
    min-height: 3.5rem;
    font-size: .875rem;
  }

  .gf-service-intro .gf-button--outline {
    width: auto;
    min-height: 2.75rem;
    padding-left: .1rem;
    border-color: transparent;
    font-size: .8125rem;
  }

  .gf-service-intro .gf-button--outline .gf-button__icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }

  .gf-service-art {
    margin-top: 1.75rem;
    border-radius: .625rem;
  }

  .gf-service-hero--print .gf-service-art {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 5 / 6;
    margin-top: 1.75rem;
  }

  .gf-editorial-grid,
  .gf-service-case-grid,
  .gf-promise-inner,
  .gf-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .gf-editorial-grid > div:last-child {
    padding-top: 0;
  }

  .gf-editorial-note {
    margin-top: 1.5rem;
  }

  .gf-approach .gf-section-heading,
  .gf-benefits .gf-section-heading,
  .gf-testimonials .gf-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .gf-approach-steps[data-gf-process] {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .gf-approach-steps[data-gf-process] [data-gf-process-step] {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    padding: .2rem 0 .4rem 1rem;
  }

  .gf-approach-steps[data-gf-process] .gf-step-number {
    font-size: 3.25rem;
  }

  .gf-approach-steps[data-gf-process] .gf-approach-step h3 {
    max-width: none;
    margin-bottom: .875rem;
    font-size: 1.875rem;
    line-height: 1.02;
  }

  .gf-approach-steps[data-gf-process] .gf-approach-step > div > p:last-child {
    font-size: .9375rem;
    line-height: 1.6;
  }

  .gf-benefits-list > article {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .75rem .75rem;
    padding: 1.5rem 0;
  }

  .gf-benefits-list > article > span {
    grid-column: 1;
    grid-row: 1;
  }

  .gf-benefits-list h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .gf-benefits-list > article > p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    font-size: .9375rem;
    line-height: 1.6;
  }

  .gf-benefits-list > article > i {
    display: none;
  }

  .gf-faq-answer {
    padding-right: 0;
  }

  /* Contact remains reachable inside the mobile menu. */
  [data-twostep-nav] .gf-nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 3.5rem;
    margin: .25rem 0 0;
    padding: .8rem 1.1rem;
    border: 1px solid var(--gf-nav-ink);
    border-radius: 100px;
    background: var(--gf-nav-acid);
    color: var(--gf-nav-ink);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
  }

  [data-twostep-nav] .gf-nav-mobile-cta > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  [data-twostep-nav] .gf-nav-mobile-cta > .gf-button__icon,
  [data-twostep-nav] .gf-nav-mobile-cta > svg {
    flex: 0 0 auto;
  }

  [data-twostep-nav] .twostep-nav__ul.is--small .twostep-nav__link-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: .4rem;
  }
}

@media (max-width: 359px) {
  .gf-system-content {
    padding: 1.125rem;
  }

  .gf-system-dial-row {
    --gf-dial-size: 5rem;
    gap: .625rem;
  }

  .gf-system-dial-label [data-tabs-layer-name] {
    font-size: 1.125rem;
  }

  .gf-system-dial-label > span:last-child {
    font-size: .5rem;
  }

  .gf-approach-steps[data-gf-process] [data-gf-process-step] {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .875rem;
  }

  .gf-approach-steps[data-gf-process] .gf-step-number {
    font-size: 2.8rem;
  }

  .gf-stack-card {
    padding-inline: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-system-layout[data-gf-tabs-ready] .gf-system-orbit__rotor,
  .gf-system-dial-row .gf-orbit-point,
  .gf-approach-steps[data-gf-process] .gf-step-number {
    transition: none;
  }

  .gf-approach-steps[data-gf-process] [data-gf-process-step]::before {
    transform: scaleY(1);
  }

  .gf-approach-steps[data-gf-process] .gf-step-number {
    color: var(--gf-acid);
  }

  .gf-stack-card {
    margin-top: 0;
  }
}
