/* Drawn explanations: coordination, range-of-work scale, connected paths, disclosures, section links.
   Loaded only on the pages that use them, after site.css. No inline styles anywhere (CSP). */

/* ---------- title + description that folds on phones ---------- */
.d-mob { display: none; }
@media (max-width: 719px) {
  .d-desk { display: none !important; }
  .d-mob { display: block; }
  .rows .d-mob { grid-column: 1 / -1; }
  .rows li:has(.d-mob) { padding-block: 0; display: block; }
  .d-mob summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 8px;
    cursor: pointer; list-style: none;
  }
  .d-mob summary::-webkit-details-marker { display: none; }
  .d-mob summary h3 { font-size: 1.125rem; line-height: 1.3; }
  .d-mob summary::after {
    content: ''; flex: none; width: 9px; height: 9px; margin-right: 6px;
    border: solid var(--gold-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s;
  }
  .d-mob[open] summary::after { transform: rotate(-135deg); }
  .d-mob p { padding: 0 0 18px; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
  .d-mob summary:focus-visible { outline-offset: -2px; }
}

/* ---------- coordination hub ---------- */
.hub-intro { display: grid; gap: clamp(20px, 3vw, 32px); margin-bottom: clamp(28px, 4vw, 48px); }
.hub-text > * + * { margin-top: 1.1em; }
.hub-photo { display: none; }
@media (min-width: 900px) {
  .hub-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 96px); align-items: center; }
  .hub-photo { display: block; }
  .hub-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
}
/* A centered root and continuous branches: each trade belongs to the same tree. */
.coordination { padding-block: var(--s4); max-width: 60rem; margin-inline: auto; }
.coord-flow { position: relative; text-align: center; padding-bottom: 40px; }
.coord-flow strong { color: var(--gold-deep); font-size: 1.125rem; letter-spacing: .08em; font-weight: 600; }
.coord-flow::after { content: ''; position: absolute; left: 50%; bottom: 0; height: 28px; width: 1px; background: var(--gold); }
.coord-crews { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coord-crews::before { content: ''; position: absolute; top: 0; left: 16.6667%; width: 66.6666%; height: 1px; background: var(--gold); transform-origin: center; }
.coord-crews li { position: relative; display: grid; place-items: center; min-height: 88px; text-align: center; font-size: 1rem; }
.coord-crews li::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--gold); }
.coord-crews li:nth-last-child(-n+3)::before { bottom: 50%; }
.coord-crews li span { position: relative; padding: 8px 12px; background: var(--cream); }
@media (max-width: 719px) {
  .coord-crews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coord-crews::before { left: 25%; width: 50%; }
  .coord-crews li { min-height: 76px; font-size: .875rem; }
  .coord-crews li:nth-last-child(-n+3)::before { bottom: 0; }
  .coord-crews li:nth-last-child(-n+2)::before { bottom: 50%; }
  .coord-crews li span { padding-inline: 6px; }
  .coord-flow strong { font-size: 1rem; letter-spacing: .06em; }
}
/* The diagram is complete before enhancement and with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .draw-ready.is-drawn .coord-crews::before { animation: draw-rule 1s ease-out both; }
  @keyframes draw-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.hub-points { list-style: none; margin: clamp(24px, 3.5vw, 40px) 0 0; padding: 0; display: grid; gap: 0; counter-reset: hp; }
.hub-points li { position: relative; padding: 0 0 0 52px; border-top: 1px solid var(--rule); }
.hub-points li:last-child { border-bottom: 1px solid var(--rule); }
.hub-no {
  position: absolute; left: 0; top: 14px; width: 30px; height: 30px; color: var(--gold-deep);
  display: grid; place-items: center; font: 400 1.75rem/1 var(--serif);
}
.hub-points h3 { font-size: var(--t-h3); padding-top: 18px; }
.hub-points p { margin: 6px 0 0; color: var(--ink-soft); }
@media (min-width: 720px) {
  .hub-points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .hub-points li { border-bottom: 0 !important; padding: 20px 0 0 48px; border-top: 1px solid var(--gold); }
  .hub-points .hub-no { top: 20px; }
  .hub-points h3 { padding-top: 0; min-height: 2.6em; }
  .hub-points p { font-size: 1.0625rem; }
}
@media (max-width: 719px) {
  .hub-points li { padding-left: 46px; }
  .hub-points .hub-no { top: 13px; }
  .hub-points .d-mob summary { padding-right: 4px; }
}

/* ---------- range of work: a scale from small to large ---------- */
.scale { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.scale li { position: relative; padding-top: 14px; border-top: 1px solid var(--rule); }
.scale li:last-child { border-bottom: 1px solid var(--rule); }
.scale li::before { content: ''; position: absolute; left: 0; top: -1px; height: 4px; background: var(--gold); }
.scale-1::before { width: 16.7%; } .scale-2::before { width: 33.3%; } .scale-3::before { width: 50%; }
.scale-4::before { width: 66.7%; } .scale-5::before { width: 83.3%; } .scale-6::before { width: 100%; }
.scale h3 { font-size: 1.25rem; }
.scale p { margin: 6px 0 0; color: var(--ink-soft); }
@media (max-width: 719px) { .scale li { padding-top: 0; } .scale li::before { height: 3px; } .scale .d-mob summary { padding-top: 10px; } }
@media (min-width: 720px) and (max-width: 1179px) {
  .scale li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline; padding-block: 24px; }
  .scale li::before { height: 4px; }
}
@media (min-width: 1180px) {
  .scale { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; column-gap: 12px; }
  .scale li, .scale li:last-child {
    border: 0; border-top: 4px solid var(--gold); background: var(--stone); padding: 22px 18px 20px;
  }
  .scale li::before { display: none; }
  .scale-1 { min-height: 250px; } .scale-2 { min-height: 295px; } .scale-3 { min-height: 340px; }
  .scale-4 { min-height: 385px; } .scale-5 { min-height: 430px; } .scale-6 { min-height: 475px; }
  .scale li.scale-6 { background: var(--ink); color: var(--cream); border-top-color: var(--gold-light); }
  .scale-6 p { color: var(--muted-on-ink); }
  .scale h3 { font-size: 1.1875rem; line-height: 1.3; }
  .scale p { font-size: 1rem; line-height: 1.55; }
}

/* ---------- numbered stages ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); counter-reset: stage; }
.path li { counter-increment: stage; position: relative; padding-left: 56px; }
.path-node { position: absolute; top: 0; left: 0; color: var(--gold-deep); font: 400 1.75rem/1.3 var(--serif); }
.path-node::before { content: counter(stage, decimal-leading-zero); }
.path h3 { font-size: 1.25rem; line-height: 1.3; }
.path p { margin: var(--s1) 0 0; color: var(--ink-soft); font-size: 1.0625rem; }
.path .d-mob summary { padding-top: 2px; min-height: 40px; }
@media (min-width: 900px) {
  .path--3, .path--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path li { padding-left: 0; }
  .path-node { position: static; display: block; margin-bottom: var(--s2); }
}

.path + .btn { margin-top: var(--s5); }

/* ---------- home ---------- */
.intro-visual { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.intro-text { display: grid; gap: 22px; justify-items: start; }
.intro-text .btn { margin-top: 6px; }
.hub-solo { padding-block: var(--s3); }
.hub-solo .coord-crews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-solo .coord-crews::before { left: 25%; width: 50%; }
.hub-solo .coord-crews li::before { bottom: 0; }
.hub-solo .coord-crews li:nth-last-child(-n+2)::before { bottom: 50%; }
@media (min-width: 900px) { .intro-visual { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(40px, 7vw, 112px); } }

/* Four open section links, separated by whitespace and a fine rule. */
.doors { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); border: 0; }
.doors a { display: grid; align-content: start; gap: 12px; height: 100%; padding: var(--s3) 0 0; border-top: 1px solid var(--gold); text-decoration: none; }
.doors a:hover .door-go { text-decoration: underline; text-underline-offset: .25em; }
.doors h2 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); }
.doors p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.door-go { margin-top: 4px; min-width: 0; justify-self: start; }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
@media (min-width: 900px) { .doors a { grid-template-columns: 1fr; } .door-go { justify-self: start; min-width: 0; justify-content: flex-start; } }

.door-go { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.door-go .icon { width: 20px; height: 20px; }
.hub-photo { position: relative; padding-right: 12%; padding-bottom: var(--s4); }
.hub-photo img { aspect-ratio: 4 / 3; }
.hub-photo .hub-photo-2 { width: 46%; position: absolute; bottom: 0; right: 0; aspect-ratio: 1; border: 8px solid var(--cream); }
