/* Two independent, responsive scenes share the site's motion preferences. */
.engineering-intro { display: flex; align-items: end; gap: 40px; position: relative; margin-top: 78px; padding: 42px 0 34px; border-top: 1px solid #d1b1a526; }
.engineering-kicker { font: 10px var(--mono); letter-spacing: 1.3px; color: #c0a69d; }
.engineering-intro h3 { margin-top: 22px; font-size: clamp(36px, 3.25vw, 61px); line-height: 1.08; font-weight: 500; letter-spacing: -1.7px; }
.engineering-intro h3 em { color: var(--lime); font-weight: 400; }
.engineering-intro > p { margin-left: auto; padding-bottom: 4px; color: #c4b2ab; font-size: 15px; line-height: 1.85; }
.engineering-braces { flex: 0 0 128px; align-self: center; display: flex; align-items: center; justify-content: space-between; font: 65px var(--mono); color: #bb887555; }
.engineering-braces i { font-size: 43px; color: #ff8054; font-style: normal; transition: transform .65s var(--ease); }
.engineering-intro:hover .engineering-braces i { transform: rotate(90deg); }
.engineering-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.code-scene { --scene-ink: #f5ede9; --scene-muted: #bfada6; --scene-line: #d9b8a72b; position: relative; min-width: 0; border-radius: 22px; border: 1px solid #bd9c903b; overflow: hidden; background: #282528; color: var(--scene-ink); transition: border-color .35s, box-shadow .35s; }
.code-scene:hover { border-color: #d3aa9b88; box-shadow: 0 18px 60px #170e0a1a; }
.scene-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; padding: 27px 29px 0; color: var(--scene-muted); font: 10px var(--mono); letter-spacing: .95px; }
.scene-symbol { font-size: 23px; letter-spacing: -2px; line-height: 1; color: #e8d4ca; }
.scene-viewport { width: 100%; height: clamp(335px, 27vw, 420px); position: relative; margin-top: 4px; }
.scene-viewport canvas { width: 100%; height: 100%; display: block; position: relative; z-index: 1; opacity: 0; transition: opacity .4s; }
.code-scene[data-scene-ready=true] canvas { opacity: 1; }
.scene-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font: 15px var(--mono); color: var(--scene-muted); }
.scene-fallback strong { padding: 28px; border: 1px solid var(--scene-line); border-radius: 16px; font-size: 45px; font-weight: 400; color: var(--scene-ink); }
.scene-fallback i { font-style: normal; font-size: 26px; }
.code-scene[data-scene-ready=true] .scene-fallback { display: none; }
.scene-content { margin: 0 29px; padding: 21px 0 26px; border-top: 1px solid var(--scene-line); }
.scene-current { display: flex; align-items: center; gap: 8px; min-height: 18px; font: 10px var(--mono); color: var(--scene-muted); }
.scene-signal { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #f3cebc; box-shadow: 0 0 0 4px #f3cebc0a; }
.scene-demo { margin-left: auto; font-size: 8px; letter-spacing: .6px; opacity: .75; }
.scene-content h4 { margin: 18px 0 0; font-size: clamp(27px, 2.3vw, 39px); font-weight: 500; line-height: 1.15; letter-spacing: -1.25px; }
.scene-content > p { max-width: 480px; margin-top: 13px; font-size: 14px; line-height: 1.8; color: var(--scene-muted); }
.scene-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.scene-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 45px; padding: 10px 15px 10px 17px; border: 1px solid #d9c2b73d; border-radius: 24px; color: #f7e6dd; font-size: 12px; background: #d9c2b709; transition: background .25s, color .25s, border-color .25s; }
.scene-action > span { font-size: 19px; line-height: 1; transition: transform .3s var(--ease); }
.scene-action:hover, .scene-action:focus-visible { background: var(--lime); color: #3a2923; border-color: var(--lime); }
.scene-action:hover > span { transform: translate(2px, -2px); }
.scene-pause { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 0 8px 7px; background: none; color: var(--scene-muted); font-size: 11px; }
.scene-pause-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--scene-line); border-radius: 50%; font-size: 11px; }
.scene-pause:hover:not(:disabled) { color: var(--scene-ink); }
.scene-pause:disabled { opacity: .65; cursor: default; }
.scene-action:focus-visible, .scene-pause:focus-visible { outline: 2px solid #bd826c; outline-offset: 4px; }
.code-scene[data-scene-state=paused] .scene-signal, .code-scene[data-scene-state=reduced] .scene-signal { background: #aaa19d; box-shadow: none; }
.build-scene { --scene-ink: #382a25; --scene-muted: #726560; --scene-line: #7d696229; background: #f3ebe1; border-color: #f3ebe1; }
.build-scene:hover { border-color: #ff8054; }
.build-scene .scene-symbol { color: #6e544b; font-size: 20px; }
.build-scene .scene-signal { background: #9d634e; box-shadow: 0 0 0 4px #9d634e0d; }
.build-scene .scene-action { color: #4c3932; background: #94756a08; border-color: #9e877e66; }
.build-scene .scene-action:hover, .build-scene .scene-action:focus-visible { background: #ff8054; border-color: #c88e78; }
.build-scene .scene-pause:focus-visible { outline-color: #915e4b; }
@media (min-width: 1900px) { .scene-content > p { font-size: 16px; }.scene-content { padding-bottom: 30px; }.scene-top { padding-top: 30px; }.scene-action { font-size: 14px; min-height: 49px; }.scene-pause { font-size: 13px; }.scene-current { font-size: 12px; }.scene-demo { font-size: 9px; } }
@media (max-width: 1100px) { .engineering-intro { gap: 24px; }.engineering-braces { display: none; }.engineering-intro > p { font-size: 13px; }.engineering-grid { gap: 18px; }.scene-top { padding-inline: 23px; font-size: 9px; }.scene-content { margin-inline: 23px; }.scene-demo { display: none; }.scene-content > p { font-size: 13px; }.scene-action { gap: 12px; padding-inline: 13px; }.scene-controls { gap: 9px; }.scene-pause { font-size: 10px; gap: 5px; } }
@media (max-width: 759px) { .engineering-intro { align-items: start; flex-direction: column; gap: 20px; margin-top: 46px; padding-top: 30px; }.engineering-intro h3 { font-size: 43px; }.engineering-intro > p { margin-left: 0; font-size: 14px; }.engineering-kicker { font-size: 9px; }.engineering-grid { grid-template-columns: 1fr; gap: 20px; }.code-scene { border-radius: 20px; }.scene-viewport { height: 375px; }.scene-top { padding: 25px 25px 0; font-size: 10px; }.scene-content { margin-inline: 25px; }.scene-content h4 { font-size: 33px; }.scene-content > p { font-size: 14px; }.scene-demo { display: inline; }.scene-action { font-size: 12px; gap: 23px; padding-inline: 15px; }.scene-pause { font-size: 11px; gap: 8px; } }
@media (max-width: 479px) { .engineering-intro h3 { font-size: 39px; }.engineering-intro > p { font-size: 13px; }.engineering-kicker { font-size: 8px; letter-spacing: .9px; }.scene-top { padding: 24px 20px 0; font-size: 8px; letter-spacing: .6px; }.scene-content { margin-inline: 20px; padding-top: 19px; }.scene-viewport { height: 340px; margin-top: 9px; }.scene-content h4 { font-size: 29px; letter-spacing: -1px; }.scene-content > p { font-size: 13px; }.scene-current { font-size: 10px; }.scene-demo { display: none; }.scene-action { font-size: 11px; gap: 17px; padding-inline: 13px; }.scene-pause { font-size: 10px; gap: 5px; }.scene-controls { gap: 7px; margin-top: 21px; }.scene-pause-icon { width: 23px; height: 23px; }.engineering-grid { gap: 17px; } }
@media (max-width: 359px) { .scene-top { padding-inline: 16px; font-size: 7px; }.scene-content { margin-inline: 16px; }.scene-content h4 { font-size: 26px; }.scene-controls { align-items: start; flex-wrap: wrap; gap: 4px 12px; }.scene-pause { margin-left: auto; }.engineering-intro h3 { font-size: 35px; }.scene-viewport { height: 325px; } }
