/* Industries page: each industry section has a faint line-art building in the background (partials/industry-scene.php),
   as tall as the section (no gap above or below), under a third of it off the left edge so most of it shows behind the heading, with a little motion that
   matches the business. The heading and the first line of text start level. Still with reduced motion
   (site.css); paused while the section is off screen ([data-anim]). */
.ind { position: relative; isolation: isolate; overflow: hidden; }
.ind .split { align-items: start; }
.ind .split h2 { max-width: 18ch; }
.ind .prose { max-width: 56ch; padding-top: .45em; }
.ind .prose p + p { margin-top: 14px; }
.ind { padding-block: clamp(80px, 10vw, 140px); }
.ind-art { position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; aspect-ratio: 420 / 232; translate: -30% 0; opacity: .135; pointer-events: none; }
.ind-art .ind-svg { width: auto; height: 100%; }
.ind-svg { display: block; width: 100%; height: auto; overflow: visible; /* bottom of the slab = bottom of the drawing */ --sc-line: color-mix(in srgb, var(--ink) 34%, transparent); }
.ind-svg .b, .ind-svg .l, .ind-svg .ac, .ind-svg .l path { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ind-svg .b { fill: var(--card); stroke: var(--sc-line); }
.ind-svg .l, .ind-svg .l path { fill: none; stroke: var(--sc-line); }
.ind-svg .ac { fill: none; stroke: var(--accent); }
.ind-svg .af { fill: var(--accent); }
/* Detail: wall texture (brick, siding, panels), window frames and glazing bars, glass reflections, leaves. */
.ind-svg .tx { fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 1; }
.ind-svg .fr { fill: none; stroke: var(--sc-line); stroke-width: 1.2; }
.ind-svg rect.fr { fill: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.ind-svg .gl { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.ind-svg .lf { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.ind-svg .b.dk { fill: color-mix(in srgb, var(--ink) 10%, var(--card)); }
/* 3D: every building has a shaded right wall (.sd) and a lit roof face (.tp) behind its front, recessed openings (.dk)
   and a soft shadow on the ground (.sh). */
.ind-svg .sd, .ind-svg .tp { stroke: var(--sc-line); stroke-width: 2; stroke-linejoin: round; }
.ind-svg .sd { fill: color-mix(in srgb, var(--ink) 16%, var(--card)); }
.ind-svg .tp { fill: color-mix(in srgb, var(--ink) 6%, var(--card)); }
.ind-svg .sh { fill: color-mix(in srgb, var(--ink) 22%, transparent); stroke: none; }
/* Concrete slab: neutral grey, not the blue-tinted ink of the buildings. Lit top (.ct), front face (.cf), darker right
   end (.ce), control joints (.cj), a bevel highlight along the front edge (.cb) and speckled texture (.cx). */
.ind-svg { --concrete: #8d9097; }
.ind-svg .ct { fill: color-mix(in srgb, var(--concrete) 16%, var(--card)); stroke: color-mix(in srgb, var(--concrete) 55%, transparent); stroke-width: 1.5; stroke-linejoin: round; }
.ind-svg .cf { fill: color-mix(in srgb, var(--concrete) 32%, var(--card)); stroke: color-mix(in srgb, var(--concrete) 55%, transparent); stroke-width: 1.5; }
.ind-svg .ce { fill: color-mix(in srgb, var(--concrete) 46%, var(--card)); stroke: color-mix(in srgb, var(--concrete) 55%, transparent); stroke-width: 1.5; stroke-linejoin: round; }
.ind-svg .cj { fill: none; stroke: color-mix(in srgb, var(--concrete) 60%, transparent); stroke-width: 1.2; }
.ind-svg .cb { fill: none; stroke: color-mix(in srgb, #ffffff 70%, transparent); stroke-width: 1.2; }
.ind-svg .cx { fill: color-mix(in srgb, var(--concrete) 70%, transparent); }
.ind-svg .gr { stroke: color-mix(in srgb, var(--concrete) 60%, transparent); }
.ind-svg .pop, .ind-svg .ping, .ind-svg .g1, .ind-svg .g2, .ind-svg .cross, .ind-svg .bob, .ind-svg .steam, .ind-svg .blink { transform-box: fill-box; transform-origin: center; }

/* Café: steam rises off the cup; a new-order bubble pops in with a pinging dot */
.ind-cafe .steam { animation: ind-steam 3s ease-in-out infinite; }
.ind-cafe .s2 { animation-delay: 1.4s; }
@keyframes ind-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
.ind-cafe .pop { transform-origin: 20% 100%; animation: ind-pop 5s ease infinite; }
@keyframes ind-pop { 0%, 100% { transform: scale(.85); opacity: 0; } 10%, 75% { transform: none; opacity: 1; } 85% { transform: scale(.95); opacity: 0; } }
.ind-cafe .ping { animation: ind-ping 5s ease infinite; }
@keyframes ind-ping { 0%, 8%, 100% { transform: scale(0); } 14% { transform: scale(1.3); } 20%, 75% { transform: none; } 85% { transform: scale(0); } }

/* Workshop: the roll-up door rises and falls, gears turn, the status light blinks */
.ind-workshop .door { animation: ind-door 7s ease-in-out infinite; }
@keyframes ind-door { 0%, 100% { transform: translateY(0); } 45%, 60% { transform: translateY(-46px); } }
.ind-workshop .g1 { animation: ind-spin 9s linear infinite; }
.ind-workshop .g2 { animation: ind-spin 5.6s linear infinite reverse; }
@keyframes ind-spin { to { transform: rotate(360deg); } }
.ind-svg .blink { animation: ind-blink 2.4s ease-in-out infinite; }
@keyframes ind-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Clinic: the cross pulses and a heartbeat line draws itself */
.ind-clinic .cross { animation: ind-pulse 2.4s ease-in-out infinite; }
@keyframes ind-pulse { 0%, 100% { transform: none; } 12% { transform: scale(1.15); } 24% { transform: none; } 36% { transform: scale(1.08); } }
.ind-clinic .beat { stroke-dasharray: 100; animation: ind-beat 2.4s linear infinite; }
@keyframes ind-beat { 0% { stroke-dashoffset: 100; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }

/* Shops and distributors: a delivery van drives along the slab, fading in as it arrives and out before the slab ends;
   the top box bobs */
.ind-shop .van { animation: ind-van 10s linear infinite; }
@keyframes ind-van { 0% { transform: translateX(-10px); opacity: 0; } 10% { opacity: 1; } 82% { opacity: 1; } 92%, 100% { transform: translateX(352px); opacity: 0; } }
.ind-shop .bob { animation: ind-bob 3s ease-in-out infinite; }
@keyframes ind-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Growing teams: windows light up in turn; dashed links between the towers flow (one system across departments) */
.ind-teams .lit { animation: ind-lit 6s ease-in-out infinite; }
.ind-teams .d1 { animation-delay: 1s; } .ind-teams .d2 { animation-delay: 2s; } .ind-teams .d3 { animation-delay: 3s; }
.ind-teams .d4 { animation-delay: 4s; } .ind-teams .d5 { animation-delay: 5s; }
@keyframes ind-lit { 0%, 100% { fill: var(--card); } 30%, 60% { fill: color-mix(in srgb, var(--accent) 55%, var(--card)); } }
.ind-teams .flow { stroke-dasharray: 6 8; animation: ind-flow 1.6s linear infinite; }
@keyframes ind-flow { to { stroke-dashoffset: -28; } }

/* Still frame (reduced motion): show the order bubble and its dot */
@media (prefers-reduced-motion: reduce) { .ind-cafe .pop, .ind-cafe .ping { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .ind-art { opacity: .108; } .ind .prose { padding-top: 0; } }
