/* ==========================================================================
   TheConsulting.io — round 4 components (loaded after theconsulting.css)
   Custom illustrations, service presentation and homepage sections.
   ========================================================================== */

/* ---------- Illustrations ---------- */
.tc-illus { display: block; width: 100%; height: auto; overflow: visible; }
.tc-illus .ti-ink,
.tc-illus .ti-green,
.tc-illus .ti-faint,
.tc-illus .ti-faint-d,
.tc-illus .ti-grid,
.tc-illus .ti-grid-thick { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tc-illus .ti-ink { stroke: var(--tc-forest); stroke-width: 2.5; }
.tc-illus .ti-green { stroke: var(--tc-green); stroke-width: 3; }
.tc-illus .ti-thick { stroke-width: 7; }
.tc-illus .ti-faint { stroke: #b9c7c1; stroke-width: 2; stroke-dasharray: 4 6; }
.tc-illus .ti-faint-d { stroke: #c9d4cf; stroke-width: 3; stroke-dasharray: 6 8; }
.tc-illus .ti-grid { stroke: #c9d4cf; stroke-width: 1.5; }
.tc-illus .ti-grid-thick { stroke: #dbe4e0; stroke-width: 7; }
.tc-illus .ti-card { fill: #fff; stroke: var(--tc-forest); stroke-width: 2.5; }
.tc-illus .ti-card-s { fill: #fff; stroke: var(--tc-green); stroke-width: 3; }
.tc-illus .ti-soft { fill: #e3ebe7; stroke: none; }
.tc-illus .ti-soft-s { fill: #f4f7f5; stroke: #dbe4e0; stroke-width: 2; }
.tc-illus .ti-soft-g { fill: #cfe3db; stroke: none; }
.tc-illus .ti-fillg { fill: var(--tc-green); stroke: none; }
.tc-illus .ti-fillg-c { fill: #cfe3db; stroke: var(--tc-forest); stroke-width: 2.5; }
.tc-illus .ti-brass-f { fill: var(--tc-brass); stroke: none; }
.tc-illus .ti-brass-o { fill: #f6efe0; stroke: var(--tc-brass); stroke-width: 2.5; }
.tc-illus .ti-brass-hl { fill: rgba(176, 138, 62, .22); stroke: none; }
.tc-illus .ti-before { fill: rgba(86, 100, 95, .08); stroke: #9aa8a3; stroke-width: 2; stroke-dasharray: 5 5; }
.tc-illus .ti-after { fill: rgba(68, 140, 116, .18); stroke: var(--tc-green); stroke-width: 3; stroke-linejoin: round; }
.tc-illus .ti-t { font-family: var(--tc-sans); font-size: 20px; font-weight: 600; fill: var(--tc-forest); }
.tc-illus .ti-t-s { font-size: 17px; font-weight: 500; fill: #3d4a45; }
.tc-illus .ti-t-l { font-family: var(--tc-serif); font-size: 36px; font-weight: 500; }
.tc-illus .ti-dark-faint { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 6 8; }
.tc-illus .ti-dark-line { fill: none; stroke: var(--tc-green-300); stroke-width: 3; stroke-linecap: round; }
.tc-illus .ti-dark-dot { fill: var(--tc-forest); stroke: var(--tc-green-300); stroke-width: 3; }

/* Line drawing on reveal (one-time, user scroll driven) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .ti-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js [data-reveal].is-inview .ti-draw { transition: stroke-dashoffset 1.3s cubic-bezier(.4, .2, .2, 1) .15s; stroke-dashoffset: 0; }
  .js [data-reveal] .ti-after { fill-opacity: 0; }
  .js [data-reveal].is-inview .ti-after { transition: fill-opacity .8s ease 1s; fill-opacity: 1; }
  .js [data-reveal] .ti-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
  .js [data-reveal].is-inview .ti-bar { transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; transform: none; }
}

.tc-illus-panel {
  position: relative;
  padding: clamp(1.25rem, .5rem + 2.5vw, 2.75rem);
  border-radius: var(--tc-radius-lg);
  background-color: var(--tc-mist);
  background-image: radial-gradient(rgba(22, 48, 42, .1) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.tc-section--mist .tc-illus-panel { background-color: #fff; }

/* ---------- Glyphs ---------- */
.tc-glyph { display: block; width: 44px; height: 44px; flex-shrink: 0; overflow: visible; }
.tc-glyph * { fill: none; stroke: var(--tc-forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-glyph .g-a { stroke: var(--tc-green); stroke-width: 2.5; }
.tc-glyph .g-f { fill: var(--tc-green); stroke: none; }

/* ---------- Hero case composition ---------- */
.tc-case-prompt {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--tc-line);
  border-left: 3px solid var(--tc-brass);
  border-radius: 8px;
  font-family: var(--tc-serif);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--tc-ink);
}
.tc-case-prompt .tc-node-label { font-family: var(--tc-sans); }
.tc-scores { margin: .6rem 0 0; padding: 0; list-style: none; font-family: var(--tc-sans); }
.tc-scores li { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; gap: .5rem; padding: .22rem 0; font-size: .75rem; color: var(--tc-on-dark-muted); }
.tc-scores i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.tc-scores i::before { content: ""; display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--tc-green-300); }
.tc-scores li:first-child i::before { background: #d9c08a; }
@media (prefers-reduced-motion: no-preference) {
  .js .tc-tree .tc-scores i::before { width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1) 2.2s; }
  .js .tc-tree.is-drawn .tc-scores i::before { width: var(--v); }
}
.tc-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2rem; font-size: .9375rem; color: var(--tc-slate); }
.tc-hero-meta strong { font-family: var(--tc-serif); font-size: 1.5rem; font-weight: 500; color: var(--tc-ink); margin-right: .35rem; }
.tc-lede-strong {
  margin: -.5rem 0 1rem;
  font-family: var(--tc-serif);
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--tc-green-700);
}
.tc-firm p.tc-lede-strong { color: var(--tc-green-700); }

/* ---------- Offer list (homepage services) ---------- */
.tc-offer-group { margin: 0 0 .5rem; padding-top: 1.75rem; font-size: .875rem; font-weight: 600; color: var(--tc-green-700); }
.tc-offer-group:first-child { padding-top: 0; }
.tc-offer { margin: 0; padding: 0; list-style: none; }
.tc-offer a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 1.25rem;
  align-items: start;
  padding-block: 1.1rem;
  border-top: 1px solid var(--tc-line);
  color: inherit;
  text-decoration: none;
}
.tc-offer li:last-child a { border-bottom: 1px solid var(--tc-line); }
.tc-offer h3 { margin: .15rem 0 .25rem; font-size: 1.3125rem; line-height: 1.25; transition: color .2s ease; }
.tc-offer p { margin: 0; font-size: .9375rem; }
.tc-offer a:hover h3, .tc-offer a:focus-visible h3 { color: var(--tc-green-700); }
.tc-offer a:hover .tc-glyph .g-a { stroke: var(--tc-brass); }

/* ---------- Results ratio ---------- */
.tc-ratio { display: grid; gap: 2rem; margin: 3rem 0 0; }
.tc-ratio-row { display: grid; grid-template-columns: minmax(9rem, 14rem) auto minmax(0, 1fr); align-items: center; gap: 1rem 2rem; }
.tc-ratio-num { font-family: var(--tc-serif); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: #fff; }
.tc-ratio-row.is-us .tc-ratio-num { color: #e2c98f; }
.tc-ratio-label { font-size: .9375rem; color: var(--tc-on-dark-muted); }
.tc-ratio-label b { display: block; font-size: 1.0625rem; font-weight: 600; color: #fff; }
.tc-people { display: flex; flex-wrap: wrap; gap: .5rem; }
.tc-people svg { width: 30px; height: 44px; }
.tc-people .p { fill: rgba(255, 255, 255, .16); }
.tc-people .p.on { fill: var(--tc-green-300); }
.tc-ratio-row.is-us .tc-people .p.on { fill: #e2c98f; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .tc-people .p.on { fill: rgba(255, 255, 255, .16); transition: fill .6s ease .6s; }
  .js [data-reveal].is-inview .tc-people .p.on { fill: var(--tc-green-300); }
  .js [data-reveal].is-inview .is-us .tc-people .p.on { fill: #e2c98f; transition-delay: 1.1s; }
}
@media (max-width: 767.98px) {
  .tc-ratio-row { grid-template-columns: auto 1fr; }
  .tc-ratio-row .tc-people { grid-column: 1 / -1; }
}
.tc-stats--dark { border-color: rgba(255, 255, 255, .16); margin-top: 3rem; }
.tc-stats--dark > div + div { border-left-color: rgba(255, 255, 255, .16); }
.tc-stats--dark dt { color: #fff; }
.tc-stats--dark dd { color: var(--tc-on-dark-muted); }
@media (max-width: 575.98px) {
  .tc-stats--dark > div:nth-child(3), .tc-stats--dark > div:nth-child(4) { border-top-color: rgba(255, 255, 255, .16); }
}

/* ---------- Reasons ---------- */
.tc-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.tc-reasons > div { padding-block: 1.25rem; border-top: 1px solid var(--tc-line); }
.tc-reasons dt { margin-bottom: .35rem; font-family: var(--tc-serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.25; color: var(--tc-ink); }
.tc-reasons dd { margin: 0; font-size: .9375rem; color: var(--tc-slate); }
@media (max-width: 767.98px) { .tc-reasons { grid-template-columns: 1fr; } }

/* ---------- Consultants ---------- */
.tc-mentors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.tc-mentor { padding-top: 1.25rem; border-top: 1px solid var(--tc-line); }
.tc-mentor img {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tc-line);
}
.tc-mentor h3 { margin: 0 0 .15rem; font-size: 1.25rem; }
.tc-mentor .tc-mentor-role { display: block; margin-bottom: .6rem; font-size: .875rem; font-weight: 600; color: var(--tc-green-700); }
.tc-mentor p { margin: 0; font-size: .9375rem; }
@media (max-width: 991.98px) { .tc-mentors { grid-template-columns: 1fr; } .tc-mentor { display: grid; grid-template-columns: 72px 1fr; gap: 0 1.25rem; } .tc-mentor img { grid-row: 1 / span 3; } }
.tc-firms { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--tc-line); }
.tc-firms span:first-child { font-size: .875rem; color: var(--tc-slate); }
.tc-firms b { font-family: var(--tc-serif); font-size: 1.5rem; font-weight: 500; color: var(--tc-ink); letter-spacing: -.01em; }

/* ---------- Roadmap ---------- */
.tc-roadmap { margin-top: 3.5rem; }
.tc-roadmap-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: phase; }
.tc-roadmap-cols > li { counter-increment: phase; }
.tc-roadmap-cols h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 1rem; }
.tc-roadmap-cols h3::before { content: "Phase " counter(phase); display: block; margin-bottom: .5rem; font-family: var(--tc-sans); font-size: .875rem; font-weight: 600; color: var(--tc-green-300); }
.tc-roadmap-cols ul { margin: 0; padding: 0; list-style: none; }
.tc-roadmap-cols ul li { position: relative; padding: .55rem 0 .55rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9375rem; color: var(--tc-on-dark-muted); }
.tc-roadmap-cols ul li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--tc-green-300); }
@media (max-width: 991.98px) {
  .tc-roadmap .tc-illus--wide { display: none; }
  .tc-roadmap-cols { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Audiences ---------- */
.tc-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.tc-audiences > div { padding-block: 1.25rem; border-top: 1px solid var(--tc-line); }
.tc-audiences dt { margin-bottom: .35rem; font-size: 1.0625rem; font-weight: 600; color: var(--tc-ink); }
.tc-audiences dd { margin: 0; font-size: .9375rem; color: var(--tc-slate); }
@media (max-width: 991.98px) { .tc-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .tc-audiences { grid-template-columns: 1fr; } }
.tc-also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.tc-also a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.tc-also a:hover, .tc-also a:focus-visible { border-color: var(--tc-green); background: #f7faf8; }
.tc-also h3 { margin: 0 0 .35rem; font-size: 1.375rem; }
.tc-also p { margin: 0 0 .75rem; font-size: .9375rem; }
@media (max-width: 767.98px) { .tc-also { grid-template-columns: 1fr; } }

/* ---------- Outcomes ---------- */
.tc-feature-quote { margin: 0; }
.tc-feature-quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--tc-serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.3;
  color: var(--tc-ink);
}
.tc-feature-quote figcaption { font-size: .9375rem; color: var(--tc-slate); }
.tc-feature-quote figcaption b { display: block; color: var(--tc-ink); font-weight: 600; }
.tc-moves { margin: 0; padding: 0; list-style: none; }
.tc-moves a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.25fr);
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--tc-line);
  color: inherit;
  text-decoration: none;
}
.tc-moves li:last-child a { border-bottom: 1px solid var(--tc-line); }
.tc-move-from { font-size: .9375rem; color: var(--tc-slate); }
.tc-move-to { font-family: var(--tc-serif); font-size: 1.25rem; line-height: 1.25; color: var(--tc-ink); transition: color .2s ease; }
.tc-move-to small { display: block; margin-top: .2rem; font-family: var(--tc-sans); font-size: .8125rem; color: var(--tc-green-700); font-weight: 600; }
.tc-move-arrow { width: 64px; height: 14px; overflow: visible; }
.tc-move-arrow path { fill: none; stroke: var(--tc-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.tc-moves a:hover .tc-move-to { color: var(--tc-green-700); }
.tc-moves a:hover .tc-move-arrow path { transform: translateX(4px); }

/* ---------- Contact band ---------- */
.tc-contact-band .tc-form-card { background: #fff; }
.tc-contact-band .tc-callouts { margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.tc-contact-band .tc-callouts li { position: relative; padding: .6rem 0 .6rem 1.75rem; border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.tc-contact-band .tc-callouts li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .75rem; height: .4rem; border-left: 2px solid var(--tc-green-300); border-bottom: 2px solid var(--tc-green-300); transform: rotate(-45deg); }
.tc-contact-band .tc-small { color: var(--tc-on-dark-muted); }
.tc-contact-band .tc-link { color: #fff; }

/* ---------- Services page ---------- */
.tc-svc-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--tc-line); }
.tc-svc-index a {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--tc-line);
  color: var(--tc-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.tc-svc-index a:hover { color: var(--tc-green-700); }
.tc-svc-index a:hover .g-a { stroke: var(--tc-brass); }
@media (max-width: 991.98px) { .tc-svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .tc-svc-index { grid-template-columns: 1fr; } }
.tc-svc-group { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.tc-svc-group-title { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tc-ink); }
.tc-svc-group-title h2 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.tc-svc-group-title span { font-size: .875rem; color: var(--tc-slate); }
.tc-svc-row { padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--tc-line); }
.tc-svc-row:last-child { border-bottom: 0; }
.tc-svc-row .tc-h2 { margin-bottom: 1rem; }
.tc-svc-points { margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; }
.tc-svc-points li { position: relative; padding: .6rem 0 .6rem 1.75rem; border-top: 1px solid var(--tc-line); color: var(--tc-ink); font-size: .9875rem; }
.tc-svc-points li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: .75rem; height: .4rem; border-left: 2px solid var(--tc-green); border-bottom: 2px solid var(--tc-green); transform: rotate(-45deg); }
.tc-svc-row .tc-glyph { width: 40px; height: 40px; margin-bottom: 1.25rem; }
@media (min-width: 992px) {
  .tc-svc-row:nth-child(even) .tc-svc-visual { order: 2; }
}
.tc-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; counter-reset: pillar; }
.tc-pillars li { position: relative; padding: .9rem .75rem .9rem 0; border-top: 2px solid var(--tc-green); font-size: .875rem; color: var(--tc-slate); }
.tc-pillars li + li { padding-left: .75rem; }
.tc-pillars b { display: block; font-family: var(--tc-serif); font-size: 1.125rem; font-weight: 500; color: var(--tc-ink); }
@media (max-width: 575.98px) { .tc-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-pillars li:nth-child(3) { padding-left: 0; } }

/* Form card sitting on a dark band keeps light-surface text colours */
.tc-contact-band .tc-form-card p,
.tc-contact-band .tc-form-card .tc-form-note { color: var(--tc-slate); }
.tc-contact-band .tc-form-card a:not(.tc-btn) { color: var(--tc-slate); }
.tc-contact-band .tc-form-card .tc-form-status.is-success { color: var(--tc-green-700); }
.tc-contact-band .tc-form-card .tc-form-status.is-error { color: #a13d32; }
.tc-section--forest .tc-crumbs, .tc-section--forest .tc-crumbs a:not(.tc-btn) { color: var(--tc-on-dark-muted); }
.tc-section--forest .tc-crumbs li + li::before { color: rgba(255, 255, 255, .3); }
@media (min-width: 992px) {
  .tc-svc-row:nth-child(even) .tc-svc-copy { margin-left: 0; }
  .tc-svc-row:nth-child(even) .tc-svc-visual { margin-left: 8.333333%; }
}
