/* =============================================================================
   SIX-STEP ADVICE PROCESS
   The advice wheel (.cycle), the home-page summary section (.howwork) and the
   sub-page step detail (.sixstep, .smart). Tokens only, no raw colour.
   Loaded by index.html and six-step-process.html only, after styles.css.
   Added 2026-11-12. The wheel SVG paths were generated once; edit the
   HTML directly from here on.
   ========================================================================== */

/* ---------- the wheel ---------- */
.cycle {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}
.cycle svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.cycle_track {
  fill: none;
  stroke: rgb(var(--ink-rgb) / 0.12);
  stroke-width: 1;
}
.cycle_seg {
  cursor: pointer;
  outline: none;
}
.cycle_seg path {
  fill: var(--beige-500);
  stroke: rgb(var(--ink-rgb) / 0.16);
  stroke-width: 1;
  transition: fill 0.5s var(--ease-expo), stroke 0.5s var(--ease-expo);
}
.cycle_num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  fill: var(--brand-600);
  transition: fill 0.5s var(--ease-expo);
}
.cycle_label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19.3px;
  fill: var(--brand-800);
  transition: fill 0.5s var(--ease-expo);
}
.cycle_seg:hover path,
.cycle_seg:focus-visible path {
  fill: var(--sand-200);
}
.cycle_seg.is-active path {
  fill: var(--brand-600);
  stroke: var(--brand-600);
}
.cycle_seg.is-active .cycle_num { fill: var(--brand-300); }
.cycle_seg.is-active .cycle_label { fill: var(--beige-500); }
.cycle_seg:focus-visible path {
  stroke: var(--brand-500);
  stroke-width: 3;
}
.cycle_arrow {
  fill: var(--brand-500);
}
.cycle_hub {
  fill: var(--beige-500);
  stroke: rgb(var(--ink-rgb) / 0.16);
}
.cycle_hub_kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  fill: var(--brand-600);
}
.cycle_hub_title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  fill: var(--brand-800);
}
.cycle_hub_step {
  font-family: var(--font-body);
  font-size: 15px;
  fill: var(--brand-800);
  opacity: 0.7;
}

/* reveal: segments settle in one after another when the wheel is reached */
.cycle_seg,
.cycle_arrow,
.cycle_hub_group {
  transform-box: fill-box;
  transform-origin: center;
}
.cycle[data-cycle-reveal] .cycle_seg,
.cycle[data-cycle-reveal] .cycle_arrow,
.cycle[data-cycle-reveal] .cycle_hub_group {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-expo), transform 0.9s var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.cycle.is-in .cycle_seg,
.cycle.is-in .cycle_arrow,
.cycle.is-in .cycle_hub_group {
  opacity: 1;
  transform: none;
}

/* ---------- home page: "How we work" ---------- */
/* head / wheel / list are separate grid items so a phone can read them in
   that order, while desktop keeps the wheel in its own right-hand column */
.howwork_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "head visual"
    "body visual";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 6vw, 7rem);
}
.howwork_head { grid-area: head; }
.howwork_body { grid-area: body; }
.howwork_visual {
  grid-area: visual;
  align-self: center;
}
.howwork_head .audience_header {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.howwork_lede {
  font-size: var(--fs-large);
  line-height: 1.65;
  max-width: 46ch;
}
.howwork_list {
  list-style: none;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.14);
}
.howwork_item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.14);
  cursor: default;
  position: relative;
  transition: color 0.4s ease;
}
.howwork_item::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-expo);
}
.howwork_item.is-active::before {
  transform: scaleY(1);
}
.howwork_num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  color: var(--brand-600);
  padding-top: 0.2rem;
}
.howwork_item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.howwork_item p {
  grid-column: 2;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.72;
  margin-top: 0.15rem;
}
.howwork_cta {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- sub page: the six steps in detail ---------- */
.sixstep_grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.sixstep_aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sixstep_aside .cycle {
  max-width: 32rem;
}
.sixstep_note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.16);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 40ch;
  opacity: 0.75;
}
.sixstep_list {
  list-style: none;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.14);
}
.sixstep_item {
  padding: clamp(2rem, 5vh, 3.25rem) 0;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.14);
  transition: opacity 0.5s ease;
}
.sixstep_kicker {
  display: block;
  color: var(--brand-600);
  margin-bottom: 0.9rem;
}
.sixstep_item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  max-width: 20ch;
}
.sixstep_summary {
  margin-top: 1rem;
  font-size: var(--fs-large);
  line-height: 1.65;
  max-width: 52ch;
}
.sixstep_cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.sixstep_cols h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-bottom: 0.6rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.14);
}
.sixstep_cols ul {
  list-style: none;
}
.sixstep_cols li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.sixstep_cols li svg {
  flex: none;
  margin-top: 0.3em;
  color: var(--brand-500);
}

/* ---------- sub page: SMART goals ---------- */
.smart_grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgb(var(--ivory-rgb) / 0.2);
}
.smart_card {
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 1.6vw, 1.6rem) clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid rgb(var(--ivory-rgb) / 0.2);
  border-bottom: 1px solid rgb(var(--ivory-rgb) / 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.smart_card:first-child {
  border-left: 1px solid rgb(var(--ivory-rgb) / 0.2);
}
.smart_letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  color: var(--brand-300);
}
.smart_card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.smart_card p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.78;
}
.smart_example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.smart_example div {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgb(var(--ivory-rgb) / 0.2);
  border-radius: 0.6rem;
}
.smart_example div:last-child {
  background: var(--brand-600);
  border-color: var(--brand-600);
}
.smart_example span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 0.5rem;
}
.smart_example p {
  font-size: var(--fs-large);
  line-height: 1.5;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .howwork_grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "visual" "body";
    grid-template-rows: auto;
  }
  .howwork_visual { margin-top: clamp(2rem, 5vw, 3rem); }
  .sixstep_grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .howwork_visual .cycle,
  .sixstep_aside .cycle { max-width: 26rem; }
  .sixstep_aside { position: static; }
  .smart_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart_card:nth-child(odd) { border-left: 1px solid rgb(var(--ivory-rgb) / 0.2); }
  .smart_card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sixstep_cols,
  .smart_example { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .smart_grid { grid-template-columns: minmax(0, 1fr); }
  .smart_card { border-left: 1px solid rgb(var(--ivory-rgb) / 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .cycle[data-cycle-reveal] .cycle_seg,
  .cycle[data-cycle-reveal] .cycle_arrow,
  .cycle[data-cycle-reveal] .cycle_hub_group {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cycle_seg path,
  .cycle_num,
  .cycle_label,
  .howwork_item::before { transition: none; }
}
