:host {
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 22 22%27 fill=%27none%27%3E%3Cpath d=%27M10.6445 0C16.5234 0 21.2898 4.76568 21.29 10.6445C21.29 16.5236 16.5236 21.29 10.6445 21.29C4.76568 21.2898 0 16.5234 0 10.6445C0.000253564 4.76583 4.76583 0.000253569 10.6445 0ZM9.43359 6.1709C9.10584 5.8433 8.57391 5.84339 8.24609 6.1709C7.91826 6.49873 7.91827 7.03153 8.24609 7.35938L11.8496 10.9629L8.24805 14.5664C7.92059 14.8941 7.92067 15.4261 8.24805 15.7539C8.57589 16.0817 9.10868 16.0817 9.43652 15.7539L13.6328 11.5576L13.6299 11.5557C13.9576 11.2278 13.9577 10.695 13.6299 10.3672L9.43359 6.1709Z%27 fill=%27%23000%27/%3E%3C/svg%3E");
  --arrow-right: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cline x1=%274%27 y1=%2712%27 x2=%2720%27 y2=%2712%27/%3E%3Cpolyline points=%2714 6 20 12 14 18%27/%3E%3C/svg%3E");
  --arrow-left:  url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cline x1=%2720%27 y1=%2712%27 x2=%274%27 y2=%2712%27/%3E%3Cpolyline points=%2710 6 4 12 10 18%27/%3E%3C/svg%3E");
  --arrow-down:  url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%235C6F54%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27/%3E%3C/svg%3E");
  --terracottaAccent: #C06A45;
  --brown: #5A231B;
  --green: #01562b;
  --olive: #667038;
  --accentColor: var(--green);
 /* Spacing */
  --spacingExtraSmall: 6px;
  --spacingSmall: 12px;
  --spacingMedium: 24px;
  --spacingSemilarge: 32px;
  --spacingLarge: 48px;
  --spacingExtraLarge: 80px;
  --spacingDoubleExtraLarge: 150px;

 /* border-radius */
 --borderRadiusSmall: 16px;

 /* border */
 --borderColorDefault: #EBE4D4;
 --borderDefault: 1px solid var(--borderColorDefault);

 /* box-shadow */
 --boxShadowDefault: 0 18px 40px -28px rgba(38, 51, 43, .35);
}
body{
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-weight: normal;
}
.text-medium{
    letter-spacing: -0.01em;
    font-size: 1.125rem;
    line-height: 1.25;
}

button{
  appearance: none;
  border: unset;
  padding: unset;
  background: unset;
}
.button{
    display: inline-flex;
    gap: 1.25rem;
    background-color: rgb(201, 111, 74);
    color: rgb(255, 248, 242);
    text-align: center;
    text-transform: uppercase;
    text-wrap: pretty;
    border-radius: 100px;
    border: 2px solid transparent;
    justify-content: center;
    align-items: center;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 900;
    text-decoration: none;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform 200ms ease-out;
}
.button:hover{
    background-color: transparent;
    border-color: rgb(201, 111, 74);
    color: rgb(201, 111, 74);
}
.is-pale-yellow{
    background-color: var(--_primitives---colors--pale-yellow);
    color: var(--_primitives---colors--chocolate);
}

.icon-arrow-cta:after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: currentColor; /* mask = the paint comes from here */
  -webkit-mask-image: var(--icon-arrow);
          mask-image: var(--icon-arrow);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}


@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes fadeSlideLeftOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }

h2{
  font-family: var(--_typography---font-styles--heading);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: normal;
  margin-top: var(--spacingSmall);
  margin-bottom: var(--spacingMedium);
}

h3{
    font-family: var(--_typography---font-styles--heading);
    font-size: 28px;
    line-height: 33.6px;
    font-weight: normal;
    margin-top: var(--spacingSmall);
    margin-bottom: var(--spacingMedium);
}

.card-defaults{
  background: #FFFDF8;
  border: var(--borderDefault);
  border-radius: var(--borderRadiusSmall);
  box-shadow: 0 1px 2px rgba(38,51,43,.06), 0 18px 40px -28px rgba(38,51,43,.35);
  text-decoration: none;
  width: 100%;
  padding: unset;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card-defaults h3{
    margin: unset;
}
.card-defaults:hover .icon-next:after{
    transform: translateX(10px);
}
.card-defaults__description{
    font-size: 15px;
    line-height: 1.6;
    color: #5C6A5F;
}
.card-defaults__tag{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF3EA;
    border: 1px solid #D7E2CF;
    border-radius: 99px;
    padding: 7px 15px;
    margin-top: 32px;
    font-size: 14px;
    font-weight: 600;
    color: #34503F;
}
.eyebrow{
    font-family: "Swiss 721 Bt", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .64px;
    font-weight: 700;
    color: var(--intro-eyebrow-color, rgb(201, 111, 74));
    margin-bottom: 12px;
    text-transform: uppercase;
}

.icon-prev, .icon-next{
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}
.icon-prev::before {
  width: 24px;
  height: 24px;
  content:'';
  background-color: currentColor; /* arrow takes button text color */
  -webkit-mask: var(--arrow-left) center / contain no-repeat;
          mask: var(--arrow-left) center / contain no-repeat;
}
.icon-next::after {
  width: 24px;
  height: 24px;
  content:'';
  background-color: currentColor;
  -webkit-mask: var(--arrow-right) center / contain no-repeat;
  mask: var(--arrow-right) center / contain no-repeat;
  transition: .3s ease;
}
.primary-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgb(201, 111, 74);
  color: rgb(255, 248, 242);
  text-align: center;
  text-transform: uppercase;
  text-wrap: pretty;
  font-weight: 900;
  font-size: .875rem;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform 200ms ease-out;
}
.primary-button:hover{
  background: transparent;
  border-color: rgb(201, 111, 74);
  color: rgb(201, 111, 74);
  transform: translateY(-2px);
}

.tab-button{ 
  display: inline-flex;
  background: rgba(247, 244, 236, 0.4);
  color: #5A231B;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(107, 43, 34, 0.35);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.tab-button:hover, .tab-button--active{
    background: #5A231B;  
    border: 1px solid rgba(107, 43, 34, 0.35);
    color: #F7F4EC;
}
.content-block {
    display: flex;
    justify-content: center;
    padding-bottom: var(--spacingLarge);
}

.content-block__inner {
    max-width: 720px;
    text-align: center;
}

.content-block--left-align {
    justify-content: flex-start;
}

.content-block--left-align .content-block__inner {
    text-align: left;
}

.content-block__header {
    font-size: 48px;
    line-height: 52.8px;
    font-family: var(--_typography---font-styles--heading);
    color: var(--intro-header-color, #26332B);
    margin-top: 16px;
    margin-bottom: 20px;
    font-weight: normal;
}

.content-block__subheader {
    margin-top: unset;
    font-size: 18px;
    line-height: 1.6;
    color: var(--intro-subheader-color, #5C6A5F);
}

.content-block:has(.button) .content-block__subheader {
    margin-bottom: var(--spacingSemilarge);
}
/* Theme props (accentColor, inkColor, bodyColor, backgroundColor,
   headingFont, bodyFont) are set as CSS custom properties on the root
   section in winding-path.tsx — every rule below reads them via var(...)
   instead of each element carrying its own inline style. */
.winding-path {
  position: relative;
  background: var(--wp-bg);
  color: var(--wp-ink);
  font-family: var(--wp-body-font);
  /* Only vertical — horizontal padding lives on .winding-path__header-inner
     instead, so the track/stops area stays full-bleed. */
  padding: var(--spacingExtraLarge) 0 0;
}

.winding-path__stage {
  position: sticky;
  top: 150px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--wp-bg);
}

/* ---------- Header ---------- */

.winding-path__header {
  width: 100%;
}
.winding-path__header-inner {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1217px;
  margin: 0 auto;
}
/* .winding-path__header--standalone/--pinned: JS (isNarrowViewport in
   winding-path.tsx) mounts exactly one of these at a time, so no
   display:none/block toggling is needed here — see that comment for why
   it's JS-driven rather than a CSS visibility swap. */
@media (max-width: 992px){
    /* --inner (not .winding-path__header, which is content-box) — padding
       plus width:100% on a content-box element adds up to >100% and pushes
       the intro past the right edge of the screen. Still relevant here even
       though .winding-path__stage never renders on mobile — this same
       header markup is reused for the standalone (mobile) copy too. */
    .winding-path__header-inner{
        padding-left: 5%;
        padding-right: 5%;
    }
}
.winding-path__header-text {
  /* Matches the intro max-width used elsewhere in this project (e.g.
     .logo-tabber__intro, .case-study__intro). */
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Sizing/weight/margins match the site-wide .content-block__header
   convention in global.css exactly — color/font-family still come from the
   --wp-ink/--wp-heading-font theme props (which already default to that
   same convention's values) so the Style props stay configurable. */
.winding-path__heading {
  font-family: var(--wp-heading-font);
  font-weight: normal;
  font-size: 48px;
  line-height: 52.8px;
  color: var(--wp-ink);
  margin: unset;
}
.winding-path__subtitle {
  margin: 0;
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--wp-body);
}

.winding-path__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
}
@media (max-width: 992px){
    /* Needs to come after the base rule above — same selector/specificity,
       so declaring it earlier in the file (as it was before) let the base
       display:flex win regardless of viewport width. */
    .winding-path__nav{
        display: none;
    }
}
.winding-path__counter {
  min-width: 48px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--wp-body);
}
.winding-path__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  color: var(--wp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* ---------- Track ---------- */

.winding-path__track-viewport {
  position: relative;
  height: 530px; /* TRACK_H (520) + 10 */
  flex: none;
}
.winding-path__track {
  position: absolute;
  left: 0;
  top: 0;
  width: 3240px; /* TRACK_W = 2760 + LEAD_IN (480) */
  height: 520px; /* TRACK_H */
  will-change: transform;
  transform: translateX(calc(var(--tx) * 1px));
}

.winding-path__ghost-path {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.winding-path__ghost-path path {
  fill: none;
  stroke: var(--wp-accent);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-dasharray: 1 8;
  opacity: 0.35;
}

.winding-path__reveal {
  position: absolute;
  left: 0;
  top: -20px;
  height: 560px; /* TRACK_H (520) + 40 */
  overflow: hidden;
  width: calc(var(--reveal-x) * 1px);
}
.winding-path__drawn-path {
  position: absolute;
  left: 0;
  top: 20px;
  overflow: visible;
}
.winding-path__drawn-path path {
  fill: none;
  stroke: var(--wp-accent);
  stroke-width: 2px;
  stroke-linecap: round;
  opacity: 0.8;
}

.winding-path__head {
  position: absolute;
  left: calc(var(--hx) * 1px - 5px);
  top: calc(var(--hy) * 1px - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--wp-accent) 20%, transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}
.winding-path__head--visible {
  opacity: 1;
}

/* ---------- Stops ---------- */
/* --sx/--sy (each stop's dot position, from the DOTS geometry) are set
   per-element inline — they're computed values, not theme/layout rules,
   so they're the one thing that still has to flow through style={}. */

.winding-path__stop-visual {
  position: absolute;
  left: calc(var(--sx) * 1px - 95px);
  width: 300px; /* IMG_W */
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.winding-path__stop-visual--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.winding-path__stop-visual--image {
  top: calc(var(--sy) * 1px - 176px); /* IMG_H (170) + 6 */
  height: 200px; /* IMG_H */
  object-fit: contain;
  object-position: left bottom;
}
/* Shown when a stop has no image — line-art placeholder
   (placeholder-illustration.tsx), same box as a real image. */
.winding-path__stop-visual--placeholder {
  top: calc(var(--sy) * 1px - 176px); /* IMG_H (170) + 6 */
  height: 200px; /* IMG_H */
}
.winding-path__placeholder-art {
  display: block;
  width: 100%;
  height: 100%;
}

.winding-path__stop-dot {
  position: absolute;
  left: calc(var(--sx) * 1px - 7px);
  top: calc(var(--sy) * 1px - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wp-accent);
  box-shadow: 0 0 0 4px var(--wp-bg);
  transform: scale(0);
  transition: transform 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.winding-path__stop-dot--visible {
  transform: scale(1);
}

.winding-path__stop-text {
  position: absolute;
  /* Matches .winding-path__stop-visual's own left offset exactly, so the
     text's left edge lines up with the image above it instead of using its
     own separate (and previously mismatched) inset. */
  left: calc(var(--sx) * 1px - 95px);
  top: calc(var(--sy) * 1px + 40px);
  width: 270px; /* TEXT_W */
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 600ms ease 120ms, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms;
}
.winding-path__stop-text--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.winding-path__stop-title {
  margin: 0;
  font-family: var(--wp-heading-font);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  color: var(--wp-ink);
  white-space: pre-line;
}
.winding-path__stop-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--wp-body);
}

/* ---------- Scroll hint ---------- */

.winding-path__scroll-hint {
  position: absolute;
  right: clamp(20px, 5vw, 96px);
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp-body);
  opacity: 0;
  transition: opacity 400ms ease;
}
.winding-path__scroll-hint--visible {
  opacity: 1;
}

/* ---------- Mobile (no scroll-lock) ---------- */
/* Rendered instead of everything above when isNarrowViewport is true in
   winding-path.tsx — a plain stacked list, no track/SVG path/sticky stage,
   same spirit as application-process's own mobile treatment (see its
   .application-process__left / __right rules under max-width:991px). */
.winding-path__mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacingLarge);
  padding: var(--spacingLarge) 5% 0;
  box-sizing: border-box;
}
.winding-path__mobile-step {
  display: flex;
  gap: var(--spacingSmall);
}
/* The rail stretches to match its row's content height (flex default
   align-items:stretch), and its ::before line reaches past its own bottom
   edge, through the row gap, into the next rail — so dot-to-dot it reads as
   one continuous line down the list without measuring anything in JS. */
.winding-path__mobile-step-rail {
  position: relative;
  flex: 0 0 14px;
  display: flex;
  justify-content: center;
}
.winding-path__mobile-step-rail::before {
  content: '';
  position: absolute;
  top: 7px;
  bottom: calc(-1 * var(--spacingLarge) - 7px);
  width: 1px;
  background: var(--wp-accent);
  opacity: 0.4;
}
.winding-path__mobile-step:last-child .winding-path__mobile-step-rail::before {
  display: none;
}
.winding-path__mobile-step-dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--wp-accent);
}
.winding-path__mobile-step-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacingSmall);
  flex: 1 1 auto;
  min-width: 0;
}
.winding-path__mobile-step-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ---------- Reduced motion ---------- */
/* Replaces the old per-element `reduced ? 'none' : '...'` inline ternaries
   — the same effect, driven by the media query instead of JS. */
@media (prefers-reduced-motion: reduce) {
  .winding-path__head,
  .winding-path__stop-visual,
  .winding-path__stop-dot,
  .winding-path__stop-text,
  .winding-path__scroll-hint {
    transition: none;
  }
}

