/*!
 * QMAN PRO mechanism showcase | Author, designer and developer: Frey Gabor
 * https://freygabor.com/ | Copyright (c) 2026 Frey Gabor. All rights reserved.
 * Custom interface and animation implementation. Client photography retains its own rights.
 */
.mechanism-section { background:#f4f5f6; padding-block:90px; }
.mechanism-art .art-grid { opacity:.22; }
.mechanism-art .art-drawing { width:700px; right:-340px; top:-200px; opacity:.55; }
.mechanism-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(50px,7vw,120px); align-items:center; max-width:1320px; }
.mechanism-copy h2,.mechanism-copy h3 { font:800 clamp(2.4rem,3.9vw,4.1rem)/1.1 Montserrat,Arial,sans-serif; letter-spacing:-.055em; margin:0 0 25px; }
.mechanism-copy h2 em,.mechanism-copy h3 em { color:var(--red); font-style:normal; }
.mechanism-introduction { font-size:1.06rem; line-height:1.8; color:var(--muted); max-width:540px; margin-bottom:30px; }
.mechanism-stages { display:grid; gap:8px; margin-bottom:25px; }
.mechanism-stage { display:flex; align-items:center; gap:18px; width:100%; text-align:left; padding:17px 20px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--ink); transition:background .2s,border-color .2s; }
.mechanism-stage:disabled { cursor:default; }
.mechanism-stage:hover:not(:disabled) { background:#fff; border-color:#d5d8dc; }
.mechanism-stage.is-active { background:#fff; border-color:#dce0e3; box-shadow:0 6px 20px #19191905; }
.mechanism-stage-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:10px; background:#e7e9ec; color:#60666c; flex:none; }
.mechanism-stage.is-active .mechanism-stage-icon { background:var(--red); color:#fff; }
.mechanism-stage strong { display:block; font-size:1rem; line-height:1.35; }
.mechanism-stage small { display:block; font-size:.86rem; line-height:1.55; color:var(--muted); margin-top:5px; }
.mechanism-stage-arrow { font-size:1.35rem; color:#8b9197; margin-left:auto; }
.mechanism-stage.is-active .mechanism-stage-arrow { color:var(--red); }
.mechanism-guidance { display:flex; align-items:flex-start; gap:12px; font-size:.83rem; line-height:1.65; color:var(--muted); margin:22px 0; }
.mechanism-guidance svg { width:21px; height:21px; margin-top:3px; color:#636a70; }
.mechanism-guidance strong { display:block; color:var(--ink); margin-bottom:3px; }
.mechanism-copy>.text-link { display:inline-flex; align-items:center; gap:15px; font-size:.9rem; }
.mechanism-copy>.text-link span { color:var(--red); }
.mechanism-player { min-width:0; margin:0; padding:22px; border:1px solid #303234; border-radius:20px; background:#191919; color:#fff; box-shadow:0 24px 50px #19191918; }
.mechanism-player-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; }
.mechanism-player-heading>span:first-child { font:800 1.15rem/1 Montserrat,Arial,sans-serif; letter-spacing:-.05em; }
.mechanism-player-heading b { color:#ff4545; }
.mechanism-player-heading>span:last-child { color:#babfc4; font-size:.63rem; letter-spacing:.12em; text-transform:uppercase; }
.mechanism-visual { position:relative; overflow:hidden; border-radius:11px; aspect-ratio:3/4; max-height:560px; width:100%; background:#292b2c; }
.mechanism-frame { width:100%; height:100%; object-fit:cover; object-position:center top; }
.mechanism-frame-overlay { position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity 110ms linear; }
.mechanism-frame-overlay.is-showing { opacity:1; }
.mechanism-photo-label { position:absolute; bottom:15px; left:15px; display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:6px; background:#191919ed; color:#fff; font-size:.72rem; font-weight:600; }
.mechanism-dot { width:6px; height:6px; background:#ff4545; border-radius:50%; flex:none; }
.mechanism-controls { margin-top:14px; }
.mechanism-control-row { display:flex; align-items:center; gap:12px; }
.mechanism-toggle,.mechanism-replay { display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid #55585b; background:#292b2d; color:#fff; border-radius:6px; font-size:.8rem; padding:7px 12px; min-height:44px; }
.mechanism-toggle:hover,.mechanism-replay:hover { background:#3a3c3e; border-color:#83888d; }
.mechanism-toggle:disabled { color:#b1b7bc; cursor:default; }
.mechanism-toggle svg,.mechanism-replay svg { width:18px; height:18px; }
.mechanism-toggle svg { stroke-width:2.4; }
.mechanism-counter { margin-left:auto; font-size:.72rem; font-variant-numeric:tabular-nums; letter-spacing:.08em; color:#c0c5ca; }
.mechanism-scrub-label { margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#e2e4e6; font-size:.72rem; }
.mechanism-scrub-label>span { color:#a8afb5; font-size:.73rem; }
.mechanism-controls input[type=range] { display:block; width:100%; height:28px; margin:3px 0 0; padding:0; cursor:ew-resize; appearance:none; background:transparent; --sequence-progress:0%; }
.mechanism-controls input[type=range]::-webkit-slider-runnable-track { height:3px; border-radius:5px; background:linear-gradient(to right,#ff4545 var(--sequence-progress),#555b60 var(--sequence-progress)); }
.mechanism-controls input[type=range]::-moz-range-track { height:3px; border-radius:5px; background:#555b60; }
.mechanism-controls input[type=range]::-moz-range-progress { height:3px; background:#ff4545; }
.mechanism-controls input[type=range]::-webkit-slider-thumb { appearance:none; height:13px; width:13px; border:3px solid #fff; border-radius:50%; background:var(--red); margin-top:-5px; box-shadow:0 0 0 3px #191919; }
.mechanism-controls input[type=range]::-moz-range-thumb { height:8px; width:8px; border:3px solid #fff; border-radius:50%; background:var(--red); }
.mechanism-status { font-size:.75rem; color:#aeb5bb; line-height:1.5; margin:3px 0 0; }
.mechanism-player figcaption { font-size:.78rem; line-height:1.55; color:#dadde0; margin-top:17px; padding-top:15px; border-top:1px solid #3e4246; }
.mechanism-player figcaption span { display:block; margin-top:4px; color:#a8b0b7; font-size:.73rem; }
.mechanism-feedback { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mechanism-static-note { font-size:.85rem; margin:15px 0 0; color:#d7dce0; }
.mechanism-static-note a { text-decoration:underline; }
.motion-off .mechanism-frame-overlay,.motion-suspended .mechanism-frame-overlay { transition:none; }
@media(min-width:1400px) { .mechanism-player { max-width:500px; margin-left:auto; width:100%; } }
@media(max-width:1100px) { .mechanism-layout { gap:40px; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); } .mechanism-copy h2,.mechanism-copy h3 { font-size:clamp(2.35rem,4vw,3.3rem); } .mechanism-stage { padding:14px 12px; gap:13px; } }
@media(max-width:800px) { .mechanism-section { padding-block:60px; } .mechanism-layout { grid-template-columns:1fr; gap:32px; } .mechanism-copy { max-width:640px; } .mechanism-copy h2,.mechanism-copy h3 { font-size:clamp(2.4rem,6vw,3.4rem); } .mechanism-player { width:100%; max-width:500px; margin-inline:auto; } .mechanism-introduction { max-width:620px; } }
@media(max-width:600px) { .mechanism-section { padding-block:45px; } .mechanism-copy h2,.mechanism-copy h3 { font-size:clamp(2.1rem,8.4vw,2.85rem); } .mechanism-introduction { font-size:1rem; } .mechanism-stage { padding:14px 12px; } .mechanism-stage strong { font-size:.93rem; } .mechanism-stage small { font-size:.8rem; } .mechanism-stage-icon { width:38px; height:38px; } .mechanism-player { padding:16px; border-radius:15px; } .mechanism-player-heading>span:first-child { font-size:1rem; } .mechanism-player-heading>span:last-child { font-size:.56rem; letter-spacing:.08em; } .mechanism-toggle,.mechanism-replay { padding:7px 10px; } }
@media(prefers-reduced-motion:reduce) { .mechanism-frame-overlay,.mechanism-stage { transition:none; } }
@media print { .mechanism-player { break-inside:avoid; background:#fff; color:#191919; box-shadow:none; } .mechanism-controls,.mechanism-photo-label,.mechanism-frame-overlay { display:none!important; } .mechanism-player figcaption,.mechanism-player figcaption span { color:#191919; } }

/* Second real-photo sequence: mirrored on desktop, stacked in reading order on mobile. */
.mechanism-closeup { margin-top:80px; padding-top:80px; border-top:1px solid #d9dde1; }
@media(min-width:801px) {
  .mechanism-closeup { grid-template-columns:minmax(0,.9fr) minmax(0,1fr); }
  .mechanism-closeup .mechanism-player { grid-column:1; grid-row:1; margin-left:0; margin-right:auto; }
  .mechanism-closeup .mechanism-copy { grid-column:2; grid-row:1; }
}
@media(max-width:800px) { .mechanism-closeup { margin-top:50px; padding-top:50px; } }
@media(max-width:600px) { .mechanism-closeup { margin-top:40px; padding-top:40px; } }

.mechanism-copy>.mechanism-closeup-link { display:flex; margin-top:18px; }
