/* Magik Designs v1.3.0 — conversion features: contact dock, calculator, service pages */

/* ---- Shared ---- */
.cta-actions, .intro-actions, .calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.intro-actions { margin-top: 6px; gap: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; transition: border-color .2s ease, gap .25s ease; }
.text-link:hover { gap: 10px; border-color: var(--orange); }
.text-link-light { color: white; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 550; }
.check-list li svg { flex: 0 0 auto; margin-top: 2px; color: var(--orange); }
.note-card { padding: 34px; background: var(--orange-pale); border: 1px solid #ffd9c3; border-radius: 22px; }
.note-card .line-icon { color: var(--orange); margin-bottom: 16px; }
.note-card h3 { font-size: 22px; margin-bottom: 10px; }
.note-card p { margin: 0 0 18px; }
.service-page-hero .page-hero-grid { grid-template-columns: .95fr 1.05fr; }

/* ---- Header call link ---- */
.header-call { display: none; align-items: center; gap: 7px; padding: 8px 4px; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s ease; }
.header-call:hover { color: var(--orange-dark); }
.header-call svg { color: var(--orange); }
@media (min-width: 1320px) { .header-call { display: inline-flex; } }

/* ---- Floating contact dock ---- */
.contact-dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; gap: 8px; padding: 7px; background: rgba(29,30,31,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; box-shadow: 0 18px 44px rgba(0,0,0,.28); transition: transform .45s cubic-bezier(.2,.9,.25,1), opacity .3s ease; }
.contact-dock a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.contact-dock .dock-primary { color: white; background: var(--orange); }
.contact-dock .dock-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.contact-dock .dock-secondary { color: white; }
.contact-dock .dock-secondary:hover { background: rgba(255,255,255,.12); }
.motion-ready .contact-dock:not(.is-visible) { opacity: 0; transform: translateY(130%); pointer-events: none; }
@media (max-width: 640px) {
  .contact-dock { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; border-radius: 20px; }
  .contact-dock a { flex: 1 1 0; justify-content: center; padding: 0 10px; }
}
body.menu-open .contact-dock { display: none; }

/* ---- Home calculator teaser ---- */
.calc-teaser-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.calc-teaser-card { position: relative; padding: 34px; display: grid; gap: 14px; justify-items: start; background: var(--charcoal); color: white; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.16); overflow: hidden; }
.calc-teaser-card > span { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--orange); border-radius: 15px; }
.calc-teaser-card b { font-size: 15px; color: #d6dadc; }
.calc-teaser-card i { position: relative; display: block; width: 100%; height: 14px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.calc-teaser-card i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 56%; border-radius: inherit; background: linear-gradient(100deg, var(--orange) 0%, var(--orange) 38%, #ffb98a 50%, var(--orange) 62%, var(--orange) 100%); background-size: 240% 100%; animation: calc-sheen 3s ease-in-out infinite; }
.calc-teaser-card small { color: #9aa1a5; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@keyframes calc-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- Calculator page ---- */
.calc-hero .shell { padding: 70px 0 34px; }
.calc-hero-copy { max-width: 720px; }
.calc-section { padding-top: 40px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-card, .calc-result { padding: 34px; border-radius: 24px; }
.calc-card { background: white; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(21,21,21,.06); }
.calc-card h2, .calc-result h2 { margin-bottom: 22px; font-size: 24px; }
.calc-field { display: grid; gap: 8px; margin-bottom: 24px; }
.calc-field label, .calc-sublabel { font-size: 14px; font-weight: 650; color: var(--ink); }
.calc-field small { color: var(--muted); font-size: 12.5px; }
.calc-field input[type=number] { width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 17px; font-weight: 650; color: var(--ink); background: var(--soft); border: 1px solid #dcdcd8; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.calc-field input[type=number]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,117,31,.16); }
.calc-stepper { display: grid; grid-template-columns: 50px 1fr 50px; gap: 8px; }
.calc-stepper button { min-height: 50px; font-size: 22px; font-weight: 600; color: var(--ink); background: white; border: 1px solid #d6d6d3; border-radius: 12px; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.calc-stepper button:hover { background: var(--orange-soft); border-color: var(--orange); }
.calc-stepper button:active { transform: scale(.94); }
.calc-stepper input { text-align: center; }
.calc-money { position: relative; }
.calc-money span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.calc-money input { padding-left: 32px !important; }
.calc-field input[type=range] { width: 100%; accent-color: var(--orange); height: 28px; cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.calc-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.calc-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.calc-front[hidden] { display: none; }
.calc-front { padding: 20px; background: var(--orange-pale); border: 1px solid #ffd9c3; border-radius: 16px; }
.calc-result { position: sticky; top: 100px; color: white; background: linear-gradient(150deg, #232425, #151515); box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.calc-result h2 { color: white; margin-bottom: 8px; font-size: 19px; font-weight: 650; }
.calc-tag { display: inline-block; margin-bottom: 18px; padding: 6px 12px; color: #ffd1b3; background: rgba(255,117,31,.18); border: 1px solid rgba(255,117,31,.4); border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.calc-big { margin: 0 0 24px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: white; }
.calc-big span { background: linear-gradient(100deg, #ffb27a, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-lines { margin: 0 0 22px; display: grid; gap: 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); }
.calc-lines dt { color: #b9bfc2; font-size: 14px; }
.calc-lines dd { margin: 0; color: white; font-size: 15px; font-weight: 700; text-align: right; }
.calc-bar { display: flex; height: 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.calc-bar i { display: block; height: 100%; width: 0; transition: width .6s cubic-bezier(.2,.9,.25,1); }
.calc-bar i:first-child { background: #8d969b; }
.calc-bar i:last-child { background: var(--orange); }
.calc-bar-legend { display: flex; gap: 18px; margin: 10px 0 20px; color: #b9bfc2; font-size: 12px; }
.calc-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-bar-legend i { width: 10px; height: 10px; border-radius: 3px; }
.calc-bar-legend .k1 { background: #8d969b; }
.calc-bar-legend .k2 { background: var(--orange); }
.calc-note { color: #9aa1a5; font-size: 12.5px; line-height: 1.6; margin: 0 0 22px; }
.calc-result .button-secondary { color: white; background: transparent; border-color: rgba(255,255,255,.3); }
.calc-result .button-secondary:hover { background: rgba(255,255,255,.1); }
.calc-big span.is-bump { animation: calc-bump .35s ease; }
@keyframes calc-bump { 40% { transform: translateY(-3px); } }

/* ---- Deliverables, process, ops detail ---- */
.deliverable-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deliverable { position: relative; padding: 26px 24px; background: white; border: 1px solid var(--line); border-radius: 18px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.deliverable:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: 0 20px 44px rgba(21,21,21,.09); }
.deliverable .index-number { display: block; margin-bottom: 22px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.deliverable h3 { font-size: 18px; margin-bottom: 8px; }
.deliverable p { margin: 0; font-size: 14px; }
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: p; position: relative; }
.process-row-three { grid-template-columns: repeat(3, 1fr); }
.process-row article { position: relative; padding: 28px 24px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.process-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: white; background: var(--orange); border-radius: 13px; font-size: 14px; font-weight: 800; }
.process-row h3 { font-size: 19px; margin-bottom: 8px; }
.process-row p { margin: 0; font-size: 14px; }
.ops-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ops-detail-grid article { position: relative; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 22px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ops-detail-grid article:hover { transform: translateY(-6px); border-color: var(--orange); box-shadow: 0 22px 48px rgba(21,21,21,.09); }
.ops-detail-grid .ops-num { color: var(--muted); }
.ops-detail-grid .ops-icon { margin-bottom: 26px; }
.ops-detail-grid article:hover .ops-icon { color: white; background: var(--orange); transform: rotate(-8deg) scale(1.08); }
.ops-detail-grid h3 { font-size: 22px; margin-bottom: 8px; }
.ops-detail-grid p { margin: 0 0 18px; }
.ops-detail-grid ul { margin: 0; padding: 18px 0 0; list-style: none; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.ops-detail-grid li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 550; color: var(--ink); }
.ops-detail-grid li svg { flex: 0 0 auto; margin-top: 2px; color: var(--orange); }
.ops-closing-light { color: var(--ink); background: var(--orange-pale); border-color: #ffd9c3; }
.ops-closing-light p { color: var(--ink); }

/* Staggered reveal for the new grids (only once features.js has run). */
.fx-ready .deliverable-grid:not(.is-visible) > *, .fx-ready .process-row:not(.is-visible) > *, .fx-ready .ops-detail-grid:not(.is-visible) > * { opacity: 0; transform: translateY(26px); }
.fx-ready .deliverable-grid.is-visible > *, .fx-ready .process-row.is-visible > *, .fx-ready .ops-detail-grid.is-visible > * { animation: fx-rise .7s cubic-bezier(.2,.9,.25,1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .deliverable-grid, .process-row { grid-template-columns: repeat(2, 1fr); }
  .calc-teaser-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .calc-grid, .calc-teaser-grid, .ops-detail-grid, .process-row-three { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .service-page-hero .page-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .deliverable-grid, .process-row { grid-template-columns: 1fr; }
  .calc-card, .calc-result, .note-card { padding: 24px; }
  .cta-actions .button, .calc-actions .button { width: 100%; justify-content: center; }
  footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-ready .deliverable-grid > *, .fx-ready .process-row > *, .fx-ready .ops-detail-grid > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .calc-teaser-card i::before, .calc-big span.is-bump { animation: none; }
  .contact-dock, .calc-bar i { transition: none; }
}

/* ---- Social proof ---- */
.proof-section { background: white; }
.proof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.proof-stats div { padding: 22px 24px; background: var(--orange-pale); border: 1px solid #ffd9c3; border-radius: 18px; }
.proof-stats b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.proof-stats span { display: block; margin-top: 6px; color: var(--body); font-size: 13.5px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.proof-card { position: relative; margin: 0; padding: 34px 32px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: white; border: 1px solid var(--line); border-radius: 22px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.proof-card:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 22px 48px rgba(21,21,21,.09); }
.proof-mark { position: absolute; top: 14px; left: 26px; color: var(--orange); font-size: 64px; line-height: 1; font-family: Georgia, serif; opacity: .35; }
.proof-card blockquote { margin: 26px 0 0; font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.proof-card figcaption { color: var(--muted); font-size: 13.5px; padding-top: 16px; border-top: 1px solid var(--line); }
.proof-note { background: var(--orange-pale); border-color: #ffd9c3; }
.proof-clutch { color: white; background: linear-gradient(150deg, #232425, #151515); border-color: #2a2b2c; justify-content: flex-start; }
.proof-clutch:hover { border-color: var(--orange); }
.proof-clutch-label { color: #ffd1b3; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.proof-score { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.proof-score small { margin-left: 6px; color: #9aa1a5; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.proof-clutch-count { color: #b9bfc2; font-size: 14px; }
.proof-clutch-copy { color: #d6dadc; font-size: 17px; line-height: 1.5; font-weight: 600; }
.proof-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 14px; font-weight: 700; transition: gap .25s ease; }
.proof-clutch:hover .proof-link { gap: 10px; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars svg { width: 22px; height: 22px; margin-right: 3px; }
.stars-base svg { fill: rgba(255,255,255,.2); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.stars-top svg { fill: #ffb400; }
.stars-top, .stars-base { display: inline-flex; }
@media (max-width: 640px) { .proof-card { padding: 30px 24px 24px; } .proof-card blockquote { font-size: 17px; } }

/* ---- Video ---- */
.video-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.video-head .eyebrow { justify-content: center; }
.video-head h2 { color: white; }
.video-head p { color: #b9bfc2; margin: 0; }
.yt-embed { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #0f0f10; border: 1px solid #36383a; border-radius: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,117,31,.08); }
.yt-embed::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 50% 50%, rgba(255,117,31,.22), transparent 55%); pointer-events: none; }
.yt-facade { position: absolute; inset: 0; display: block; color: white; cursor: pointer; }
.yt-poster { position: absolute; inset: 0; background: #1c1d1e center / cover no-repeat; opacity: .9; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.9,.25,1); }
.yt-poster.is-loaded { opacity: 1; }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.yt-facade:hover .yt-poster { transform: scale(1.03); }
.yt-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 92px; height: 92px; display: grid; place-items: center; transform: translate(-50%, -50%); color: white; background: var(--orange); border-radius: 50%; box-shadow: 0 18px 50px rgba(255,117,31,.5); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s ease; }
.yt-play svg { margin-left: 4px; }
.yt-play::before { content: ""; position: absolute; inset: -12px; border: 2px solid rgba(255,117,31,.5); border-radius: 50%; animation: yt-ring 2.4s ease-out infinite; }
@keyframes yt-ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.yt-facade:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); background: var(--orange-dark); }
.yt-label { position: absolute; z-index: 2; left: 24px; bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.yt-embed iframe { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-embed.is-playing .yt-facade { display: none; }
.yt-sound { position: absolute; z-index: 4; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: white; background: rgba(21,21,21,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; animation: fx-rise .5s ease backwards; }
.yt-sound[hidden] { display: none; }
.yt-sound:hover { background: var(--orange); border-color: var(--orange); }
@media (max-width: 640px) { .yt-embed { border-radius: 18px; } .yt-play { width: 68px; height: 68px; } .yt-label { left: 16px; bottom: 14px; } .yt-sound { right: 10px; top: 10px; padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .yt-play::before { animation: none; } .yt-poster { transition: none; } }

/* ---- Case studies ---- */
.cs-snapshot { padding: 46px 0 0; }
.cs-snapshot-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cs-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 18px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cs-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 18px 40px rgba(21,21,21,.08); }
.cs-card small { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cs-card small .line-icon { color: var(--orange); }
.cs-card p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.6; font-weight: 550; }
.cs-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.cs-card li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 14.5px; font-weight: 550; line-height: 1.45; }
.cs-card li svg { flex: 0 0 auto; margin-top: 2px; color: var(--orange); }
.cs-request, .cs-outcome { grid-column: span 2; }
.cs-outcome { background: var(--orange-pale); border-color: #ffd9c3; }
@media (max-width: 640px) { .cs-request, .cs-outcome { grid-column: auto; } }

.article-toc { display: block; margin-top: 14px; padding: 18px 18px 12px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.article-toc > small { display: block; margin-bottom: 10px; color: var(--orange-dark); font-size: 8px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.article-toc ol { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow: auto; }
.article-toc li { margin: 0; }
.article-toc a { position: relative; display: block; padding: 7px 0 7px 12px; color: #5b6468; font-size: 10.5px; line-height: 1.4; font-weight: 600; border-left: 2px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.article-toc .toc-l3 a { padding-left: 24px; font-weight: 500; }
.article-toc a::after { display: none; }
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-current { color: var(--orange-dark); border-left-color: var(--orange); }
.article-content h2[id], .article-content h3[id] { scroll-margin-top: 110px; }
@media (max-width: 900px) { .article-toc { display: none; } }

/* Before / after slider */
.compare { margin: 40px 0; }
.compare-stage { position: relative; overflow: hidden; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(21,21,21,.1); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare-pane img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
.compare-pane-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-pane-before img { width: 100%; height: 100%; object-fit: cover; }
.compare-tag { position: absolute; top: 14px; padding: 6px 12px; color: white; background: rgba(21,21,21,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.compare-tag-before { left: 14px; }
.compare-tag-after { right: 14px; background: var(--orange); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 0 18px rgba(0,0,0,.25); pointer-events: none; }
.compare-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; display: grid; place-items: center; transform: translate(-50%, -50%); color: var(--ink); background: white; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.28); font-style: normal; font-size: 20px; font-weight: 800; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare-handle i { box-shadow: 0 0 0 4px rgba(255,117,31,.5), 0 8px 24px rgba(0,0,0,.28); }
.compare figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
/* Without JavaScript: show both images side by side. */
.compare:not(.is-ready) .compare-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; border: 0; box-shadow: none; overflow: visible; }
.compare:not(.is-ready) .compare-pane { position: relative; clip-path: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.compare:not(.is-ready) .compare-pane-before { order: -1; }
.compare:not(.is-ready) .compare-handle, .compare:not(.is-ready) .compare-range { display: none; }

/* Lightbox */
.article-content img:not(.compare img) { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: rgba(10,10,11,.92); opacity: 0; transition: opacity .25s ease; }
.lb.is-open { opacity: 1; }
.lb img { max-width: min(1200px, 94vw); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .3s cubic-bezier(.2,.9,.25,1); }
.lb.is-open img { transform: none; }
.lb button { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; color: white; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s ease; }
.lb button:hover { background: var(--orange); border-color: var(--orange); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #b9bfc2; font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .lb, .lb img { transition: none; } }

/* ---- v1.4.2 polish ---- */
/* Marquee: orange edge fade instead of fading to the white page */
.marquee { -webkit-mask-image: none; mask-image: none; }
.marquee::before, .marquee::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 9%; min-width: 36px; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--orange), rgba(255,117,31,.55) 35%, rgba(255,117,31,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--orange), rgba(255,117,31,.55) 35%, rgba(255,117,31,0)); }
@media (prefers-reduced-motion: reduce) { .marquee::before, .marquee::after { display: none; } }

/* Dark sections: glows fade out inside their own box (no hard rectangle edges) on phones and tablets */
@media (max-width: 900px) {
  .section-dark::before { top: -10%; right: -25%; width: 100%; height: 55%; background: radial-gradient(closest-side, rgba(255,117,31,.16), rgba(255,117,31,0)); }
  .section-dark::after { bottom: -10%; left: -25%; width: 100%; height: 45%; background: radial-gradient(closest-side, rgba(255,140,70,.09), rgba(255,140,70,0)); }
  .workflow-hero .page-hero-grid { grid-template-columns: 1fr; }
}

/* Workflow visual on phones: compact grid instead of one long, narrow column */
@media (max-width: 640px) {
  .workflow-detailed .workflow-track { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
  .workflow-detailed .workflow-stage { min-height: 82px; padding: 10px 8px; }
  .workflow-detailed .workflow-stage > i, .workflow-detailed .workflow-stage:nth-child(3n) > i { display: none; }
  .workflow-detailed .workflow-stage > span { margin-bottom: 10px; }
  .workflow-detailed .workflow-stage strong { font-size: 11.5px; line-height: 1.25; }
  .workflow-visual-head { padding: 0 14px; }
  .workflow-visual-note { padding: 12px 14px; }
}
