/* Smart glass demonstration (Motorized Blinds & Shades, Bradd Oct 2 2026). Real smart glass switches the whole pane at
   once and turns to a soft blur, so the pane fades in together (no wipe) with a light milky tint over a blur.
   The pane sits over the glass wall in smart-glass-bathroom-partition.jpg (left 2.6%, top 0, 94.5% × 79.3%). */
.sg{padding:110px 0;background:linear-gradient(180deg,#fff,#eef8fe);border-top:1px solid var(--line)}
.sg-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center}
.sg h2{font-size:clamp(32px,3.6vw,48px);line-height:1.1}
.sg-copy p{font-size:17px;line-height:1.75}
.sg-uses{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sg-uses li{padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:600;font-size:14px}
.sg-scene{position:relative;margin:0;border-radius:22px;overflow:hidden;box-shadow:0 40px 80px -40px rgba(15,47,68,.55);cursor:pointer}
.sg-scene img{display:block;width:100%;height:auto}
.sg-pane{position:absolute;left:2.6%;top:0;width:94.5%;height:79.3%;opacity:0;transition:opacity .4s ease;
  background:rgba(246,248,250,.2);-webkit-backdrop-filter:blur(9px) saturate(.95) brightness(1.04);backdrop-filter:blur(9px) saturate(.95) brightness(1.04)}
.sg-seam{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:rgba(20,20,20,.55)}
.sg[data-state="frosted"] .sg-pane{opacity:1}
.sg-state{position:absolute;left:18px;bottom:18px;padding:8px 14px;border-radius:4px;background:rgba(15,47,68,.78);color:#fff;font-size:12px;font-weight:600;letter-spacing:.06em;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sg-switch{position:absolute;right:18px;bottom:18px;display:flex;align-items:center;gap:14px;padding:10px 12px 10px 20px;border:0;border-radius:4px;background:rgba(255,255,255,.92);color:var(--deep);font:600 14px Poppins,system-ui,sans-serif;cursor:pointer;box-shadow:0 14px 34px -14px rgba(15,47,68,.6)}
.sg-switch:hover{background:#fff}
.sg-track{position:relative;width:52px;height:30px;border-radius:4px;background:#c9d6df;transition:background .25s}
.sg-knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:3px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .25s ease}
.sg-switch[aria-pressed="true"] .sg-track{background:var(--blue)}
.sg-switch[aria-pressed="true"] .sg-knob{transform:translateX(22px)}
.sg-switch.is-hinting{animation:sg-hint 2.4s ease-in-out infinite}
@keyframes sg-hint{0%,100%{box-shadow:0 14px 34px -14px rgba(15,47,68,.6),0 0 0 0 rgba(1,126,215,.45)}50%{box-shadow:0 14px 34px -14px rgba(15,47,68,.6),0 0 0 10px rgba(1,126,215,0)}}

/* How it works: crystals scatter (private) or line up (clear), all at once. */
.sg-how{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:40px;align-items:center;margin-top:56px;padding-top:44px;border-top:1px solid var(--line)}
.sg-how h3{margin:0 0 8px}
.sg-how p{margin:0;max-width:640px;font-size:16px;line-height:1.7}

@media(max-width:900px){.sg-grid,.sg-how{grid-template-columns:1fr;gap:36px}.sg{padding:76px 0}}
@media(max-width:650px){.sg-uses{grid-template-columns:1fr}.sg-switch{right:10px;bottom:10px;padding:8px 10px 8px 14px;font-size:13px}.sg-state{left:10px;bottom:auto;top:10px}}
@media(prefers-reduced-motion:reduce){.sg-pane,.sg-knob,.sg-lc,.sg-ray-out{transition-duration:.01s}.sg-switch.is-hinting{animation:none}}

/* How it works: a cross-section of the glass (Bradd, Oct 3). Power on: crystals perpendicular to the glass in straight rows,
   light passes straight through. Power off: they tip sideways out of line and the light scatters. */
.sg-diagram{margin:0}
.sg-crystals{cursor:pointer;position:relative;height:210px;border-radius:12px;background:linear-gradient(135deg,#f6fbff,#e3eef6);border:1px solid var(--line);overflow:hidden}
.sg-glass{position:absolute;left:3%;right:3%;height:8px;border-radius:2px;background:rgba(1,126,215,.18);box-shadow:inset 0 0 0 1px rgba(1,126,215,.35)}
.sg-glass-top{top:40px}.sg-glass-bottom{bottom:40px}
.sg-lc{position:absolute;left:var(--x);top:var(--y);width:4px;height:18px;margin:-9px 0 0 -2px;border-radius:2px;background:var(--blue);transition:transform .55s cubic-bezier(.3,.7,.2,1)}
.sg[data-state="frosted"] .sg-lc{transform:translate(var(--dx),var(--dy)) rotate(var(--r))}
.sg-ray{position:absolute;left:var(--x);width:2px;margin-left:-1px;background:linear-gradient(#ffd27a,rgba(255,210,122,.15));border-radius:1px}
.sg-ray-in{top:6px;height:30px}
.sg-ray-out{bottom:4px;height:32px;transform-origin:50% 0;transition:transform .55s cubic-bezier(.3,.7,.2,1),opacity .55s}
.sg[data-state="frosted"] .sg-ray-out{transform:rotate(var(--a)) scaleY(.7);opacity:.35}
.sg-diagram-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;font-size:14px;line-height:1.45}
.sg-power-state{font-weight:600}
.sg-failsafe{margin-top:14px!important;padding-left:14px;border-left:3px solid var(--blue)}
@media(max-width:650px){.sg-crystals{height:190px}}
@media(prefers-reduced-motion:reduce){.sg-lc,.sg-ray-out{transition-duration:.01s}}
