/* ==========================================================================
   Magik Designs motion layer (v1.2.0)
   Loaded after site.css. Everything dynamic is gated behind .mo-ready (added by
   motion.js once it has initialised), so the site stays fully visible without JS.
   Remove this file + motion.js to return to the previous static experience.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --glow: rgba(255, 117, 31, .16);
  interpolate-size: allow-keywords;
}

/* Cross-document page transitions (progressive enhancement, Chrome/Edge/Safari TP) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Scroll progress + header ---------- */
.scroll-progress { position: fixed; z-index: 1001; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--orange), #ffb27a); }
.admin-bar .scroll-progress { top: 32px; }
.nav-shell { transition: min-height .3s var(--ease-out); }
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.9); box-shadow: 0 10px 34px rgba(30,22,16,.08); }
.site-header.is-scrolled .nav-shell { min-height: 64px; }
.site-header.is-scrolled nav a { padding-block: 21px; }
.site-header.is-scrolled nav a::after { bottom: 13px; }
.brand img { transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: translateY(-3px) rotate(-6deg) scale(1.08); }

/* ---------- Reveal system (upgrades the base fade/slide) ---------- */
.mo-ready [data-reveal] { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion-ready [data-reveal] { transform: translateY(30px); }
.motion-ready [data-reveal="left"] { transform: translateX(-42px); }
.motion-ready [data-reveal="right"] { transform: translateX(42px); }
.motion-ready [data-reveal="zoom"] { transform: scale(.94); }
.motion-ready [data-reveal].is-visible { transform: none; }

/* Heading word reveal: each word slides up out of a mask */
.mo-ready .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.mo-ready .sw > span { display: inline-block; transform: translateY(112%); transition: transform .85s var(--ease-out); transition-delay: calc(var(--w, 0) * 55ms + var(--sd, 0ms)); }
.mo-ready .split-in .sw > span { transform: none; }
.mo-failed .sw > span, .mo-force .sw > span { transform: none; }

/* Eyebrow line draws in */
.mo-ready .eyebrow i { transform-origin: left; transition: transform .7s .15s var(--ease-out); }
.mo-ready [data-reveal]:not(.is-visible) .eyebrow i { transform: scaleX(0); }

/* Card grids: richer stagger using --i set by JS */
.motion-ready .three-grid.is-visible > *,
.motion-ready .service-index-grid.is-visible > *,
.motion-ready .specialty-grid.is-visible > *,
.motion-ready .specialty-service-grid.is-visible > *,
.motion-ready .capacity-options.is-visible > *,
.motion-ready .work-grid.is-visible > *,
.motion-ready .workflow-stage-grid.is-visible > * { animation: reveal-card-up .75s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms) !important; }
@keyframes reveal-card-up { from { opacity: 0; transform: translateY(34px) scale(.98); } to { opacity: 1; transform: none; } }

/* Work images wipe in */
.mo-ready .work-grid.is-visible .work-image img { animation: img-wipe 1.1s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + .1s); }
@keyframes img-wipe { from { clip-path: inset(0 0 100% 0); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }

/* ---------- Hero / page-hero motion backdrop ---------- */
.hero, .page-hero, .contact-hero { position: relative; }
.hero > .shell, .page-hero > .shell, .contact-hero > .shell, .hero > .production-rail { position: relative; z-index: 1; }
.motion-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mb-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.mb-orb-1 { top: -140px; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,117,31,.42), rgba(255,117,31,0) 68%); animation: orb-drift-a 16s ease-in-out infinite alternate; }
.mb-orb-2 { bottom: -180px; left: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,176,120,.38), rgba(255,176,120,0) 68%); animation: orb-drift-b 19s ease-in-out infinite alternate; }
@keyframes orb-drift-a { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes orb-drift-b { to { transform: translate(110px, -50px) scale(1.1); } }
.mb-halftone { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,117,31,.5) 1.3px, transparent 1.6px); background-size: 22px 22px; opacity: .28; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 88% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 88% 20%, #000, transparent 70%); animation: halftone-shift 24s linear infinite; }
@keyframes halftone-shift { to { background-position: 220px 110px; } }
.mb-reg { position: absolute; top: 9%; left: 46%; width: 118px; height: 118px; color: var(--orange); opacity: .32; stroke: currentColor; stroke-width: 1.2; animation: reg-spin 38s linear infinite; }
@keyframes reg-spin { to { transform: rotate(360deg); } }
.mb-cmyk { position: absolute; top: 74px; right: 36px; width: 84px; height: 84px; opacity: .38; mix-blend-mode: multiply; }
.mb-cmyk i { position: absolute; width: 54px; height: 54px; border-radius: 50%; animation: cmyk-breathe 6s ease-in-out infinite; }
.mb-cmyk .c { top: 0; left: 8px; background: #3ec6f0; }
.mb-cmyk .m { top: 0; right: 8px; background: #ee4f9a; animation-delay: -1.5s; }
.mb-cmyk .y { bottom: 0; left: 19px; background: #ffd83d; animation-delay: -3s; }
.mb-cmyk .k { bottom: 6px; right: 14px; width: 30px; height: 30px; background: #232323; animation-delay: -4.5s; }
@keyframes cmyk-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14) translate(2px, -2px); } }
.mb-crop { position: absolute; width: 44px; height: 44px; color: var(--orange); stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.mb-crop path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: crop-draw 1.2s .4s var(--ease-out) forwards; }
.mb-crop-tl { top: 22px; left: 22px; }
.mb-crop-br { right: 22px; bottom: 22px; transform: rotate(180deg); }
@keyframes crop-draw { to { stroke-dashoffset: 0; } }
.motion-backdrop-page .mb-reg { top: 14%; left: auto; right: 7%; width: 96px; height: 96px; }
.motion-backdrop-page .mb-cmyk { display: none; }
.motion-backdrop-page .mb-orb-1 { width: 420px; height: 420px; }

/* Hero headline accent shimmer (applied per word so it works with the word-reveal masks) */
.mo-ready .hero h1 em .sw > span { color: var(--orange); background: linear-gradient(100deg, var(--orange) 0%, #ff9448 45%, var(--orange) 70%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: em-shimmer 6s ease-in-out infinite; }
@keyframes em-shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Trust row + benefit bar light up in sequence */
.mo-ready .trust-row span, .mo-ready .hero-benefit-bar span { animation: pop-in .7s var(--ease-spring) backwards; }
.mo-ready .trust-row span:nth-child(1), .mo-ready .hero-benefit-bar span:nth-child(1) { animation-delay: .9s; }
.mo-ready .trust-row span:nth-child(2), .mo-ready .hero-benefit-bar span:nth-child(2) { animation-delay: 1.05s; }
.mo-ready .trust-row span:nth-child(3), .mo-ready .hero-benefit-bar span:nth-child(3) { animation-delay: 1.2s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.hero-benefit-bar svg, .trust-row svg { animation: check-pulse 3.6s ease-in-out infinite; }
@keyframes check-pulse { 0%,86%,100% { transform: scale(1); } 92% { transform: scale(1.35); } }

/* Production rail links */
.production-rail-inner a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.production-rail-inner a:hover::before { transform: scaleX(1); }

/* ---------- Network card ---------- */
.network-wrap { position: relative; }
.net-chip { position: absolute; z-index: 5; padding: 9px 14px 9px 11px; display: inline-flex; align-items: center; gap: 8px; color: #2d3437; background: rgba(255,255,255,.96); border: 1px solid rgba(20,20,20,.08); border-radius: 999px; box-shadow: 0 16px 34px rgba(44,30,20,.14); font-size: 12px; font-weight: 650; white-space: nowrap; animation: chip-bob 5.5s ease-in-out infinite; }
.net-chip svg { color: var(--orange); }
.net-chip-a { top: -34px; right: 28px; }
.net-chip-a svg { padding: 2px; width: 22px; height: 22px; color: white; background: var(--green); border-radius: 50%; }
.net-chip-b { bottom: -16px; left: 26px; animation-delay: -2.4s; }
.mo-ready .net-chip { opacity: 0; animation: chip-in .7s var(--ease-spring) 1.2s forwards, chip-bob 5.5s 1.9s ease-in-out infinite; }
.mo-ready .net-chip-b { animation: chip-in .7s var(--ease-spring) 1.5s forwards, chip-bob 5.5s 2.2s ease-in-out infinite; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes chip-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.location-network { position: relative; }
.location-job { transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.location-job:hover { transform: translateX(4px); border-color: #ffd3b8; box-shadow: 0 14px 32px rgba(255,117,31,.12); }
.location-mark { position: relative; }
.location-mark::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 1.5px solid var(--orange); opacity: 0; animation: mark-ping 3.2s ease-out infinite; }
.location-job-2 .location-mark::after { animation-delay: 1s; }
.location-job-3 .location-mark::after { animation-delay: 2s; }
@keyframes mark-ping { 0% { opacity: .55; transform: scale(.85); } 70%,100% { opacity: 0; transform: scale(1.25); } }
.location-job em { display: inline-block; min-width: 62px; text-align: center; transition: opacity .25s ease, transform .25s ease, background .3s ease, color .3s ease; }
.location-job em.swap { opacity: 0; transform: translateY(6px); }
.location-job em.ok { color: #167443; background: #dff5e8; }
.network-top b i { animation: live-dot 2s ease-in-out infinite; }
@keyframes live-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(40,169,107,.12); } 50% { box-shadow: 0 0 0 9px rgba(40,169,107,0); } }
/* Packets travelling from locations into the team card */
.network-lines i { position: relative; overflow: visible; }
.network-lines i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,117,31,.16); animation: packet 2.6s var(--ease-out) infinite; }
.network-lines i:nth-child(2)::after { animation-delay: .85s; }
.network-lines i:nth-child(3)::after { animation-delay: 1.7s; }
@keyframes packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
.central-team { position: relative; overflow: hidden; }
.central-team::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,117,31,.35) 85%, transparent 100%); animation: reg-spin 7s linear infinite; }
.central-team::after { content: ""; position: absolute; inset: 1px; background: var(--charcoal); border-radius: 19px; }
.central-team > * { position: relative; z-index: 1; }
.team-icon { animation: team-pulse 3s ease-in-out infinite; }
@keyframes team-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,117,31,.45); } 60% { box-shadow: 0 0 0 14px rgba(255,117,31,0); } }
.team-chips span { transition: background .3s ease, color .3s ease, transform .3s var(--ease-spring); }
.team-chips span.is-active { color: white; background: var(--orange); transform: translateY(-2px) scale(1.08); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; color: white; background: var(--charcoal); border-block: 1px solid #2f3031; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { width: max-content; display: flex; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span { padding: 22px 0; font-size: 15px; font-weight: 640; letter-spacing: .01em; white-space: nowrap; color: #e9ecec; }
.marquee-group i { width: 18px; height: 18px; margin: 0 28px; flex: 0 0 auto; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 8.4L23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 8.4L23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6z'/%3E%3C/svg%3E") center/contain no-repeat; animation: spin-slow 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.button { position: relative; overflow: hidden; translate: var(--bx, 0) var(--by, 0); }
.button::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); transition: left .7s var(--ease-out); pointer-events: none; }
.button:hover::before { left: 130%; }
.button-secondary::before { background: linear-gradient(105deg, transparent, rgba(255,117,31,.14), transparent); }
.hero-actions .button:not(.button-secondary), .final-cta .button, .form-submit .button { animation: cta-glow 3.4s ease-in-out infinite; }
@keyframes cta-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,117,31,.32); } 55% { box-shadow: 0 0 0 13px rgba(255,117,31,0); } }
.final-cta .button-dark { animation-name: cta-glow-dark; }
.hero-actions .button:hover, .final-cta .button:hover, .form-submit .button:hover { animation: none; }
@keyframes cta-glow-dark { 0%,100% { box-shadow: 0 0 0 0 rgba(21,21,21,.35); } 55% { box-shadow: 0 0 0 13px rgba(21,21,21,0); } }
.button-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .65s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Cursor spotlight + hover polish on cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,117,31,.14), transparent 62%); }
.spot:hover::before { opacity: 1; }
.clean-card:hover .line-icon, .service-index-card:hover .icon-box, .specialty-item:hover > .line-icon, .specialty-service-grid article:hover .line-icon, .capacity-options article:hover .line-icon { animation: icon-wiggle .7s var(--ease-spring); }
@keyframes icon-wiggle { 0% { transform: none; } 35% { transform: rotate(-9deg) scale(1.12); } 70% { transform: rotate(5deg) scale(1.05); } 100% { transform: none; } }
.service-index-card .icon-box, .clean-card .line-icon { transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.service-index-card:hover .icon-box { color: white; background: var(--orange); box-shadow: 0 12px 24px rgba(255,117,31,.3); }
.clean-card:hover .line-icon { color: white; background: var(--orange); }
.service-index-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); z-index: 2; }
.service-index-card:hover::after { transform: scaleX(1); }
.service-index-home, .service-index-eight { grid-template-columns: repeat(4, 1fr); }
.service-index-home .service-index-card { min-height: 290px; padding: 26px 24px; }
.service-index-home .service-index-card p { font-size: 14.5px; }
.work-card, .resource-card, .article-card, .policy-directory-card { transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease; }
.work-card:hover, .resource-card:hover, .article-card:hover { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(34,25,17,.13); }
.work-card:hover img { transform: scale(1.07); }
.work-image img { transition: transform .8s var(--ease-out); }
.work-card-copy > span svg, .article-card strong svg { transition: transform .3s var(--ease-out); }
.work-card:hover .work-card-copy > span svg { transform: translateX(5px); }
.filter-row button { transition: background .25s ease, color .25s ease, transform .25s var(--ease-spring), border-color .25s ease; }
.filter-row button:hover { transform: translateY(-2px); }
.work-card[hidden] { display: none; }
.work-card.filter-in { animation: reveal-card-up .55s var(--ease-out) backwards; }
.outcome-table article { transition: background .25s ease, transform .3s var(--ease-out), padding-left .3s var(--ease-out); }
.outcome-table article:hover { transform: translateX(6px); }
.outcome-table article > span { transition: transform .3s var(--ease-out); }
.outcome-table article:hover > span { transform: translateX(8px); }
.workflow-stage-grid article, .case-structure article, .principles-grid article, .multi-principles article, .category-grid article { transition: transform .35s var(--ease-out), box-shadow .35s ease, background .3s ease; }
.workflow-stage-grid article:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.workflow-stage-grid article > span { transition: transform .5s var(--ease-spring); }
.workflow-stage-grid article:hover > span { transform: scale(1.15) rotate(8deg); }
.case-structure article:hover, .principles-grid article:hover, .multi-principles article:hover, .category-grid article:hover { background: var(--orange-pale); transform: translateY(-4px); }
.social-row a, .pill-list span { transition: transform .25s var(--ease-spring), border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.pill-list span:hover { transform: translateY(-3px); border-color: #ffc9a3; background: var(--orange-pale); box-shadow: 0 8px 18px rgba(255,117,31,.1); }

/* ---------- Counters + bars ---------- */
.mo-ready .location-summary:not(.is-visible) .location-summary-row > div i { width: 0 !important; }
.location-summary-row > div i { transition: width 1.4s .35s var(--ease-out); }
.location-summary-row:nth-child(3) > div i { transition-delay: .5s; }
.location-summary-row:nth-child(4) > div i { transition-delay: .65s; }
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Workflow visual ---------- */
.workflow-stage { transition: transform .45s var(--ease-spring), border-color .3s ease, background .3s ease, box-shadow .3s ease; animation: none; }
.workflow-stage > i { transform-origin: left; transition: background .3s ease, width .4s ease; }
.workflow-stage.is-active { transform: translateY(-5px); border-color: var(--orange); background: var(--orange-pale); box-shadow: 0 14px 28px rgba(255,117,31,.16), 0 0 0 3px rgba(255,117,31,.09); }
.workflow-stage.is-done { border-color: #ffd0b3; }
.workflow-stage.is-done > span, .workflow-stage.is-active > span { width: max-content; padding: 2px 6px; color: white; background: var(--orange); border-radius: 5px; }
.workflow-stage > span { transition: background .3s ease, color .3s ease; }
.shield-icon svg { color: white; }
.workflow-stage.is-done > i { background: var(--orange); }
.workflow-visual-head b i { animation: live-dot 2s ease-in-out infinite; }
.status-board .status-row { transition: background .25s ease, transform .3s var(--ease-out); }
.status-board .status-row:hover { background: #fafaf8; transform: translateX(4px); }
.mo-ready .status-board.is-visible .status-row, .mo-ready .location-stack.is-visible article, .mo-ready .message-ui.is-visible .message-bubble, .mo-ready .message-ui.is-visible .message-state { animation: row-in .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 120ms + .25s); }
@keyframes row-in { from { opacity: 0; transform: translateX(-26px); } }
.status-row em { transition: transform .3s var(--ease-spring); }
.status-row:hover em { transform: scale(1.1); }
.message-state { animation: state-pulse 3s ease-in-out infinite; }
@keyframes state-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(40,169,107,.28); } 60% { box-shadow: 0 0 0 10px rgba(40,169,107,0); } }
.rollup .line-icon { animation: icon-wiggle 4.5s ease-in-out infinite; }

/* ---------- Service page live UIs (.is-live set by JS when in view) ---------- */
.service-ui { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.service-ui:hover { box-shadow: 0 34px 80px rgba(32,25,19,.1); }
.mo-ready .service-ui:not(.is-live) .pill-list span { opacity: 0; transform: translateY(12px); }
.mo-ready .service-ui.is-live .pill-list span { animation: pop-in .6s var(--ease-spring) backwards; animation-delay: calc(var(--i, 0) * 55ms + .3s); }
.ui-head .line-icon { animation: icon-wiggle 5s ease-in-out infinite; }
.service-number { position: relative; }
.service-number::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; animation: mark-ping 3.4s ease-out infinite; }
/* preflight: checks tick through the grid */
.mo-ready .preflight-ui:not(.is-live) .check-grid svg path { stroke-dashoffset: 24; }
.check-grid svg path { stroke-dasharray: 24; transition: stroke-dashoffset .5s ease; }
.mo-ready .preflight-ui.is-live .check-grid svg path { stroke-dashoffset: 0; transition-delay: calc(var(--i, 0) * 110ms + .35s); }
.mo-ready .preflight-ui.is-live .check-grid > div { animation: check-row 3.2s calc(var(--i, 0) * 110ms + .35s) 1 backwards; }
@keyframes check-row { 0%,100% { background: transparent; } 8%,18% { background: var(--orange-pale); } }
/* version map */
.mo-ready .version-ui:not(.is-live) .version-grid span { opacity: 0; transform: scale(.85); }
.mo-ready .version-ui.is-live .version-grid span { animation: pop-in .55s var(--ease-spring) backwards; animation-delay: calc(var(--i, 0) * 90ms + .6s); }
.mo-ready .version-ui:not(.is-live) .version-lines i { opacity: 0; }
.mo-ready .version-ui.is-live .version-lines i { animation: pop-in .6s .3s var(--ease-out) backwards; }
.master-art { animation: master-float 5s ease-in-out infinite; }
@keyframes master-float { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-7px); } }
/* cleanup: scan beam repairs the pixelated mark */
.before-file { position: relative; overflow: hidden; }
.before-file::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36%; background: linear-gradient(180deg, transparent, rgba(255,117,31,.28), transparent); border-bottom: 2px solid var(--orange); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }
.pixel-mark { animation: pixel-jitter 2.8s steps(2, end) infinite; }
@keyframes pixel-jitter { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(-5deg) translate(1px, -1px); } }
.mo-ready .cleanup-ui:not(.is-live) .clean-mark { transform: scale(.6) rotate(-14deg); opacity: 0; }
.cleanup-ui .clean-mark { transition: transform .8s .5s var(--ease-spring), opacity .5s .5s ease; }
.mo-ready .cleanup-ui.is-live .clean-mark { animation: clean-pulse 3.5s 1.5s ease-in-out infinite; }
@keyframes clean-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,117,31,.4); } 55% { box-shadow: 0 0 0 16px rgba(255,117,31,0); } }
.repair-arrow { animation: arrow-nudge 1.6s ease-in-out infinite; }
@keyframes arrow-nudge { 0%,100% { transform: translateX(-4px); } 50% { transform: translateX(5px); } }
/* proofs */
.mo-ready .proof-ui:not(.is-live) .proof-row { opacity: 0; }
.mo-ready .proof-ui.is-live .proof-row { animation: row-in .65s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 150ms + .2s); }
.proof-row em.approved { animation: approve-pop 4s 1.2s ease-in-out infinite; }
@keyframes approve-pop { 0%,88%,100% { transform: scale(1); } 94% { transform: scale(1.18); } }
.proof-row { transition: background .25s ease, padding-left .3s var(--ease-out); }
.proof-row:hover { padding-left: 8px; background: #fcfcfb; }
/* capacity */
.capacity-options article { transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s ease; }
.capacity-options article:hover { transform: translateY(-6px); border-color: #ffc9a3; box-shadow: var(--shadow); }
.specialty-service-grid article { transition: background .3s ease, transform .35s var(--ease-out), box-shadow .35s ease; }
.specialty-service-grid article:hover { z-index: 2; background: var(--orange-pale); transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---------- Creative design: studio UI ---------- */
.studio-board { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.studio-tile { min-height: 140px; padding: 14px 12px 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 15px; transition: transform .35s var(--ease-out), box-shadow .35s ease, background .3s ease; }
.studio-tile:hover { transform: translateY(-6px) rotate(-1.5deg); background: white; box-shadow: 0 18px 34px rgba(255,117,31,.14); }
.studio-tile small { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.tile-identity svg { width: 58px; height: 58px; margin-top: 6px; color: var(--orange); animation: mark-turn 9s ease-in-out infinite; }
.tile-identity .sm-tri { transform-origin: 32px 32px; animation: tri-spin 9s ease-in-out infinite; }
@keyframes mark-turn { 0%,100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes tri-spin { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-90deg) scale(.82); } }
.tile-type b { margin-top: 8px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.04em; animation: type-weight 5s ease-in-out infinite; }
@keyframes type-weight { 0%,100% { font-style: normal; transform: none; } 50% { font-style: italic; transform: translateY(-3px) scale(1.06); } }
.tile-palette > span { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile-palette i { width: 26px; height: 26px; background: var(--c); border: 1px solid rgba(0,0,0,.08); border-radius: 8px; animation: swatch-pop 4.8s ease-in-out infinite; }
.tile-palette i:nth-child(2) { animation-delay: .25s; }
.tile-palette i:nth-child(3) { animation-delay: .5s; }
.tile-palette i:nth-child(4) { animation-delay: .75s; }
@keyframes swatch-pop { 0%,70%,100% { transform: scale(1); } 80% { transform: scale(1.28) rotate(6deg); } }
.tile-layout { align-items: stretch; }
.tile-layout > span { display: block; }
.lay-hero { height: 36px; margin-bottom: 7px; background: linear-gradient(135deg, var(--orange), #ffa86b); border-radius: 6px; animation: lay-shift 5s ease-in-out infinite; }
.lay-line { height: 5px; margin-bottom: 5px; background: #d8d8d4; border-radius: 3px; }
.lay-line.short { width: 60%; }
.lay-btn { width: 40%; height: 9px; margin-bottom: 8px; background: var(--ink); border-radius: 5px; }
@keyframes lay-shift { 0%,100% { transform: none; } 50% { transform: translateY(-3px) scaleX(.94); } }
.mo-ready .studio-ui:not(.is-live) .studio-tile { opacity: 0; transform: translateY(18px) scale(.92); }
.mo-ready .studio-ui.is-live .studio-tile { animation: reveal-card-up .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms + .1s); }
.studio-steps { margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; counter-reset: none; }
.studio-steps li { position: relative; padding: 11px 10px; display: flex; align-items: center; gap: 8px; color: #6b7377; background: white; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 650; transition: transform .4s var(--ease-spring), border-color .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease; }
.studio-steps li span { color: #aab0b3; font-size: 9px; transition: color .3s ease; }
.studio-steps li.is-active { color: var(--ink); transform: translateY(-4px); border-color: var(--orange); background: var(--orange-pale); box-shadow: 0 12px 24px rgba(255,117,31,.15); }
.studio-steps li.is-active span, .studio-steps li.is-done span { color: var(--orange); }
.studio-steps li.is-done { color: #3f474b; border-color: #ffd0b3; }

/* ---------- Extended operations: front desk visual ---------- */
.front-desk { overflow: hidden; color: var(--ink); background: white; border: 1px solid #e4ddd7; border-radius: 24px; box-shadow: 0 30px 70px rgba(32,22,14,.13); }
.fd-head { min-height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--ink); }
.fd-head > span { font-size: 13px; font-weight: 660; }
.fd-head b { display: flex; align-items: center; gap: 7px; color: #7be0a8; font-size: 11px; font-weight: 650; }
.fd-head b i { width: 8px; height: 8px; background: #43ca80; border-radius: 50%; animation: live-dot 2s ease-in-out infinite; }
.fd-tabs { padding: 12px 14px; display: flex; gap: 6px; flex-wrap: wrap; background: var(--soft); border-bottom: 1px solid var(--line); }
.fd-tabs span { padding: 6px 11px; color: #6a7276; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 650; transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s var(--ease-spring); }
.fd-tabs span.is-active { color: white; background: var(--orange); border-color: var(--orange); transform: translateY(-1px) scale(1.04); }
.fd-feed { padding: 6px 16px 4px; min-height: 262px; }
.fd-item { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease-out), opacity .5s ease; }
.fd-item.is-entering, .fd-item.is-leaving { grid-template-rows: 0fr; }
.fd-item.is-entering { opacity: 0; }
.fd-item.is-leaving { opacity: 0; }
.fd-item-inner { min-height: 0; overflow: hidden; padding: 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.fd-item-inner > * { margin-block: 0; }
.fd-item .fd-icon { width: 38px; height: 38px; margin-block: 12px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 11px; }
.fd-copy b, .fd-copy small { display: block; }
.fd-copy b { font-size: 13.5px; line-height: 1.35; }
.fd-copy small { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.fd-chip { padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 680; white-space: nowrap; }
.fd-chip.is-green { color: #167443; background: #dff5e8; }
.fd-chip.is-orange { color: #b34708; background: #fff0e7; }
.fd-chip.is-purple { color: #744db0; background: #eee7fa; }
.fd-chip.is-yellow { color: #836915; background: #fff5d2; }
.fd-item:first-child .fd-icon { animation: icon-wiggle 1s var(--ease-spring); }
.fd-note { margin: 0; padding: 11px 20px 14px; color: var(--muted); font-size: 11px; }
.ops-home .section-action { margin-top: 28px; }
.ops-mini-grid { margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ops-mini-grid span { padding: 14px; display: flex; align-items: center; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 13px; transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.ops-mini-grid span:hover { transform: translateY(-4px); border-color: #ffc9a3; box-shadow: 0 14px 28px rgba(255,117,31,.1); }
.ops-mini-grid svg { color: var(--orange); }
.ops-mini-grid b { font-size: 14px; line-height: 1.3; }

/* Services page: operations section */
.ops-section .ops-top { align-items: center; }
.ops-tagline { margin-bottom: 20px; color: #ffad79; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.ops-section .service-note { margin-bottom: 26px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.ops-section .service-note span { color: #d5d9db; }
.ops-section .service-number { color: white; background: var(--orange); }
.ops-section .button-secondary { color: white; background: transparent; border-color: rgba(255,255,255,.28); }
.ops-section .button-secondary:hover { color: white; background: rgba(255,255,255,.1); }
.ops-services-head { margin: 74px 0 22px; }
.ops-services-head .eyebrow { margin-bottom: 0; }
.ops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ops-grid article { position: relative; min-height: 292px; padding: 26px 24px; background: #262728; border: 1px solid #36383a; border-radius: 18px; transition: transform .35s var(--ease-out), border-color .3s ease, background .3s ease, box-shadow .35s ease; }
.ops-grid article:hover { transform: translateY(-8px); border-color: rgba(255,117,31,.6); background: #2b2c2d; box-shadow: 0 24px 50px rgba(0,0,0,.28); }
.ops-num { position: absolute; top: 24px; right: 24px; color: #7d8487; font-size: 10px; font-weight: 700; }
.ops-icon { width: 52px; height: 52px; margin-bottom: 42px; display: grid; place-items: center; color: var(--orange); background: rgba(255,117,31,.12); border-radius: 15px; transition: transform .5s var(--ease-spring), background .3s ease, color .3s ease; }
.ops-grid article:hover .ops-icon { color: white; background: var(--orange); transform: rotate(-8deg) scale(1.1); }
.ops-grid h3 { color: white; font-size: 19px; }
.ops-grid p { margin: 0; color: #b9bfc2; font-size: 14.5px; line-height: 1.65; }
.ops-closing { margin-top: 26px; padding: 26px 30px; display: flex; align-items: center; gap: 20px; background: linear-gradient(100deg, rgba(255,117,31,.2), rgba(255,117,31,.05)); border: 1px solid rgba(255,117,31,.36); border-radius: 18px; }
.ops-closing .line-icon { flex: 0 0 auto; color: var(--orange); }
.ops-closing p { margin: 0; color: #f0f2f2; font-size: 18px; font-weight: 560; line-height: 1.55; letter-spacing: -.01em; }

/* ---------- Dark sections / CTA ---------- */
.section-dark, .service-row.section-dark { position: relative; overflow: hidden; isolation: isolate; }
.section-dark::before { content: ""; position: absolute; z-index: -1; top: -20%; right: -10%; width: 60%; height: 90%; background: radial-gradient(circle, rgba(255,117,31,.18), transparent 62%); animation: orb-drift-a 14s ease-in-out infinite alternate; pointer-events: none; }
.section-dark::after { content: ""; position: absolute; z-index: -1; bottom: -30%; left: -10%; width: 50%; height: 80%; background: radial-gradient(circle, rgba(255,140,70,.1), transparent 62%); animation: orb-drift-b 18s ease-in-out infinite alternate; pointer-events: none; }
.final-cta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, #ff751f 0%, #ff8c3f 35%, #ff6a10 70%, #ff7d2e 100%); background-size: 260% 100%; animation: cta-flow 14s ease-in-out infinite alternate; }
@keyframes cta-flow { to { background-position: 100% 0; } }
.final-cta::before { content: ""; position: absolute; z-index: -1; top: -60%; right: -8%; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255,255,255,.07); animation: cta-ring 10s ease-in-out infinite alternate; }
.final-cta::after { content: ""; position: absolute; z-index: -1; bottom: -70%; left: 12%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); animation: orb-drift-b 12s ease-in-out infinite alternate; }
@keyframes cta-ring { to { transform: scale(1.25) translate(-40px, 30px); } }

/* ---------- Footer ---------- */
.footer-grid > div:not(.footer-intro) > a { position: relative; transition: color .2s ease, transform .3s var(--ease-out); }
.footer-grid > div:not(.footer-intro) > a:hover { transform: translateX(5px); }
.brand-footer img { transition: transform .5s var(--ease-spring); }
.brand-footer:hover img { transform: translateY(-4px) rotate(-8deg) scale(1.1); }

/* ---------- FAQ ---------- */
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list summary { transition: color .25s ease, padding-left .3s var(--ease-out); }
.faq-list summary:hover { color: var(--orange-dark); padding-left: 6px; }
.faq-list summary span { transition: transform .35s var(--ease-spring), background .25s ease, color .25s ease; }
.faq-list details[open] summary span { color: white; background: var(--orange); }

/* ---------- Tilt ---------- */
[data-tilt] { --rx: 0deg; --ry: 0deg; }
.motion-ready [data-tilt].is-visible, .motion-ready [data-tilt]:not([data-reveal]) { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out, opacity .8s var(--ease-out); }
.network-wrap[data-tilt] { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-index-home, .service-index-eight { grid-template-columns: repeat(2, 1fr); }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .studio-board { grid-template-columns: repeat(2, 1fr); }
  .mb-reg { left: auto; right: 6%; }
  .net-chip-a { right: 12px; }
  .scroll-progress { top: 0; }
  .admin-bar .scroll-progress { top: 46px; }
}
@media (max-width: 640px) {
  .service-index-home, .service-index-eight, .ops-grid { grid-template-columns: 1fr; }
  .service-index-home .service-index-card { min-height: 0; }
  .ops-mini-grid { grid-template-columns: 1fr; }
  .studio-steps { grid-template-columns: 1fr 1fr; }
  .studio-board { grid-template-columns: 1fr 1fr; }
  .mb-reg, .mb-cmyk, .mb-crop { display: none; }
  .mb-orb { opacity: .4; }
  .net-chip { font-size: 11px; padding: 7px 11px 7px 9px; }
  .net-chip-b { display: none; }
  .fd-feed { min-height: 0; }
  .ops-closing { padding: 20px; flex-direction: column; align-items: flex-start; }
  .ops-closing p { font-size: 16px; }
  .marquee-group span { padding: 17px 0; font-size: 14px; }
  .marquee-group i { margin: 0 20px; }
  .site-header.is-scrolled .nav-shell { min-height: 64px; }
}
@media (hover: none), (pointer: coarse) {
  .spot::before { display: none; }
  .work-card:hover, .resource-card:hover, .article-card:hover, .ops-grid article:hover, .studio-tile:hover { transform: none; }
}

/* ---------- Reduced motion: keep layout, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .mo-ready .sw { overflow: visible; }
  .mo-ready .sw > span { transform: none !important; transition: none !important; }
  .motion-ready [data-reveal], .motion-ready [data-reveal="left"], .motion-ready [data-reveal="right"], .motion-ready [data-reveal="zoom"] { transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mb-orb, .mb-halftone, .mb-reg, .mb-cmyk i, .net-chip, .central-team::before, .final-cta, .final-cta::before, .final-cta::after, .section-dark::before, .section-dark::after { animation: none !important; }
  .mb-crop path { stroke-dashoffset: 0; animation: none; }
  .net-chip { opacity: 1 !important; }
  .mo-ready .service-ui:not(.is-live) .pill-list span, .mo-ready .studio-ui:not(.is-live) .studio-tile, .mo-ready .proof-ui:not(.is-live) .proof-row, .mo-ready .version-ui:not(.is-live) .version-grid span, .mo-ready .version-ui:not(.is-live) .version-lines i, .mo-ready .cleanup-ui:not(.is-live) .clean-mark { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .button, .button::before { translate: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
