/* Glass geometry, load visualization, and responsive studio controls. */
:root { --ink: #183e48; --muted: #667b80; --teal: #23796f; --teal-dark: #175e57; --paper: #f3f6f4; --radius: 17px; }
body { background-image: radial-gradient(ellipse at 90% 5%, #d9e9e155, transparent 35%); }
.site-header { background: #fafcfb; min-height: 88px; }
.header-meta { gap: 10px; }
.motion-toggle { display: none; align-items: center; gap: 6px; margin-left: 14px; padding: 7px 9px; background: transparent; border: 1px solid #dce6df; border-radius: 6px; color: #687e79; font-size: 10px; }
.js .motion-toggle { display: inline-flex; }
.motion-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.motion-toggle:hover { border-color: #8db6a7; background: #edf5ef; }
.motion-toggle:disabled { cursor: default; opacity: .8; }
.workspace { padding-top: 27px; }
.page-heading { position: relative; min-height: 272px; padding: 31px 38px; align-items: center; margin-bottom: 27px; overflow: hidden; border: 1px solid #dde8e1; border-radius: 22px; background: linear-gradient(110deg, #fcfdf9 35%, #e5f0ea 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; }
h1 { font-size: clamp(32px, 3.2vw, 44px); font-weight: 550; line-height: 1.14; letter-spacing: -1.6px; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #287b6e; }
.page-description { max-width: 410px; font-size: 13px; color: #677e77; }
.hero-workflow { display: flex; align-items: center; gap: 13px; margin-top: 22px; color: #638078; font-size: 10px; }
.hero-workflow > span { display: flex; align-items: center; gap: 7px; }
.hero-workflow b { font-size: 9px; color: #359382; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-workflow > i { width: 28px; height: 1px; background: #b9d2c5; }
.hero-art { position: absolute; right: 13px; top: 0; bottom: 0; width: 400px; perspective: 950px; pointer-events: none; }
.hero-object { position: absolute; width: 135px; height: 182px; left: 134px; top: 43px; transform-style: preserve-3d; animation: hero-float 10s ease-in-out infinite; }
.hero-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-13deg) rotateY(-35deg) rotateZ(-15deg); }
.hero-sheet { position: absolute; inset: 0; border-radius: 4px; border: 1px solid #a2cfbe; background: linear-gradient(125deg, #fafffdc2 0%, #99d3c259 30%, #d9ede378 65%, #66b8a162); box-shadow: inset -4px 0 0 #74b7a370, inset 0 0 24px #edfff9, 11px 17px 22px #204e3d10; }
.hero-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, #ffffffe3 35.5%, #ffffff6b 43%, transparent 43.5%, transparent 49%, #ffffff8f 49.5%, #ffffff8f 51%, transparent 51.5%); }
.hero-sheet-back { transform: translateZ(-55px); background-color: #68b69b3d; }
.hero-sheet-middle { transform: translateZ(0); }
.hero-sheet-front { transform: translateZ(55px); }
.hero-orbit { width: 313px; height: 313px; position: absolute; top: -28px; left: 50px; border: 1px solid #b8d4c67d; border-radius: 50%; }
.hero-orbit-inner { width: 235px; height: 235px; top: 11px; left: 89px; border-style: dashed; border-color: #b8d4c659; }
.hero-floor { position: absolute; bottom: 14px; left: 88px; width: 230px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse, #39765826, transparent 70%); filter: blur(4px); }
.hero-caption { position: absolute; bottom: 16px; left: 108px; display: flex; align-items: center; gap: 6px; color: #608a7b; font-size: 7px; font-weight: 600; letter-spacing: 1.4px; }
.hero-caption i { height: 4px; width: 4px; border-radius: 50%; background: #54a088; }
.hero-coordinate { position: absolute; right: 24px; top: 27px; color: #7b9c8d; font-size: 8px; letter-spacing: 2px; }
.calculator-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 25px; }
.input-card { position: relative; padding: 25px 28px 27px; border-color: #e0e9e3; box-shadow: 0 4px 18px #1e534208; transition: border-color .2s, box-shadow .2s; }
.input-card:focus-within { border-color: #93bdb0; box-shadow: 0 6px 24px #1e53420d; }
.section-number { background: #edf5ef; border-color: #d8e8de; color: #327d6b; }
.section-heading p { color: #73877d; font-size: 12px; }
.section-icon { stroke: #80a99c; }
.field label { font-size: 12px; color: #466259; }
.label-unit { font-size: 10px; color: #738a7e; }
.control { border-color: #d8e4dc; min-height: 45px; font-size: 14px; background-color: #f8fbf8; }
.field-hint { color: #7b8d81; }
.lite-card { border-color: #dce8df; background: linear-gradient(140deg, #f6faf5, #fbfcf9); border-radius: 11px; }
.primary-button { background: linear-gradient(135deg, #288b7c, #1f675f); border-color: #246d62; border-radius: 10px; box-shadow: 0 6px 15px #21685926; font-size: 13px; transition: transform .2s, box-shadow .2s; }
.primary-button:hover:enabled { background: linear-gradient(135deg, #298d7d, #17594f); transform: translateY(-2px); box-shadow: 0 9px 22px #21685933; }
.primary-button .button-arrow { transition: transform .2s; }
.primary-button:hover .button-arrow { transform: translateX(3px); }
.calculation-actions > p { color: #74897d; }
.results-card { border-color: #dfe8e0; box-shadow: 0 4px 18px #1e534208; }
.results-empty h2 { color: #244d43; }
.results-empty > p:not(.eyebrow) { color: #6c8174; font-size: 12px; }
.result-metrics dt { font-size: 11px; color: #5d7565; }
.result-metrics dd > strong { font-size: 15px; }
.result-summary { background: linear-gradient(120deg, #edf6ec, #f6f9f1); }
.duration-heading > span:last-child { color: #738773; }
.deflection-limit { color: #71866c; }
.result-build-up, .lite-result-heading p, .calculation-trace { color: #6d846e; }
.workspace-note { color: #758a7d; }
.site-footer, .site-footer p { color: #758b7a; }

/* CSS perspective keeps the glass build-up interactive without a WebGL runtime. */
.panel-studio { --scene-x: -9deg; --scene-y: -28deg; --panel-width: 137px; --panel-height: 200px; --front-z: 6px; position: relative; display: block; padding: 24px 23px 18px; overflow: clip; border: 1px solid #31574f; border-radius: var(--radius); color: #eef7ee; background: radial-gradient(ellipse at 60% 32%, #306258 0%, #1c443f 55%, #193b38 100%); box-shadow: 0 9px 28px #123e301a; }
.panel-studio .preview-heading { align-items: center; }
.panel-studio .eyebrow { margin-bottom: 5px; color: #8cc8b2; font-size: 8px; letter-spacing: 1.8px; }
.panel-studio .preview-heading h2 { color: #f0f7ed; font-size: 16px; font-weight: 550; letter-spacing: -.4px; }
.studio-cube svg { width: 24px; height: 24px; stroke: #8fc6ad; stroke-width: 1; fill: none; }
.studio-toolbar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.view-switch { display: flex; padding: 3px; border: 1px solid #a4d5bd26; border-radius: 7px; background: #0c2f3033; }
.view-switch button { padding: 7px 12px; border: 0; border-radius: 4px; background: transparent; color: #a6c6b9; font-size: 10px; transition: background .2s, color .2s; }
.view-switch button[aria-pressed="true"] { background: #d3ebda; color: #244f42; box-shadow: 0 2px 6px #062b2420; }
.view-switch button:hover { color: #f3f8ed; }
.view-switch button[aria-pressed="true"]:hover { color: #173f32; }
.live-indicator { display: flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 1px; color: #97bdab; }
.live-indicator i { height: 4px; width: 4px; border-radius: 50%; background: #8ed2ad; box-shadow: 0 0 7px #8ed2ad66; }
.panel-illustration { position: relative; height: 291px; margin: 4px -9px 0; perspective: 1000px; cursor: grab; touch-action: pan-y; isolation: isolate; user-select: none; }
.panel-illustration.is-dragging { cursor: grabbing; }
.scene-floor { position: absolute; left: 1%; right: 1%; bottom: -35px; height: 178px; transform: perspective(350px) rotateX(63deg); background-image: linear-gradient(#a9d8bb15 1px, transparent 1px), linear-gradient(90deg, #a9d8bb15 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse, black 10%, transparent 70%); }
.scene-halo { position: absolute; width: 180px; height: 40px; left: calc(50% - 90px); bottom: 17px; border-radius: 50%; background: #07272380; filter: blur(9px); }
.model-position { position: absolute; top: 46%; left: 53%; width: var(--panel-width); height: var(--panel-height); transform: translate(-50%, -50%); transform-style: preserve-3d; transition: width .5s, height .5s; }
.model-float { width: 100%; height: 100%; transform-style: preserve-3d; animation: panel-float 9s ease-in-out infinite; }
.glass-model { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--scene-x)) rotateY(var(--scene-y)) rotateZ(-6deg); transition: transform .6s cubic-bezier(.2,.7,.25,1); }
.is-dragging .glass-model { transition: none; }
.scene-layers { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene-pane { --ply-depth: 9px; --glass-alpha: .15; position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--assembled-z)); border: 1px solid #9ce0c9a8; border-radius: 2px; background: linear-gradient(120deg, rgb(185 234 217 / var(--glass-alpha)) 0%, #abeddc14 38%, #e8ffe830 66%, rgb(103 200 170 / var(--glass-alpha)) 100%); box-shadow: inset 0 1px 0 #e7ffeea8, inset 0 0 24px #c5ffe817; transition: transform .6s cubic-bezier(.2,.7,.25,1), opacity .3s; }
.scene-pane::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 29%, #effffb40 29.5%, #effffb17 42%, transparent 42.5%, transparent 48%, #effffb4d 48.5%, #effffb4d 50%, transparent 50.5%); }
.scene-pane::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 40%, #edfff560 50%, transparent 60%); background-size: 350% 100%; animation: glass-sheen 11s ease-in-out infinite; }
.pane-back, .pane-side, .pane-left, .pane-top, .pane-bottom { position: absolute; display: block; pointer-events: none; border: 1px solid #adf2cf99; background: linear-gradient(90deg, #86d0b98a, #579e8aa3); }
.pane-back { inset: 0; border-radius: inherit; transform: translateZ(calc(-1 * var(--ply-depth))); background: rgb(116 191 166 / var(--glass-alpha)); }
.pane-side, .pane-left { width: var(--ply-depth); height: 100%; top: 0; transform-origin: left; transform: rotateY(90deg); transition: width .5s; }
.pane-side { left: 100%; }.pane-left { left: 0; }
.pane-top, .pane-bottom { width: 100%; height: var(--ply-depth); left: 0; transform-origin: top; transform: rotateX(-90deg); transition: height .5s; }
.pane-top { top: 0; }.pane-bottom { top: 100%; }
.pane-side, .pane-left, .pane-top, .pane-bottom { border: 0; box-shadow: inset 0 0 0 .35px #adf2cf99; }
.pane-mark { position: absolute; left: 7px; bottom: 6px; color: #d9f4dd; font-size: 6px; font-weight: 500; letter-spacing: .8px; opacity: .7; white-space: nowrap; pointer-events: none; }
.scene-pane.scene-interlayer { border-color: #ebbc72aa; background: linear-gradient(130deg, #deb16c15, #e7b97742); box-shadow: inset -2px 0 0 #e8b66aa3; }
.scene-interlayer .pane-back, .scene-interlayer .pane-side, .scene-interlayer .pane-left, .scene-interlayer .pane-top, .scene-interlayer .pane-bottom { border-color: #f1c27c99; background: #d7a56770; }
.scene-interlayer[data-interlayer="SGP"] { border-color: #acd9e6aa; background: linear-gradient(130deg, #a1d0e315, #8cc6de42); box-shadow: inset -2px 0 0 #94c8dda3; }
.scene-interlayer[data-interlayer="SGP"] .pane-back, .scene-interlayer[data-interlayer="SGP"] .pane-side, .scene-interlayer[data-interlayer="SGP"] .pane-left, .scene-interlayer[data-interlayer="SGP"] .pane-top, .scene-interlayer[data-interlayer="SGP"] .pane-bottom { border-color: #badced99; background: #8bbacc70; }
.scene-interlayer::before, .scene-interlayer::after { display: none; }
.scene-frame { position: absolute; inset: 0; transform: translateZ(var(--front-z)); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.7,.25,1); }
.scene-edge { position: absolute; display: block; background: linear-gradient(90deg, #8fdab7, #d6f3da); box-shadow: 0 0 9px #77c5a233; border-radius: 1px; transition: opacity .3s; }
.scene-edge.edge-top, .scene-edge.edge-bottom { height: 4px; left: -1px; right: -1px; }
.scene-edge.edge-left, .scene-edge.edge-right { width: 4px; top: -1px; bottom: -1px; }
.scene-edge.edge-top { top: -1px; }.scene-edge.edge-bottom { bottom: -1px; }.scene-edge.edge-left { left: -1px; }.scene-edge.edge-right { right: -1px; }
.panel-illustration[data-sides="1"] .edge-top, .panel-illustration[data-sides="1"] .edge-left, .panel-illustration[data-sides="1"] .edge-right { opacity: 0; }
.panel-illustration[data-sides="2"] .edge-left, .panel-illustration[data-sides="2"] .edge-right { opacity: 0; }
.panel-illustration[data-sides="1"] .edge-bottom, .panel-illustration[data-sides="2"] .edge-top, .panel-illustration[data-sides="2"] .edge-bottom { opacity: 1; }
.dimension-rail { position: absolute; color: #badbcc; font-size: 9px; font-variant-numeric: tabular-nums; transform: translateZ(var(--front-z)); transition: transform .8s cubic-bezier(.2,.7,.25,1); }
.dimension-rail::before, .dimension-rail::after { content: ""; position: absolute; background: #9ac4b580; }
.dimension-length { left: -26px; height: 100%; border-left: 1px solid #9ac4b54d; }
.dimension-length::before, .dimension-length::after { left: -4px; width: 7px; height: 1px; }.dimension-length::before { top: 0; }.dimension-length::after { bottom: 0; }
.dimension-length span { position: absolute; left: -9px; top: 50%; white-space: nowrap; transform: translate(-50%, -50%) rotate(-90deg); }
.dimension-width { top: calc(100% + 23px); width: 100%; border-top: 1px solid #9ac4b54d; }
.dimension-width::before, .dimension-width::after { top: -4px; width: 1px; height: 7px; }.dimension-width::before { left: 0; }.dimension-width::after { right: 0; }
.dimension-width span { position: absolute; left: 50%; top: 8px; white-space: nowrap; transform: translateX(-50%); }
.panel-illustration[data-view="exploded"] .scene-pane { transform: translateZ(var(--exploded-z)); }
.panel-illustration[data-view="exploded"] .scene-frame, .panel-illustration[data-view="exploded"] .dimension-rail { transform: translateZ(var(--exploded-front-z)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.scene-handles { position: absolute; inset: 0; transform: translateZ(calc(var(--front-z) + 2px)); transform-style: preserve-3d; pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.25,1); }
.panel-illustration[data-view="exploded"] .scene-handles { transform: translateZ(calc(var(--exploded-front-z) + 2px)); }
.scene-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; opacity: 0; }.anchor-origin { top: 0; left: 0; }.anchor-width { top: 0; left: 100%; }.anchor-length { top: 100%; left: 0; }
.resize-handle { position: absolute; display: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 5px; border: 1px solid #f9e5ba; border-radius: 7px; color: #3f4e3d; background: #e6bf7d; box-shadow: 0 2px 10px #062c3455, 0 0 0 4px #e5bc711c; transform: translate(-50%, -50%) rotateZ(6deg) rotateY(calc(-1 * var(--scene-y))) rotateX(calc(-1 * var(--scene-x))); pointer-events: auto; touch-action: none; }
.js .resize-handle { display: flex; }.resize-width { left: 100%; top: 50%; cursor: ew-resize; }.resize-length { left: 50%; top: 100%; cursor: ns-resize; }
.resize-handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.resize-handle:hover, .resize-handle:focus-visible { background: #f5d79e; box-shadow: 0 3px 15px #062c3455, 0 0 0 5px #e5bc7133; }.resize-handle:focus-visible { outline-color: #fff1cc; }
.panel-studio.is-resizing .model-float { animation-play-state: paused; }.panel-studio.is-resizing .model-position, .panel-studio.is-resizing .glass-model, .panel-studio.is-resizing .scene-pane, .panel-studio.is-resizing .pane-side, .panel-studio.is-resizing .pane-left, .panel-studio.is-resizing .pane-top, .panel-studio.is-resizing .pane-bottom, .panel-studio.is-resizing .scene-frame, .panel-studio.is-resizing .scene-handles, .panel-studio.is-resizing .dimension-rail { transition: none; }
.scene-dimensions { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 11px; }.js .scene-dimensions { display: grid; }
.scene-dimensions label > span { display: block; margin-bottom: 6px; color: #b5d2c0; font-size: 9px; }
.scene-dimensions label > div { display: flex; align-items: center; border: 1px solid #b6d9be40; border-radius: 6px; background: #0c2f3033; }
.scene-dimensions input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 9px; color: #f1f9e9; font-size: 13px; font-variant-numeric: tabular-nums; border: 0; border-radius: 6px; background: transparent; }
.scene-dimensions input:focus { outline: 2px solid #e6bf7d; outline-offset: 1px; }.scene-dimensions input:user-invalid { outline: 1px solid #d98f7b; }
.scene-dimensions label > div > span { padding-right: 9px; color: #8db89d; font-size: 9px; }
.scene-instructions { display: none; margin: 0 0 15px; color: #b6ceae; font-size: 9px; line-height: 1.65; }.js .scene-instructions { display: block; }
.scene-warning { margin: 0 0 13px; padding: 9px; border: 1px solid #d9b17455; border-radius: 6px; font-size: 10px; line-height: 1.6; color: #edd8b0; background: #edc47c0a; }
.pressure-trails { position: absolute; left: 10px; top: 38%; width: 65px; height: 68px; opacity: var(--pressure-opacity, .75); }
.pressure-trails i { position: absolute; display: block; height: 1px; width: 33px; left: 0; top: 0; background: linear-gradient(90deg, transparent, #dfbb85); animation: pressure-flow 3s ease-in-out infinite; }
.pressure-trails i::after { content: ""; position: absolute; width: 5px; height: 5px; border-right: 1px solid #dfbb85; border-top: 1px solid #dfbb85; right: 0; top: -2px; transform: rotate(45deg); }
.pressure-trails i:nth-child(2) { top: 19px; width: 43px; animation-delay: -.7s; }.pressure-trails i:nth-child(3) { top: 38px; animation-delay: -1.4s; }
.pressure-trails > span { position: absolute; top: 56px; left: 0; font-size: 6px; letter-spacing: 1px; color: #ccba94; white-space: nowrap; }
.panel-illustration[data-pressure="off"] .pressure-trails { opacity: .2; }.panel-illustration[data-pressure="off"] .pressure-trails i { animation: none; }
.scene-axis { position: absolute; right: 9px; bottom: 3px; width: 36px; height: 40px; color: #80ac98; }
.scene-axis svg { width: 36px; height: 36px; stroke: #83b59e; stroke-width: .7; fill: none; }
.scene-axis i, .scene-axis b { position: absolute; font-size: 6px; font-style: normal; font-weight: 400; }.scene-axis i { left: 9px; top: -3px; }.scene-axis b { right: 0; bottom: 0; }
.scene-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0 17px; }
.drag-hint { color: #a0c2b3; font-size: 9px; }
.scene-navigation > div { display: flex; gap: 4px; }
.scene-navigation button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #abd6bc0a; border: 1px solid #abd6bc30; color: #b0d2c0; transition: background .2s, border-color .2s; }
.scene-navigation button:hover { background: #abd6bc25; border-color: #abd6bc88; }
.scene-navigation button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.panel-studio .preview-key { flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid #b6d9be20; color: #b0cdbb; font-size: 9px; }
.panel-studio .support-key { background: #afe2bf; }.panel-studio .glass-key { background: #73bdad66; border-color: #8dc8b7; border-radius: 1px; }
.interlayer-key { width: 9px; height: 9px; border: 1px solid #d5af77; border-radius: 1px; background: #d5af7740; }
.panel-studio[data-interlayer="SGP"] .interlayer-key { border-color: #adcddd; background: #adcddd40; }
.panel-studio[data-interlayer="mixed"] .interlayer-key { border-color: #c2d7c4; background: linear-gradient(90deg, #d5af7770 50%, #adcddd70 50%); }
.studio-build-up { margin-top: 19px; }.studio-build-up > span { font-size: 7px; letter-spacing: 1.3px; color: #8cbaa3; }.studio-build-up p { margin: 7px 0 0; color: #d2e7d6; font-size: 11px; line-height: 1.6; }
.build-up-row { display: flex; align-items: baseline; gap: 9px; }.build-up-row > b { font-size: 8px; letter-spacing: .8px; color: #8cb79c; font-weight: 500; }.build-up-row + .build-up-row { margin-top: 4px; }.build-up-row > span { flex: 1; }
.panel-studio .preview-note { color: #99bca8; font-size: 9px; margin-top: 15px; text-align: left; }
.preview-note > span { display: block; line-height: 1.6; }.studio-build-up .build-up-total { padding-top: 9px; margin-top: 10px; border-top: 1px solid #b6d9be20; color: #a3c7aa; font-size: 10px; }
.studio-noscript { font-size: 10px; line-height: 1.5; color: #c5dfc9; }
.studio-toolbar, .scene-navigation { visibility: hidden; }.js .studio-toolbar, .js .scene-navigation { visibility: visible; }
.panel-studio.is-calculating::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, #aae9c7, transparent); background-size: 200% 100%; animation: calculation-scan 1.5s linear infinite; }
.results-arrived { animation: result-arrival .45s ease-out both; }
.js .page-heading { animation: intro-arrival .65s ease-out both; }.js .input-card { animation: intro-arrival .55s ease-out both; }.js .input-card:nth-of-type(2) { animation-delay: .08s; }.js .input-card:nth-of-type(3) { animation-delay: .16s; }.js .review-column { animation: intro-arrival .65s .12s ease-out both; }
.motion-paused .hero-object, .motion-paused .model-float, .motion-paused .scene-pane::after, .motion-paused .pressure-trails i, .scene-offscreen .model-float, .scene-offscreen .scene-pane::after, .scene-offscreen .pressure-trails i, .hero-art.scene-offscreen .hero-object { animation-play-state: paused; }
html:not(.js) .hero-object, html:not(.js) .model-float, html:not(.js) .scene-pane::after, html:not(.js) .pressure-trails i { animation: none; }
.panel-studio:focus-within .model-float, .panel-illustration:hover .model-float { animation-play-state: paused; }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotateZ(0); } 50% { transform: translateY(-7px) rotateZ(2deg); } }
@keyframes panel-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes glass-sheen { 0%, 18% { background-position: 100% 0; opacity: 0; } 23% { opacity: .6; } 38%, 100% { background-position: 0 0; opacity: 0; } }
@keyframes pressure-flow { 0%, 100% { transform: translateX(-4px); opacity: .35; } 55% { transform: translateX(10px); opacity: .9; } }
@keyframes calculation-scan { to { background-position: -200% 0; } }
@keyframes intro-arrival { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes result-arrival { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* The canvas displays the calculated deformation field inside the same scene. */
.physics-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: pan-y; }
.has-simulation .model-position, .has-simulation .pressure-trails, .has-simulation .scene-axis { visibility: hidden; }
.has-simulation .model-float { animation: none; }
.simulation-controls { margin-top: 5px; padding: 16px 0 0; border-top: 1px solid #b6d9be20; }
.simulation-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.simulation-options > label { min-width: 0; color: #b5d2c0; font-size: 11px; line-height: 1.5; }
.simulation-options > label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.simulation-options label > span { display: block; margin-bottom: 6px; }
.simulation-options select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 10px 30px 10px 10px; border: 1px solid #b6d9be40; border-radius: 7px; color: #eef7ee; background-color: #123b36; font: inherit; font-size: 12px; color-scheme: dark; }
.simulation-options select:focus-visible { outline-color: #e6bf7d; }
.simulation-load { display: block; margin-top: 16px; color: #b5d2c0; font-size: 12px; line-height: 1.5; }
.simulation-load label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #b5d2c0; font-size: 11px; line-height: 1.5; }
.simulation-load input[type="range"] { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; order: 1; accent-color: #d6bc87; cursor: pointer; touch-action: pan-y; }
.simulation-load output { margin-left: auto; color: #eef7ee; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.simulation-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; padding: 11px 14px; border: 1px solid #a4d5bd50; border-radius: 7px; color: #e4f2de; background: #abd6bc12; font-size: 12px; font-weight: 600; }
.simulation-play:hover:enabled { background: #abd6bc25; border-color: #abd6bc88; }
.simulation-play:disabled { cursor: default; }
.simulation-play:focus-visible { outline-color: #e6bf7d; }
.simulation-status { margin: 13px 0; color: #bdd8c3; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.simulation-invalid { color: #f1c89c; }
.simulation-warning { margin: 12px 0; padding: 11px; border: 1px solid #d9b17455; border-radius: 7px; color: #edd8b0; background: #edc47c0a; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.simulation-readout { margin-top: 12px; }
.simulation-readout dl, dl.simulation-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.simulation-readout dl > div, dl.simulation-readout > div { min-width: 0; padding: 11px; border: 1px solid #b6d9be20; border-radius: 7px; background: #0c2f3026; }
.simulation-readout dt { margin: 0 0 5px; color: #9dbda9; font-size: 10px; line-height: 1.5; }
.simulation-readout dd { margin: 0; color: #edf7e9; font-size: 14px; line-height: 1.45; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.simulation-readout dd small { color: #afcbb8; font-size: 10px; font-weight: 400; }
.simulation-details { margin: 16px 0; color: #b2cdbb; font-size: 11px; line-height: 1.7; }
.simulation-details summary { min-height: 44px; padding: 11px 0; color: #d9ebd5; cursor: pointer; font-weight: 600; }
.simulation-details p { margin: 9px 0; overflow-wrap: anywhere; }
.simulation-details ul, .simulation-details ol { margin: 9px 0; padding-left: 18px; }
.simulation-details li + li { margin-top: 6px; }
.simulation-details a { color: #d7e8b1; text-underline-offset: 3px; }

@media (min-width: 1450px) {
  .workspace { padding-top: 31px; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 405px; }
  .page-heading { min-height: 287px; }
  .hero-art { right: 34px; }
}
@media (max-width: 1150px) {
  .page-heading { padding: 28px; }
  .hero-art { right: -20px; width: 350px; }
  .hero-copy { max-width: 590px; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; }
  .input-card { padding: 24px; }
}
@media (max-width: 1020px) {
  .hero-art { right: -55px; opacity: .8; }
  .hero-copy { max-width: 520px; }
  h1 { font-size: 36px; }
  .page-description { max-width: 350px; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr) 325px; gap: 20px; }
  .panel-studio { padding: 22px 18px 18px; }
  .panel-studio .preview-heading h2 { font-size: 14px; }
  .input-card { padding: 23px 20px; }
  .field label { font-size: 11px; }
  .motion-toggle { margin-left: 5px; }
}
@media (max-width: 810px) {
  .workspace { max-width: 700px; padding-top: 23px; }
  .page-heading { min-height: 271px; padding: 25px; }
  .hero-art { right: -92px; opacity: .58; }
  .hero-copy { max-width: 480px; }
  .calculator-layout { display: flex; flex-direction: column; gap: 22px; }
  #calculator-form, #results-panel { width: 100%; }
  .review-column { display: contents; }
  .panel-studio { order: -1; width: 100%; min-width: 0; min-height: auto; display: block; padding: 23px; }
  .panel-studio .preview-heading h2 { font-size: 18px; }
  .studio-toolbar { gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  .panel-illustration { position: relative; width: 100%; height: clamp(300px, 52vw, 360px); margin: 2px 0 0; }
  .model-position { left: 51%; }
  .studio-cube, .live-indicator { display: flex; }
  .view-switch button { min-height: 44px; padding: 10px 16px; font-size: 12px; }
  .scene-navigation { flex-wrap: wrap; padding: 3px 0 16px; }
  .scene-navigation > div { gap: 8px; }
  .scene-navigation button, .resize-handle { width: 44px; height: 44px; }
  .scene-navigation button svg { width: 18px; height: 18px; }
  .drag-hint, .scene-instructions { font-size: 11px; }
  .scene-dimensions label { min-width: 0; }
  .scene-dimensions input { font-size: 16px; min-height: 48px; padding: 11px; }
  .scene-dimensions label > span { min-height: 18px; font-size: 11px; line-height: 1.5; }
  .scene-dimensions label > div > span { font-size: 11px; }
  .simulation-options select { font-size: 16px; min-height: 48px; }
  .simulation-options > label, .simulation-load label { font-size: 12px; }
  .simulation-readout dt { font-size: 11px; }
  .simulation-readout dd { font-size: 16px; }
  .scene-warning, .panel-studio .preview-key, .panel-studio .preview-note { font-size: 11px; }
  .panel-studio .preview-key { gap: 14px; }
  .studio-build-up > span { font-size: 9px; }
  .studio-build-up p { font-size: 12px; overflow-wrap: anywhere; }
  .studio-build-up .build-up-total { font-size: 11px; }
  .build-up-row > b { flex-shrink: 0; font-size: 9px; }
  .build-up-row > span { min-width: 0; }
  .control, .lite-card .control { min-height: 48px; font-size: 16px; }
  .field label { font-size: 12px; }
  .field-hint, .field-error { font-size: 11px; }
  .download-button { min-height: 48px; }
  .motion-toggle { min-height: 44px; font-size: 11px; padding: 10px 12px; }
  .motion-toggle svg { width: 14px; height: 14px; }
  .workspace-note { width: 100%; max-width: 500px; }
  .workspace-note p { font-size: 11px; }
  .result-notices > summary, .calculation-trace summary { min-height: 44px; display: flex; align-items: center; font-size: 11px; }
  .result-notices p, .calculation-trace > p, .calculation-trace dl > div { font-size: 11px; }
  .result-notices > summary::before, .calculation-trace summary::before { content: "+"; margin-right: 8px; }
  .result-notices[open] > summary::before, .calculation-trace[open] summary::before { content: "−"; }
}
@media (max-width: 550px) {
  .site-header { min-height: 82px; padding: 12px 15px; gap: 12px; flex-wrap: wrap; }
  .brand { gap: 10px; }
  .brand-name { font-size: 22px; }
  .header-meta { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
  .standard-tag { font-size: 9px; }
  .motion-toggle { margin: 0; }
  .workspace { padding: 18px 12px 32px; }
  .page-heading { min-height: 290px; padding: 23px 19px; border-radius: 17px; align-items: flex-start; margin-bottom: 18px; }
  .hero-copy { max-width: 310px; }
  h1 { font-size: clamp(28px, 8.3vw, 35px); max-width: none; letter-spacing: -1.2px; }
  .page-description { font-size: 13px; line-height: 1.7; max-width: 255px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.15px; }
  .hero-workflow { gap: 9px; margin-top: 18px; font-size: 10px; flex-wrap: wrap; max-width: 270px; }
  .hero-workflow > i { width: 16px; }
  .hero-art { width: 200px; right: -65px; top: 145px; height: 210px; bottom: auto; opacity: .45; }
  .hero-object { width: 79px; height: 103px; left: 64px; top: 35px; }
  .hero-stack { transform: rotateX(-13deg) rotateY(-35deg) rotateZ(-20deg); }
  .hero-sheet-back { transform: translateZ(-27px); }
  .hero-sheet-front { transform: translateZ(27px); }
  .hero-orbit { width: 170px; height: 170px; top: 7px; left: 12px; }
  .hero-orbit-inner { width: 130px; height: 130px; top: 27px; left: 32px; }
  .hero-floor { left: 26px; width: 143px; bottom: 40px; }
  .hero-caption, .hero-coordinate { display: none; }
  .calculator-layout { gap: 18px; }
  .panel-studio { padding: 21px 17px 18px; }
  .panel-studio .preview-heading h2 { font-size: 17px; }
  .panel-illustration { height: 296px; }
  .pressure-trails { left: 0; }
  .scene-dimensions { gap: 10px; }
  .simulation-options { grid-template-columns: minmax(0, 1fr); }
  .simulation-options > label:last-child:nth-child(odd) { grid-column: auto; }
  .scene-dimensions label > span { min-height: 33px; }
  .input-card { padding: 21px 17px; border-radius: 14px; }
  .section-heading { gap: 10px; }
  .section-heading > div { min-width: 0; }
  .section-heading p { font-size: 12px; }
  .section-number { flex-basis: 30px; height: 30px; }
  .section-icon { flex: 0 0 22px; }
  .fields-grid, .lite-card .fields-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .field label, .lite-card .field label { font-size: 12px; }
  .label-unit { font-size: 11px; }
  .glazing-field, .air-gap-field, .full-field { max-width: none; }
  .lite-card { padding: 17px 13px; }
  .lite-index, .lite-description { font-size: 10px; line-height: 1.6; }
  .laminate-build-up p { min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
  .laminate-build-up .nominal-equivalent { font-size: 11px; }
  .calculation-actions { margin-left: 0; margin-right: 0; }
  .calculation-actions > p { font-size: 11px; }
  .primary-button { min-height: 52px; font-size: 14px; }
  .results-card { padding: 22px 17px; }
  .results-empty { padding-bottom: 0; }
  .result-summary span { font-size: 11px; }
  .result-summary .dimension-summary { font-size: 12px; }
  .result-metrics > div { flex-wrap: wrap; gap: 8px; }
  .result-metrics dt { font-size: 12px; }
  .result-metrics dd { font-size: 11px; margin-left: auto; }
  .result-metrics dd > strong { font-size: 15px; }
  .duration-heading > span:first-child, .duration-heading > span:last-child { font-size: 10px; }
  .lite-result-heading h3 { font-size: 14px; }
  .lite-result-heading p, .result-build-up, .deflection-limit { font-size: 11px; }
  .calculation-trace dl > div { flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
  .calculation-trace dd { margin-left: auto; }
  .site-footer { margin: 0 15px; gap: 9px; font-size: 11px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .site-footer p { font-size: 10px; }
}
@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 20px; }
  .brand-name > span { font-size: 7px; letter-spacing: 1px; }
  .motion-toggle { font-size: 10px; padding: 10px; }
  .view-switch { flex: 1; }
  .view-switch button { flex: 1; padding-left: 10px; padding-right: 10px; }
  .result-summary { grid-template-columns: minmax(0, 1fr); }
  .simulation-readout dl, dl.simulation-readout { grid-template-columns: minmax(0, 1fr); }
  .scene-dimensions { grid-template-columns: minmax(0, 1fr); }
  .scene-dimensions label > span { min-height: auto; }
}
@media (pointer: coarse) {
  .view-switch button, .motion-toggle, .download-button { min-height: 44px; }
  .scene-navigation button, .resize-handle { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .page-heading, .js .input-card, .js .review-column, .results-arrived { opacity: 1; transform: none; }
  .scene-pane::after { opacity: 0; }
}
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { animation: none !important; transition: none !important; }
