/* ===== v3: cinematic bridge film, mark legend, why-us, interaction states ===== */
.btn { transition: background .2s, box-shadow .2s, transform .12s, color .2s; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary:active { background: linear-gradient(180deg, #B85404, #9E4803); }
.btn-ghost:hover { background: rgba(35,36,35,0.9); color: #fff; }
.btn-ghost:active { box-shadow: inset 0 0 0 1px var(--saffron-hot); }
a.btn:visited { color: inherit; }
.btn-primary:visited { color: #140A02; }

.film-hero { position: relative; height: 100vh; min-height: 38.75rem; overflow: hidden; background: #0b0c0c; }
.film-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flabels { position: absolute; inset: 0; pointer-events: none; }
.flabel { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; font-family: var(--display); font-stretch: 87.5%; text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 0.75rem rgba(0,0,0,0.9); transition: opacity .3s; }
.flabel.big { font-weight: 800; font-size: clamp(1.125rem, 2vw, 1.875rem); letter-spacing: 0.08em; padding: 0.5rem 1rem; background: rgba(17,18,19,0.72); box-shadow: inset 0 0 0 1px var(--pewter-shadow); border-radius: 0.25rem; }
.flabel.small { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; color: #BFE3C8; padding: 3px 0.5rem; background: rgba(17,18,19,0.8); border-radius: 3px; box-shadow: inset 0 0 0 1px #2f5a3a; }
.flabel.key { font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.18em; color: #140A02; background: var(--saffron-hot); padding: 0.3125rem 0.75rem; border-radius: 3px; }
.film-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) 1.75rem; background: linear-gradient(180deg, transparent, rgba(11,12,12,0.85) 45%); }
.caption { max-width: 56.25rem; min-height: 7.5rem; }
.caption .ch { color: var(--saffron-hot); display: block; margin-bottom: 0.625rem; }
.caption p { margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 87.5%; font-size: clamp(1.375rem, 2.5vw, 2.375rem); line-height: 1.18; color: var(--bone); text-shadow: 0 2px 1.125rem rgba(0,0,0,0.8); }
.film-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.125rem; }
.film-controls .ctl { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer; background: rgba(27,28,28,0.85); color: var(--bone); box-shadow: inset 0 0 0 1px var(--pewter-shadow); display: inline-flex; align-items: center; justify-content: center; font: 700 0.875rem var(--display); }
.film-controls .ctl:hover { box-shadow: inset 0 0 0 1px var(--pewter); }
.film-controls .ctl[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--saffron-hot); color: var(--saffron-hot); }
.scrub { position: relative; flex: 1; height: 1.625rem; cursor: pointer; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 0.75rem; height: 2px; background: var(--iron-edge); }
.scrub .fillbar { position: absolute; left: 0; top: 0.75rem; height: 2px; width: 0; background: var(--saffron-hot); }
.scrub .tick { position: absolute; top: 0.5rem; width: 2px; height: 0.625rem; background: var(--pewter-shadow); }
.scrub .tick.done { background: var(--saffron-hot); }
.skip { color: var(--pewter); text-decoration: none; font-size: 0.8125rem; }
.skip:hover { color: var(--bone); }
.film-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7.5rem var(--pad) 12.5rem; pointer-events: none; opacity: 0; transition: opacity .8s; }
.film-end.show { opacity: 1; pointer-events: auto; }
.film-end h1 { font-size: clamp(2.125rem, 5vw, 5.25rem); max-width: 15ch; text-shadow: 0 0.25rem 1.875rem rgba(0,0,0,0.9); }
.film-end p { max-width: 38em; color: var(--bone-2); font-size: clamp(1rem, 1.3vw, 1.25rem); margin: 1.125rem 0 1.625rem; text-shadow: 0 2px 0.75rem rgba(0,0,0,0.9); }

/* The mark, explained (no scroll-jacking: hover, focus or auto-cycle) */
.mark { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4.5rem); align-items: center; }
.mark .logo-mount { width: min(100%, 32.5rem); justify-self: center; position: relative; }
.mark .logo-mount svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.legend button { width: 100%; text-align: left; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.875rem; align-items: start; padding: 0.875rem 1rem; border: 0; border-radius: 0.5rem; cursor: pointer; background: transparent; color: var(--bone-2); font: 380 1rem/1.5 var(--text); box-shadow: inset 0 0 0 1px transparent; transition: background .25s, box-shadow .25s; }
.legend button b { display: block; color: var(--bone); font: 750 1.125rem/1.2 var(--display); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.legend button .n { font: 800 1.625rem/1 var(--display); font-stretch: 75%; color: var(--pewter-shadow); }
.legend button.on { background: #1B1C1C; box-shadow: inset 0 0 0 1px var(--iron-edge), inset 3px 0 0 var(--saffron-hot); }
.legend button.on .n { color: var(--saffron-hot); }

/* Why choose us */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.125rem; }
.why .card { padding: 1.875rem 1.625rem 1.75rem; position: relative; overflow: hidden; }
.why .card h3 { font: 800 1.625rem/1.05 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--bone); margin: 0.875rem 0 0.625rem; }
.why .card p { margin: 0; font-size: 1rem; color: var(--bone-2); line-height: 1.55; }
.why .card canvas { position: absolute; right: -10px; top: -10px; width: 8.75rem; height: 8.75rem; opacity: 0.9; pointer-events: none; }
.why .card .k { color: var(--saffron-hot); }

@media (max-width: 1000px) {
  .mark, .why { grid-template-columns: 1fr; }
  .caption { min-height: 9.375rem; }
  .film-controls { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .film-end { opacity: 1; pointer-events: auto; } }

/* Real hardware: hex nuts in the plate corners */
.panel {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d3c5ad'/%3E%3Cstop offset='.45' stop-color='%238b8273'/%3E%3Cstop offset='1' stop-color='%2333302b'/%3E%3C/linearGradient%3E%3CradialGradient id='b' cx='.38' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23b3a793'/%3E%3Cstop offset='1' stop-color='%23262422'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='11' cy='11.6' r='10' fill='%23000' opacity='.55'/%3E%3Cpolygon points='11,1.6 19.1,6.3 19.1,15.7 11,20.4 2.9,15.7 2.9,6.3' fill='url(%23g)' stroke='%23161514' stroke-width='.8'/%3E%3Cpolygon points='11,3.4 17.5,7.2 17.5,14.8 11,18.6 4.5,14.8 4.5,7.2' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='.6'/%3E%3Ccircle cx='11' cy='11' r='4.8' fill='url(%23b)' stroke='%2322201e' stroke-width='.8'/%3E%3Ccircle cx='11' cy='11' r='1.9' fill='%23171818'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d3c5ad'/%3E%3Cstop offset='.45' stop-color='%238b8273'/%3E%3Cstop offset='1' stop-color='%2333302b'/%3E%3C/linearGradient%3E%3CradialGradient id='b' cx='.38' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23b3a793'/%3E%3Cstop offset='1' stop-color='%23262422'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='11' cy='11.6' r='10' fill='%23000' opacity='.55'/%3E%3Cpolygon points='11,1.6 19.1,6.3 19.1,15.7 11,20.4 2.9,15.7 2.9,6.3' fill='url(%23g)' stroke='%23161514' stroke-width='.8'/%3E%3Cpolygon points='11,3.4 17.5,7.2 17.5,14.8 11,18.6 4.5,14.8 4.5,7.2' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='.6'/%3E%3Ccircle cx='11' cy='11' r='4.8' fill='url(%23b)' stroke='%2322201e' stroke-width='.8'/%3E%3Ccircle cx='11' cy='11' r='1.9' fill='%23171818'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d3c5ad'/%3E%3Cstop offset='.45' stop-color='%238b8273'/%3E%3Cstop offset='1' stop-color='%2333302b'/%3E%3C/linearGradient%3E%3CradialGradient id='b' cx='.38' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23b3a793'/%3E%3Cstop offset='1' stop-color='%23262422'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='11' cy='11.6' r='10' fill='%23000' opacity='.55'/%3E%3Cpolygon points='11,1.6 19.1,6.3 19.1,15.7 11,20.4 2.9,15.7 2.9,6.3' fill='url(%23g)' stroke='%23161514' stroke-width='.8'/%3E%3Cpolygon points='11,3.4 17.5,7.2 17.5,14.8 11,18.6 4.5,14.8 4.5,7.2' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='.6'/%3E%3Ccircle cx='11' cy='11' r='4.8' fill='url(%23b)' stroke='%2322201e' stroke-width='.8'/%3E%3Ccircle cx='11' cy='11' r='1.9' fill='%23171818'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d3c5ad'/%3E%3Cstop offset='.45' stop-color='%238b8273'/%3E%3Cstop offset='1' stop-color='%2333302b'/%3E%3C/linearGradient%3E%3CradialGradient id='b' cx='.38' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23b3a793'/%3E%3Cstop offset='1' stop-color='%23262422'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='11' cy='11.6' r='10' fill='%23000' opacity='.55'/%3E%3Cpolygon points='11,1.6 19.1,6.3 19.1,15.7 11,20.4 2.9,15.7 2.9,6.3' fill='url(%23g)' stroke='%23161514' stroke-width='.8'/%3E%3Cpolygon points='11,3.4 17.5,7.2 17.5,14.8 11,18.6 4.5,14.8 4.5,7.2' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='.6'/%3E%3Ccircle cx='11' cy='11' r='4.8' fill='url(%23b)' stroke='%2322201e' stroke-width='.8'/%3E%3Ccircle cx='11' cy='11' r='1.9' fill='%23171818'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1F201F, #191A1A);
  background-repeat: no-repeat;
  background-size: 1.25rem 1.25rem, 1.25rem 1.25rem, 1.25rem 1.25rem, 1.25rem 1.25rem, auto;
  background-position: 0.5625rem 0.5625rem, calc(100% - 0.5625rem) 0.5625rem, 0.5625rem calc(100% - 0.5625rem), calc(100% - 0.5625rem) calc(100% - 0.5625rem), 0 0;
}

/* Ask the Lab assistant */
.ask { position: fixed; right: 1.375rem; bottom: 1.375rem; z-index: 30; }
.ask-fab { display: inline-flex; align-items: center; gap: 0.625rem; height: 3.25rem; padding: 0 1.25rem 0 1rem; border: 0; border-radius: 1.625rem; cursor: pointer; color: var(--bone); background: linear-gradient(180deg, #2a2b2a, #1b1c1c); box-shadow: inset 0 0 0 1px var(--pewter-shadow), inset 0 1px 0 rgba(201,188,166,0.25), 0 0.875rem 2.5rem rgba(0,0,0,0.55); }
.ask-fab:hover { box-shadow: inset 0 0 0 1px var(--pewter), 0 0.875rem 2.5rem rgba(0,0,0,0.55); }
.ask-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--green-text); box-shadow: 0 0 0 0.25rem rgba(63,163,90,0.18), 0 0 0.875rem rgba(63,163,90,0.7); animation: askpulse 2.4s ease-in-out infinite; }
@keyframes askpulse { 50% { box-shadow: 0 0 0 0.5rem rgba(63,163,90,0.06), 0 0 1.125rem rgba(63,163,90,0.9); } }
.ask-panel { position: absolute; right: 0; bottom: 4.125rem; width: min(26.25rem, calc(100vw - 2rem)); max-height: min(40rem, calc(100vh - 7.5rem)); display: flex; flex-direction: column; padding: 1.375rem 1.25rem 1rem; }
.ask-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: start; padding: 0 0.375rem 0.75rem; border-bottom: 1px solid var(--iron-edge); }
.ask-head b { color: var(--bone); display: block; } .ask-head small { color: var(--pewter); font-size: 0.8125rem; }
.ask-x { background: none; border: 0; color: var(--pewter); font: 700 1.125rem var(--display); cursor: pointer; padding: 0.25rem 0.5rem; }
.ask-log { list-style: none; margin: 0; padding: 0.875rem 0.25rem; overflow-y: auto; flex: 1; display: grid; gap: 0.625rem; align-content: start; min-height: 10rem; }
.ask-log li { padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-size: 0.9375rem; line-height: 1.5; white-space: pre-wrap; }
.ask-log .bot { background: #1F2020; color: var(--bone); box-shadow: inset 0 0 0 1px var(--iron-edge); }
.ask-log .me { background: #2a1a0c; color: #F5DEC4; justify-self: end; box-shadow: inset 0 0 0 1px #6b3c12; }
.ask-log .trace { font: 0.7812rem/1.6 ui-monospace, Consolas, monospace; color: var(--pewter); padding: 0.25rem 0.875rem; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.375rem 2px 0.625rem; }
.ask-chips button { border: 0; cursor: pointer; padding: 0.4375rem 0.6875rem; border-radius: 0.875rem; font: 500 0.8125rem var(--text); color: var(--bone-2); background: #181919; box-shadow: inset 0 0 0 1px var(--iron-edge); }
.ask-chips button:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--pewter-shadow); }
.ask-form { display: flex; gap: 0.5rem; }
.ask-form input { flex: 1; min-width: 0; height: 2.875rem; padding: 0 0.875rem; border-radius: 0.375rem; border: 0; background: #141515; color: var(--bone); font: 1rem var(--text); box-shadow: inset 0 0 0 1px var(--iron-edge); }
.ask-form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--saffron-hot); }
.ask-note { margin: 0.625rem 2px 0; font-size: 0.7812rem; color: var(--pewter); }
@media (max-width: 600px) { .ask { right: 0.75rem; bottom: 0.75rem; } .ask-fab { height: 2.875rem; } }
