/* Service-page diagrams (design-and-build, office-fit-out). Uses the site tokens; transform/opacity motion only. */
.viz { margin-top: 28px; }
.viz-k { font: 700 .74rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.band .viz-k { color: var(--brass); }

/* 1. Two routes: separate contracts vs one contract */
.viz-routes { display: grid; gap: 18px; }
@media (min-width: 860px) { .viz-routes { grid-template-columns: 1fr 1fr; gap: 28px; } }
.route { border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px 18px; background: var(--bg); text-align: center; }
.route.db { border: 2px solid var(--brass); background: var(--paper); }
.route h3 { font-size: 1.15rem; margin: 0 0 16px; }
.node { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font: 700 .95rem var(--body); position: relative; background: var(--bg); }
.node.one { background: var(--ink); color: var(--bg); border-color: var(--ink); margin-top: 22px; }
.node.one::before, .route .fan::before { content: ""; position: absolute; left: 50%; width: 0; border-left: 2px solid var(--brass); }
.node.one::before { top: -24px; height: 22px; }
.fan { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; padding-top: 18px; }
@media (min-width: 520px) { .fan { grid-template-columns: repeat(4, 1fr); } }
.fan::before { top: -26px; height: 26px; }
.fan::after { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; border-top: 2px solid var(--brass); }
.trad .fan::after, .trad .fan::before { border-color: var(--muted); border-style: dashed; }
.fan span { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px; border-radius: 4px; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.fan span::before { content: ""; position: absolute; top: -18px; left: 50%; height: 18px; border-left: 2px solid var(--brass); }
.trad .fan span { border: 1.5px dashed var(--muted); color: var(--muted); }
.trad .fan span::before { border-left: 2px dashed var(--muted); }
.db .fan span { border: 1.5px solid var(--brass); }
@media (max-width: 519px) { .fan::after { left: 25%; right: 25%; } .fan span::before { display: none; } }
.route-foot { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }
.route.db .route-foot { color: var(--ink); font-weight: 700; }

/* 2. Insight cards with an icon */
.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.card2 { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 20px 74px; background: var(--bg); }
.band .card2 { background: transparent; border-color: rgba(176,138,78,.35); }
.card2 h3 { font-size: 1.1rem; margin: 0 0 8px; }
.card2 p { color: var(--muted); margin: 0; }
.band .card2 p { color: var(--muted); }
.card2 p + p { margin-top: 10px; }
.card2 .ic { position: absolute; left: 20px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--brass); display: grid; place-items: center; }
.card2 .ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card2.hi { border: 2px solid var(--brass); background: var(--paper); }

/* 3. Icon tiles (what's included) */
.tiles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tiles li { border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 4px; padding: 18px 16px; background: var(--bg); font-weight: 600; line-height: 1.45; }
.tiles svg { display: block; width: 30px; height: 30px; margin-bottom: 12px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Step timeline */
.steps3 { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps3 li { counter-increment: s; position: relative; padding: 0 0 22px 58px; }
.steps3 li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #fff; font: 700 .9rem var(--display); }
.steps3 li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; border-left: 2px solid rgba(176,138,78,.45); }
.steps3 li:last-child::after { display: none; }
.steps3 p { margin: 0; padding-top: 9px; }
@media (min-width: 900px) {
  .steps3 { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; }
  .steps3 li { padding: 60px 0 0; }
  .steps3 li::after { left: 50px; right: -14px; top: 20px; bottom: auto; border-left: 0; border-top: 2px solid rgba(176,138,78,.45); }
  .steps3 p { padding-top: 0; font-size: .98rem; }
}
.bigstat { margin-top: 26px; display: grid; gap: 6px 26px; align-items: center; border-top: 1px solid rgba(176,138,78,.45); padding-top: 22px; }
@media (min-width: 760px) { .bigstat { grid-template-columns: auto 1fr; } }
.bigstat b { font: 600 clamp(2.4rem, 6vw, 3.6rem) / 1 var(--display); color: var(--brass); letter-spacing: -.02em; }
.bigstat p { margin: 0; max-width: 60ch; color: var(--muted); }

/* 5. Cost bars */
.bars { margin-top: 28px; display: grid; gap: 22px; }
.bar-row h3 { font-size: 1.1rem; margin: 0 0 8px; }
.bar-row > p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; font-size: .95rem; }
.bar { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.bar + .bar { margin-top: 5px; }
.bar i { display: block; height: 14px; border-radius: 0 3px 3px 0; background: var(--brass); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bar.b2 i { height: 8px; background: transparent; border: 1.5px solid var(--brass); }
.bar span { white-space: nowrap; }
.bars-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin-top: 18px; }
.bars-key span::before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 6px; vertical-align: middle; background: var(--brass); border-radius: 2px; }
.bars-key span.k2::before { background: transparent; border: 1.5px solid var(--brass); height: 7px; }

/* 6. Layer stack: from shell to move-in ready */
.stack { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stack li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 4px; background: var(--paper); border-left: 4px solid var(--brass); font-size: .97rem; line-height: 1.45; }
.stack li b { font: 700 .82rem var(--display); color: var(--accent); }
.stack li.base, .stack li.top { grid-template-columns: 1fr; text-align: center; font-weight: 700; border-left: 0; }
.stack li.base { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); }
.stack li.top { background: var(--ink); color: var(--bg); }
@media (min-width: 700px) { .stack li:nth-child(2) { margin: 0 6%; } .stack li:nth-child(3) { margin: 0 4.8%; } .stack li:nth-child(4) { margin: 0 3.6%; } .stack li:nth-child(5) { margin: 0 2.4%; } .stack li:nth-child(6) { margin: 0 1.2%; } }

/* 7. Phase chart (illustrative, not to scale) */
.gantt { margin-top: 28px; display: grid; gap: 8px; }
.g-row { display: grid; gap: 4px 14px; align-items: center; }
@media (min-width: 760px) { .g-row { grid-template-columns: 210px 1fr; } }
.g-row > span { font-size: .9rem; font-weight: 600; }
.g-track { position: relative; height: 22px; border-radius: 3px; background: rgba(176,138,78,.12); }
.g-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--brass); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.g-track i.par { background: repeating-linear-gradient(135deg, var(--brass) 0 8px, #C9A66E 8px 16px); }
.g-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
@media (min-width: 760px) { .g-axis { margin-left: 224px; } }
.g-note { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

/* 8. Two-shell comparison */
.vs { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs div { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; font-size: .92rem; }
.vs b { display: block; font-family: var(--display); font-size: .95rem; margin-bottom: 4px; }

/* Tech chips */
.techrow { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.techrow a { display: flex; gap: 10px; align-items: center; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 4px; color: inherit; text-decoration: none; font-weight: 600; transition: border-color .2s; }
.techrow a:hover { border-color: var(--brass); }
.techrow svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.techrow em { display: block; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--accent); }

/* scroll-in motion (only when JS adds .viz-on to <html> and the user allows motion) */
.viz-on .viz:not(.viz-in) .bar i, .viz-on .viz:not(.viz-in) .g-track i { transform: scaleX(0); }
.viz-on .viz .steps3 li, .viz-on .viz .stack li, .viz-on .viz .fan span { transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.viz-on .viz:not(.viz-in) .steps3 li, .viz-on .viz:not(.viz-in) .stack li, .viz-on .viz:not(.viz-in) .fan span { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .bar i, .g-track i, .steps3 li, .stack li, .fan span { transition: none !important; transform: none !important; opacity: 1 !important; } }
.band .tiles li { background: transparent; border-color: rgba(176,138,78,.35); border-top-color: var(--brass); }
.band .bar-row > p, .band .bar, .band .bars-key { color: var(--muted); }
.band .route-foot { color: var(--muted); }
/* stagger */
.viz .steps3 li:nth-child(2), .viz .stack li:nth-child(2), .viz .fan span:nth-child(2) { transition-delay: 80ms; }
.viz .steps3 li:nth-child(3), .viz .stack li:nth-child(3), .viz .fan span:nth-child(3) { transition-delay: 160ms; }
.viz .steps3 li:nth-child(4), .viz .stack li:nth-child(4), .viz .fan span:nth-child(4) { transition-delay: 240ms; }
.viz .steps3 li:nth-child(5), .viz .stack li:nth-child(5) { transition-delay: 320ms; }
.viz .steps3 li:nth-child(6), .viz .stack li:nth-child(6) { transition-delay: 400ms; }
.viz .stack li:nth-child(7) { transition-delay: 480ms; }
.viz .stack li:nth-child(8) { transition-delay: 560ms; }
