/* EcoSwitch — a warm, precision-made interface. No external dependencies. */
:root {
  --bg:#171511;
  --bg-deep:#11100e;
  --surface:#201d18;
  --surface-raised:#29251f;
  --text:#f0eadf;
  --muted:#a09a8e;
  --subtle:#716c61;
  --accent:#efa36e;
  --accent-bright:#ffb782;
  --active:#bfdf91;
  --sensor:#89c8ce;
  --warning:#e6b75d;
  --danger:#ef8772;
  --line:rgba(239,224,203,.12);
  --line-bright:rgba(239,224,203,.23);
  --glass:rgba(37,33,27,.65);
  --font:"Avenir Next","Segoe UI",Arial,sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --radius:10px;
  color-scheme:dark
}
* {
  box-sizing:border-box
}
html {
  overflow-x:clip;
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:30;
  pointer-events:none;
  opacity:.028;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.9' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}
::selection {
  background:#8c5c3c;
  color:#fff
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer
}
button,a,input,select,summary,[tabindex] {
  -webkit-tap-highlight-color:transparent
}
button {
  border:0;
  background:none
}
button:disabled {
  cursor:not-allowed;
  opacity:.5
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent-bright);
  outline-offset:5px;
  border-radius:3px
}
button::-moz-focus-inner {
  border:0
}
h1,h2,h3,p {
  margin:0
}
svg {
  display:block;
  max-width:100%
}
svg text {
  font-family:var(--mono)
}
svg [role=button] {
  cursor:pointer
}
svg [role=button]:focus-visible {
  outline:none;
  filter:drop-shadow(0 0 4px var(--accent))
}
button svg {
  pointer-events:none
}
img {
  max-width:100%
}
[hidden] {
  display:none!important
}
.svg-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
  pointer-events:none
}
.section-shell {
  width:min(1512px,100%);
  padding-left:5.2%;
  padding-right:5.2%;
  margin-inline:auto;
  position:relative
}
.ambient {
  position:absolute;
  pointer-events:none;
  z-index:-1;
  border-radius:50%;
  filter:blur(65px);
  opacity:.38
}
.ambient-one {
  width:min(800px,100vw);
  height:780px;
  top:50px;
  right:0;
  background:radial-gradient(ellipse,#684629 0%,#372c1e 34%,transparent 70%)
}
.ambient-two {
  width:min(600px,100vw);
  height:850px;
  top:1850px;
  left:-380px;
  background:radial-gradient(ellipse,#2c4b41 0%,transparent 70%);
  opacity:.16
}
.muted {
  color:var(--subtle)
}
.muted-heading {
  color:var(--muted)
}
.accent-text {
  color:var(--accent)
}
.cyan-text {
  color:var(--sensor)
}
.amber-text {
  color:var(--warning)
}
.danger-text {
  color:var(--danger)
}
.micro-label,.eyebrow {
  font-family:var(--mono);
  font-size:10px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:1.25px
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.9px;
  color:var(--accent)
}
.section-number {
  color:var(--subtle);
  margin-right:16px
}
.glass-surface {
  background:linear-gradient(128deg,rgba(53,46,35,.48),rgba(29,27,23,.72));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:inset 0 1px 0 rgba(255,232,201,.03),0 12px 38px rgba(0,0,0,.09);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px)
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  min-width:6px;
  background:var(--active);
  border-radius:50%;
  box-shadow:0 0 8px rgba(191,223,145,.2)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:48px;
  padding:13px 22px;
  border:1px solid transparent;
  border-radius:5px;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:.15px;
  transition:background .25s,color .25s,border-color .25s,transform .25s,box-shadow .25s
}
.button span[aria-hidden] {
  font-size:17px
}
.button:hover {
  transform:translateY(-2px)
}
.button-primary {
  background:var(--accent);
  color:#211a12;
  box-shadow:0 3px 16px rgba(236,151,91,.06)
}
.button-primary:hover {
  background:var(--accent-bright);
  box-shadow:0 3px 22px rgba(236,151,91,.18)
}
.button-quiet {
  border-color:var(--line);
  background:rgba(255,240,215,.02)
}
.button-quiet:hover,.button-outline:hover {
  background:rgba(255,231,196,.06);
  border-color:var(--line-bright)
}
.button-quiet svg {
  width:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.2
}
.button-outline {
  border-color:var(--line);
  background:rgba(0,0,0,.06)
}
.button-small {
  font-size:10px;
  min-height:38px;
  padding:9px 13px;
  gap:8px
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  font-size:23px;
  color:var(--muted);
  border-radius:4px;
  transition:background .2s,color .2s
}
.icon-button:hover {
  background:rgba(255,255,255,.05);
  color:var(--text)
}
.text-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:8px 10px;
  font-size:11px;
  white-space:nowrap;
  color:var(--muted);
  transition:color .2s
}
.text-button:hover {
  color:var(--text)
}
.text-button>span[aria-hidden],.transport-icon {
  font-size:17px;
  line-height:1
}
.inline-link {
  display:inline-flex;
  gap:24px;
  align-items:center;
  font-size:12px;
  color:var(--accent)
}
.inline-link:hover {
  color:var(--accent-bright)
}
.skip-link {
  position:fixed;
  top:10px;
  left:10px;
  z-index:100;
  background:var(--accent);
  color:#111;
  padding:12px 20px;
  transform:translateY(-150%)
}
.skip-link:focus {
  transform:translateY(0)
}
/* Navigation */
.site-header {
  height:88px;
  position:relative;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:0 5.2%;
  border-bottom:1px solid var(--line);
  background:rgba(23,21,17,.8);
  backdrop-filter:blur(18px)
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:18px;
  font-weight:650;
  letter-spacing:2px;
  white-space:nowrap;
  line-height:1
}
.brand-mark {
  width:28px;
  height:28px;
  color:var(--accent)
}
.brand-dot {
  font-size:8px;
  vertical-align:super;
  margin-left:3px;
  color:var(--muted)
}
.main-nav {
  display:flex;
  align-items:center;
  gap:31px
}
.main-nav a {
  font-size:12px;
  color:var(--muted);
  position:relative;
  transition:color .2s
}
.main-nav a:hover {
  color:var(--text)
}
.main-nav a::after {
  position:absolute;
  content:"";
  bottom:-7px;
  left:0;
  width:0;
  height:1px;
  background:var(--accent);
  transition:width .2s
}
.main-nav a:hover::after {
  width:100%
}
.header-actions {
  display:flex;
  align-items:center;
  gap:26px
}
.header-status {
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1px;
  color:var(--muted)
}
.header-status .status-dot {
  width:5px;
  height:5px;
  min-width:5px
}
.header-cta {
  padding:10px 16px;
  border:1px solid var(--line-bright);
  border-radius:4px;
  font-size:11px;
  transition:background .2s
}
.header-cta span {
  margin-left:14px;
  color:var(--accent)
}
.header-cta:hover {
  background:rgba(239,163,110,.08)
}
.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px
}
.menu-toggle span {
  height:1px;
  width:18px;
  background:var(--text)
}
/* Cinematic product hero */
.hero {
  display:grid;
  grid-template-columns:1fr 1.18fr;
  column-gap:18px;
  padding-top:68px;
  padding-bottom:0;
  min-height:775px
}
.hero-copy {
  position:relative;
  z-index:2;
  padding-bottom:58px
}
.hero-eyebrow {
  display:flex;
  gap:11px;
  align-items:center;
  margin-bottom:26px;
  font-size:9px;
  letter-spacing:1.8px
}
.tiny-cross {
  font-size:20px;
  line-height:1;
  font-weight:200
}
.hero h1 {
  font-size:clamp(54px,6.02vw,89px);
  line-height:1.005;
  letter-spacing:-4.7px;
  font-weight:530
}
.hero h1>span {
  color:#a9a18e
}
.hero-description {
  max-width:380px;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
  margin-top:28px;
  letter-spacing:.1px
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px
}
.hero-actions .button {
  font-size:11px;
  padding:12px 18px
}
.hero-tags {
  font-family:var(--mono);
  font-size:7.5px;
  letter-spacing:1px;
  color:var(--subtle);
  margin-top:31px;
  white-space:nowrap
}
.hero-tags b {
  font-weight:400;
  color:var(--accent);
  margin:0 5px
}
.hero-visual {
  align-self:center;
  position:relative;
  padding:0 0 54px;
  margin-right:-20px;
  margin-left:-24px;
  min-width:0
}
.scene-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5px;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1px;
  color:var(--muted)
}
.scene-heading>span:first-child {
  display:flex;
  align-items:center;
  gap:8px
}
.scene-heading>span:last-child {
  font-size:7px;
  color:var(--subtle)
}
.scene-heading .muted {
  margin:0 8px
}
.classroom-stage {
  position:relative;
  aspect-ratio:1.19;
  isolation:isolate;
  margin-top:10px
}
.scene-grid {
  position:absolute;
  inset:10% -2% -10%;
  z-index:-1;
  opacity:.1;
  background-image:linear-gradient(#e0ae71 1px,transparent 1px),linear-gradient(90deg,#e0ae71 1px,transparent 1px);
  background-size:42px 42px;
  transform:perspective(550px) rotateX(65deg) rotateZ(-30deg) scale(.8);
  mask-image:radial-gradient(ellipse,black 0%,transparent 68%)
}
.classroom-illustration {
  position:absolute;
  inset:-8% -3% 0;
  transition:transform .8s cubic-bezier(.22,.61,.36,1)
}
.classroom-svg {
  width:100%;
  height:100%;
  overflow:visible;
  filter:drop-shadow(0 35px 20px rgba(0,0,0,.18))
}
.classroom-stage[data-focus="0"] .classroom-illustration {
  transform:translate(4px,-2px) scale(1.025)
}
.classroom-stage[data-focus="1"] .classroom-illustration {
  transform:translate(0,-3px) scale(1.025)
}
.classroom-stage[data-focus="2"] .classroom-illustration {
  transform:translate(-5px,-3px) scale(1.025)
}
.scene-coordinate {
  position:absolute;
  right:5%;
  bottom:8%;
  font-family:var(--mono);
  font-size:8px;
  color:var(--subtle);
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.8
}
.scene-coordinate span {
  font-size:23px;
  color:var(--muted)
}
.scene-load {
  position:absolute;
  right:1%;
  top:6%;
  padding:14px 17px;
  min-width:163px;
  border-radius:6px;
  background:linear-gradient(110deg,rgba(42,36,26,.87),rgba(26,24,20,.84));
  box-shadow:0 16px 22px rgba(0,0,0,.1)
}
.scene-load>.micro-label {
  font-size:6.5px;
  letter-spacing:.9px;
  color:var(--muted);
  display:block
}
.scene-load strong {
  display:block;
  font-size:34px;
  font-weight:400;
  line-height:1.3;
  letter-spacing:-1px;
  margin:5px 0
}
.scene-load strong small {
  font-size:13px;
  font-weight:400;
  letter-spacing:0;
  color:var(--subtle)
}
.scene-load-note {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:8px;
  color:var(--muted)
}
.scene-load-note .status-dot {
  width:4px;
  height:4px;
  min-width:4px
}
.scene-hint {
  position:absolute;
  bottom:2%;
  left:5%;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:9px;
  color:var(--muted)
}
.click-mark {
  font-size:21px;
  color:var(--accent)
}
.hint-line {
  display:block;
  width:45px;
  height:1px;
  background:var(--line-bright)
}
.scene-bottom {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:8px 0 0 24px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:6.5px;
  letter-spacing:.65px;
  color:var(--muted)
}
.live-square {
  display:inline-block;
  width:4px;
  height:4px;
  background:var(--active);
  margin-right:8px
}
.scene-version {
  color:var(--accent)
}
.scene-version span {
  color:var(--subtle);
  margin-left:14px
}
.hero-bottom {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:58px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:1.1px;
  color:var(--subtle)
}
.hero-bottom a {
  display:flex;
  align-items:center;
  gap:20px
}
.scroll-arrow {
  font-size:20px;
  color:var(--accent);
  line-height:1;
  transition:transform .3s
}
.hero-bottom a:hover .scroll-arrow {
  transform:translateY(4px)
}
.zone-inspector {
  position:absolute;
  z-index:8;
  right:4%;
  bottom:7%;
  width:257px;
  padding:15px 18px;
  background:rgba(32,28,22,.94);
  box-shadow:0 18px 50px rgba(0,0,0,.4);
  animation:inspectorIn .25s ease-out
}
.inspector-heading {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.inspector-heading .icon-button {
  width:25px;
  height:25px;
  font-size:20px
}
.inspector-state {
  display:flex;
  align-items:center;
  gap:7px;
  margin:8px 0 17px
}
.inspector-state strong {
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:1px
}
.inspector-state>span {
  font-family:var(--mono);
  margin-left:auto;
  font-size:8px;
  color:var(--muted)
}
.inspector-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 17px
}
.inspector-grid div {
  min-width:0
}
.inspector-grid dt {
  font-size:9px;
  color:var(--subtle)
}
.inspector-grid dd {
  font-family:var(--mono);
  font-size:10px;
  margin:3px 0 0;
  color:var(--text)
}
.inspector-actions {
  display:flex;
  gap:6px
}
.inspector-actions .button {
  flex:1;
  padding:8px 5px;
  font-size:8px
}
.zone-floor {
  fill:var(--zone-color,var(--active));
  fill-opacity:.035;
  stroke:var(--zone-color,var(--active));
  stroke-width:1;
  stroke-opacity:.18;
  transition:fill-opacity .3s,stroke-opacity .3s
}
.zone-interactive:hover .zone-floor,.zone-interactive:focus-visible .zone-floor {
  fill-opacity:.16;
  stroke-opacity:.65
}
.zone-interactive[aria-pressed=true] .zone-floor {
  fill-opacity:.09;
  stroke-opacity:.42
}
.zone-interactive[data-status=SHUTDOWN] .zone-floor {
  fill-opacity:.025;
  stroke-opacity:.18
}
.zone-number-svg {
  font-size:12px;
  fill:var(--zone-color);
  letter-spacing:1.5px
}
.zone-state-svg {
  font-size:7px;
  fill:#8d8b76;
  letter-spacing:.7px
}
.zone-accent-bar {
  stroke:var(--zone-color);
  stroke-width:3;
  opacity:.8
}
.room-light-panel {
  fill:var(--part-light,#f8dda5);
  transition:fill .6s,opacity .6s;
  opacity:var(--power-opacity,1)
}
.light-floor-pool {
  fill:#f6be63;
  opacity:calc(var(--power-opacity,1) * .06);
  transition:opacity .8s
}
.room-fan-blade {
  fill:#e2d9c8;
  stroke:#a69c88;
  stroke-width:.6
}
.room-fan-hub {
  fill:#b9ad97;
  stroke:#5a5040;
  stroke-width:1
}
.room-sensor-led {
  fill:var(--sensor-color,#89c8ce)
}
.sensor-wave {
  stroke:var(--sensor-color,var(--sensor));
  fill:none;
  stroke-width:1.4;
  opacity:.5;
  animation:radarBreath 3s ease-in-out infinite
}
.sensor-wave:nth-child(2) {
  animation-delay:.4s
}
.sensor-wave:nth-child(3) {
  animation-delay:.8s
}
[data-presence=false] .sensor-wave {
  opacity:.1;
  animation-play-state:paused
}
.signal-trace {
  fill:none;
  stroke:var(--sensor);
  stroke-width:1;
  stroke-dasharray:3 8;
  opacity:.28;
  animation:signalDash 12s linear infinite
}
.wiring-mode .signal-trace {
  stroke-width:2;
  opacity:.85
}
.room-pir-pulse {
  fill:none;
  stroke:var(--sensor);
  stroke-width:1.2;
  opacity:0
}
[data-triggered=true] .room-pir-pulse {
  opacity:.75;
  animation:radarBreath .7s infinite
}
[data-hw-zone] {
  --zone-color:var(--active);
  --part-light:#f5d9a0;
  --power-opacity:1;
  --sensor-color:var(--sensor)
}
[data-status=IDLE] {
  --zone-color:#b0aaa0
}
[data-status=WARNING] {
  --zone-color:var(--warning);
  --part-light:#f4bd55
}
[data-status=SHUTDOWN] {
  --zone-color:var(--danger);
  --part-light:#51483a;
  --power-opacity:.24
}
[data-presence=false] {
  --sensor-color:#617274
}
[data-powered=false] {
  --power-opacity:.24;
  --part-light:#51483a
}
/* Section hierarchy and zone telemetry */
.zone-section {
  padding-top:66px;
  padding-bottom:70px
}
.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:35px;
  margin-bottom:34px
}
.section-heading .eyebrow {
  margin-bottom:17px
}
h2 {
  font-size:clamp(32px,3.6vw,52px);
  line-height:1.13;
  letter-spacing:-2px;
  font-weight:450
}
.section-heading>p,.circuit-heading-controls>p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  padding-bottom:3px
}
.zone-cards {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px
}
.zone-card {
  position:relative;
  background:linear-gradient(135deg,rgba(46,41,32,.45),rgba(31,29,24,.62));
  border:1px solid var(--line);
  border-radius:8px;
  padding:21px 23px;
  overflow:hidden;
  transition:border-color .3s,background .3s
}
.zone-card::before {
  content:"";
  position:absolute;
  top:0;
  left:23px;
  right:23px;
  height:1px;
  background:var(--zone-color);
  opacity:.35
}
.zone-card.is-selected {
  border-color:rgba(239,163,110,.4);
  background:linear-gradient(135deg,rgba(62,49,34,.5),rgba(34,30,25,.65))
}
.zone-card-header {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.zone-select {
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:1px;
  padding:2px 0;
  min-height:28px
}
.zone-select>span:last-child {
  font-size:17px;
  color:var(--subtle)
}
.zone-select:hover>span:last-child {
  color:var(--accent)
}
.zone-state-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.8px;
  padding:4px 7px;
  border:1px solid color-mix(in srgb,var(--zone-color) 20%,transparent);
  background:color-mix(in srgb,var(--zone-color) 5%,transparent);
  color:var(--zone-color);
  border-radius:3px
}
.zone-state-pill i {
  width:4px;
  height:4px;
  background:currentColor;
  border-radius:50%
}
.zone-card-body {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:22px 0 17px
}
.zone-timer {
  position:relative;
  width:75px;
  height:75px;
  flex-shrink:0
}
.zone-timer svg {
  width:100%;
  height:100%;
  transform:rotate(-90deg)
}
.timer-base {
  fill:none;
  stroke:rgba(239,224,203,.08);
  stroke-width:2
}
.timer-path {
  fill:none;
  stroke:var(--zone-color);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray:201.1;
  stroke-dashoffset:var(--timer-offset,201.1);
  transition:stroke-dashoffset .22s linear,stroke .4s
}
.zone-timer-center {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.zone-timer-center strong {
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:-.7px;
  font-weight:400
}
.zone-timer-center span {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.8px;
  color:var(--subtle);
  margin-top:3px
}
.zone-occupancy strong {
  font-size:18px;
  font-weight:400;
  letter-spacing:-.3px;
  display:block
}
.zone-occupancy>span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:3px
}
.zone-sensor-line {
  display:flex;
  align-items:center;
  gap:6px;
  font-family:var(--mono);
  font-size:8px;
  color:var(--subtle);
  margin-top:11px
}
.zone-sensor-line i {
  width:4px;
  height:4px;
  background:var(--sensor-color);
  border-radius:1px
}
.zone-loads {
  display:flex;
  align-items:center;
  gap:17px;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:8px;
  color:var(--subtle)
}
.zone-loads>span {
  display:flex;
  align-items:center;
  gap:5px
}
.zone-loads svg {
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.2
}
.zone-loads b {
  font-size:8px;
  letter-spacing:.3px;
  color:var(--text);
  font-weight:400
}
.zone-loads .zone-idle-label {
  margin-left:auto;
  font-family:var(--font);
  font-size:9px;
  color:var(--muted)
}
.simulation-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:17px;
  padding:10px 18px;
  border-radius:5px;
  background:rgba(31,29,24,.55)
}
.clock-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.7px;
  color:var(--muted)
}
.clock-label strong {
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
  color:var(--text);
  margin-left:7px
}
.speed-control {
  display:flex;
  align-items:center;
  gap:3px
}
.speed-control>.micro-label {
  color:var(--subtle);
  font-size:8px;
  margin-right:10px
}
.speed-control button {
  width:34px;
  min-height:32px;
  font-family:var(--mono);
  font-size:10px;
  color:var(--muted);
  border-radius:3px;
  transition:background .2s,color .2s
}
.speed-control button:hover {
  background:rgba(255,255,255,.05)
}
.speed-control button.is-active {
  color:var(--accent);
  background:rgba(239,163,110,.09);
  box-shadow:inset 0 0 0 1px rgba(239,163,110,.13)
}
.transport-controls {
  display:flex;
  align-items:center;
  gap:3px
}
.simulation-note {
  font-size:9px;
  color:var(--subtle);
  text-align:center;
  margin-top:13px;
  line-height:1.7
}
/* Detection and interpretation */
.intelligence-section {
  padding-top:63px;
  padding-bottom:83px;
  border-top:1px solid var(--line)
}
.intelligence-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:65px;
  align-items:start;
  margin-top:42px
}
.radar-showcase {
  padding:25px 28px;
  background:linear-gradient(140deg,rgba(50,43,32,.63),rgba(28,29,25,.7));
  overflow:hidden
}
.panel-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0
}
.panel-topline>.micro-label {
  color:var(--muted)
}
.data-chip {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.7px;
  color:var(--sensor);
  border:1px solid rgba(137,200,206,.18);
  background:rgba(137,200,206,.04);
  padding:3px 6px;
  border-radius:3px;
  white-space:nowrap
}
.radar-demonstration {
  height:255px;
  margin:15px -15px 5px
}
.radar-demonstration svg {
  width:100%;
  height:100%
}
.radar-main-wave {
  fill:none;
  stroke:var(--sensor);
  stroke-width:1;
  opacity:.3;
  animation:radarBreath 4s infinite
}
.radar-main-wave:nth-child(2) {
  animation-delay:.7s
}
.radar-main-wave:nth-child(3) {
  animation-delay:1.4s
}
.radar-target {
  stroke:var(--accent);
  fill:rgba(239,163,110,.045);
  stroke-width:1.4
}
.radar-grid-line {
  stroke:var(--line);
  stroke-width:.7
}
.radar-sequence {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  font-family:var(--mono);
  font-size:7px;
  color:var(--muted);
  letter-spacing:.5px;
  padding:11px 0;
  border-block:1px solid var(--line)
}
.radar-sequence b {
  font-weight:400;
  color:var(--sensor)
}
.radar-copy {
  padding-top:25px
}
.radar-copy h3 {
  font-size:21px;
  letter-spacing:-.6px;
  font-weight:450;
  margin-bottom:12px
}
.radar-copy>p {
  font-size:12px;
  line-height:1.9;
  color:var(--muted)
}
.engineering-note {
  font-size:10px!important;
  line-height:1.8!important;
  color:var(--subtle)!important
}
.radar-copy .engineering-note {
  margin-top:14px;
  display:flex;
  gap:9px
}
.radar-copy .engineering-note>span {
  color:var(--accent);
  font-size:13px
}
.pir-note {
  border-top:1px solid var(--line);
  margin-top:22px;
  padding-top:18px;
  display:flex;
  align-items:center;
  gap:16px
}
.pir-note>div {
  width:65px;
  flex-shrink:0
}
.pir-note p {
  font-size:10px;
  line-height:1.8;
  color:var(--subtle)
}
.pir-note p strong {
  display:block;
  color:var(--muted);
  font-weight:500
}
.logic-pipeline {
  display:flex;
  flex-direction:column;
  position:relative;
  padding-top:3px
}
.logic-pipeline::before {
  content:"";
  position:absolute;
  top:17px;
  left:13px;
  bottom:65px;
  width:1px;
  background:linear-gradient(var(--sensor),rgba(137,200,206,.2) 40%,rgba(230,183,93,.3) 80%,var(--accent));
  opacity:.45
}
.pipeline-step {
  display:flex;
  gap:27px;
  position:relative;
  padding:0 0 28px
}
.pipeline-step:last-child {
  padding-bottom:0
}
.pipeline-index {
  position:relative;
  flex-shrink:0;
  z-index:1;
  width:27px;
  height:27px;
  margin-top:2px;
  border:1px solid var(--line-bright);
  background:var(--bg);
  border-radius:50%;
  font-family:var(--mono);
  font-size:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--subtle)
}
.pipeline-step>div {
  flex:1;
  min-width:0
}
.pipeline-step .micro-label {
  font-size:8px;
  letter-spacing:1.5px
}
.pipeline-step h3 {
  font-size:20px;
  line-height:1.3;
  letter-spacing:-.5px;
  font-weight:450;
  margin:4px 0 10px
}
.pipeline-step p {
  font-size:11px;
  line-height:1.85;
  color:var(--muted);
  max-width:375px
}
.pipeline-data {
  display:block;
  font-family:var(--mono);
  font-size:6.5px;
  letter-spacing:.7px;
  color:var(--subtle);
  margin-top:11px
}
.pipeline-data b {
  font-weight:400;
  margin:0 6px;
  color:var(--muted)
}
.pipeline-indicator {
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--subtle);
  margin-top:13px;
  opacity:.4
}
.pipeline-step.is-current .pipeline-index {
  color:var(--sensor);
  border-color:rgba(137,200,206,.4)
}
.pipeline-step.is-current .pipeline-indicator {
  background:var(--sensor);
  opacity:1;
  box-shadow:0 0 12px rgba(137,200,206,.25)
}
.pipeline-step[data-pipeline=warn].is-current .pipeline-index {
  color:var(--warning);
  border-color:rgba(230,183,93,.4)
}
.pipeline-step[data-pipeline=warn].is-current .pipeline-indicator {
  background:var(--warning)
}
.pipeline-step[data-pipeline=control].is-current .pipeline-indicator {
  background:var(--accent)
}
.threshold-strip {
  display:flex;
  align-items:center;
  gap:35px;
  margin-top:48px;
  padding:22px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.threshold-strip>div:not(.threshold-track) {
  flex-shrink:0;
  min-width:106px
}
.threshold-strip strong {
  font-family:var(--mono);
  display:block;
  font-size:15px;
  font-weight:400
}
.threshold-strip span:not(.threshold-idle):not(.threshold-warning) {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:1px;
  color:var(--subtle)
}
.threshold-track {
  flex:1;
  position:relative;
  display:flex;
  min-width:40px;
  height:18px;
  border-radius:2px;
  overflow:hidden
}
.threshold-track span {
  display:flex;
  align-items:center;
  padding-left:12px;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:1px
}
.threshold-idle {
  width:66.66%;
  background:rgba(176,170,160,.1);
  border-left:1px solid var(--muted);
  color:var(--muted)
}
.threshold-warning {
  width:33.33%;
  background:rgba(230,183,93,.1);
  border-left:1px solid var(--warning);
  color:var(--warning)
}
.threshold-track i {
  position:absolute;
  inset:0;
  width:40px;
  background:linear-gradient(90deg,transparent,rgba(240,234,223,.05),transparent);
  animation:thresholdScan 8s linear infinite
}
.threshold-marker.warning strong {
  color:var(--warning)
}
.threshold-marker.shutdown strong {
  color:var(--danger)
}
/* Bespoke hardware gallery */
.components-section {
  padding-top:76px;
  padding-bottom:80px;
  border-top:1px solid var(--line)
}
.component-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-block:1px solid var(--line);
  padding:13px 0;
  margin:38px 0 24px
}
.component-toolbar>.micro-label {
  color:var(--muted);
  font-size:8px
}
.component-count {
  padding:2px 5px;
  border:1px solid var(--line);
  border-radius:2px;
  color:var(--subtle);
  margin-left:7px;
  font-size:7px
}
.component-filters {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.component-filters button {
  font-size:10px;
  color:var(--subtle);
  padding:8px 11px;
  min-height:33px;
  border:1px solid transparent;
  border-radius:3px;
  transition:all .2s
}
.component-filters button:hover {
  color:var(--text)
}
.component-filters button.is-active {
  color:var(--text);
  background:rgba(239,224,203,.045);
  border-color:var(--line)
}
.component-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px
}
.component-card {
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:7px;
  padding:17px 19px 19px;
  background:linear-gradient(140deg,rgba(46,41,33,.5),rgba(30,28,24,.7));
  cursor:pointer;
  overflow:hidden;
  transition:transform .3s,border-color .3s,background .3s
}
.component-card:hover {
  transform:translateY(-4px);
  border-color:rgba(239,163,110,.35);
  background:linear-gradient(140deg,rgba(62,49,34,.6),rgba(35,31,26,.78))
}
.component-card:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px
}
.component-card.board-card {
  grid-column:span 2
}
.component-card.card-breadboard {
  grid-column:span 2
}
.component-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:var(--subtle);
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.8px
}
.component-card-top>span:first-child {
  display:flex;
  gap:6px;
  align-items:center
}
.component-card-top i {
  width:3px;
  height:3px;
  background:var(--accent);
  border-radius:50%;
  display:inline-block
}
.component-card-top>.quantity {
  border:1px solid var(--line);
  padding:1px 5px;
  border-radius:2px;
  font-size:7px;
  color:var(--muted)
}
.component-art {
  height:179px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  margin:7px -5px 12px;
  background:radial-gradient(ellipse at 50% 65%,rgba(178,129,64,.06),transparent 68%)
}
.component-art>svg {
  width:100%;
  height:100%;
  overflow:visible;
  filter:drop-shadow(0 8px 5px rgba(0,0,0,.15));
  transition:transform .4s
}
.component-card:hover .component-art>svg {
  transform:translateY(-3px)
}
.component-card.board-card .component-art {
  height:193px;
  background:radial-gradient(ellipse at 50% 50%,rgba(137,200,206,.065),transparent 65%)
}
.component-card.board-card .component-art>svg {
  width:96%;
  transform:none
}
.component-card h3 {
  font-size:14px;
  line-height:1.4;
  letter-spacing:-.2px;
  font-weight:500;
  margin-bottom:7px
}
.component-role {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:1px;
  color:var(--accent);
  margin-bottom:8px;
  display:block
}
.component-card p {
  font-size:10px;
  line-height:1.8;
  color:var(--muted);
  max-width:390px
}
.component-card-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:15px;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.7px;
  color:var(--subtle)
}
.component-card-foot>span:last-child {
  font-size:14px;
  color:var(--accent);
  transition:transform .3s
}
.component-card:hover .component-card-foot>span:last-child {
  transform:translate(2px,-2px)
}
.hardware-caveat {
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:22px;
  max-width:940px
}
.hardware-caveat p {
  font-size:10px;
  line-height:1.9;
  color:var(--subtle)
}
.note-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--mono);
  font-size:9px;
  width:15px;
  height:15px;
  border:1px solid var(--subtle);
  border-radius:50%;
  flex-shrink:0;
  margin-top:2px;
  color:var(--muted)
}
.hw-unit-label {
  font-size:7px;
  fill:#8c8475;
  letter-spacing:1px;
  text-anchor:middle
}
.part-label {
  font-size:7px;
  fill:#c7c3ac;
  letter-spacing:.5px
}
.part-pin-label {
  font-size:5.5px;
  fill:#aea793;
  text-anchor:middle
}
.part-terminal {
  fill:#b5aa88;
  stroke:#665c45;
  stroke-width:1
}
.part-led-dome {
  fill:var(--part-light,#f5d9a0);
  transition:fill .5s
}
.part-led-glow {
  opacity:calc(var(--power-opacity,1) * .28);
  fill:var(--part-light,#f5d9a0);
  transition:opacity .6s
}
.part-active-led {
  fill:var(--sensor-color,var(--active))
}
.pin-hit {
  fill:transparent;
  stroke:transparent;
  stroke-width:1;
  transition:fill .25s,stroke .25s
}
.pin-hit:hover {
  fill:rgba(239,163,110,.16);
  stroke:var(--accent)
}
.pin-group.is-selected .pin-hit {
  fill:rgba(239,163,110,.15);
  stroke:var(--accent)
}
.pin-group.is-selected .pin-marker {
  fill:var(--accent)
}
.pin-marker {
  fill:var(--sensor);
  opacity:.65;
  transition:fill .2s,opacity .2s
}
.pin-group[data-live=true] .pin-marker {
  opacity:1;
  fill:var(--active)
}
.pin-svg-label {
  font-family:var(--mono);
  font-size:6px;
  fill:#b9c3b5;
  pointer-events:none
}
.part-mosfet-signal {
  fill:none;
  stroke:var(--active);
  stroke-width:1.5;
  stroke-dasharray:2 5;
  animation:signalDash 5s linear infinite;
  opacity:var(--power-opacity,1)
}
.part-diode-protection {
  fill:none;
  stroke:var(--sensor);
  stroke-dasharray:4 5;
  stroke-width:1;
  opacity:.28;
  animation:signalDash 8s linear infinite
}
.button-cap {
  transform:translateY(var(--cap-shift,0px));
  transition:transform .2s;
  fill:var(--button-color,#ba8760)
}
[data-switch-on=true] {
  --cap-shift:3px;
  --button-color:var(--active)
}
.buzzer-device {
  transform-origin:50% 70%;
  transition:filter .3s
}
.buzzer-wave {
  fill:none;
  stroke:var(--warning);
  stroke-width:1.2;
  opacity:0
}
.buzzer-device[data-buzzer-active=true] {
  filter:drop-shadow(0 0 10px rgba(230,183,93,.15));
  animation:buzzerVibrate .2s linear infinite
}
.buzzer-device[data-buzzer-active=true] .buzzer-wave {
  opacity:.7;
  animation:radarBreath 1s ease-in-out infinite
}
.oled-unit {
  position:relative;
  width:100%;
  max-width:282px;
  aspect-ratio:200/150;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.18))
}
.oled-unit>svg {
  width:100%;
  height:100%
}
.oled-screen {
  position:absolute;
  left:14%;
  top:23%;
  width:72%;
  height:57%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#020505;
  box-shadow:inset 0 0 15px #010302;
  overflow:hidden
}
.oled-screen::after {
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(8,20,17,.35) 2px,rgba(8,20,17,.35) 3px);
  pointer-events:none;
  opacity:.25
}
.oled-screen pre {
  margin:0;
  white-space:pre;
  font-family:var(--mono);
  font-weight:600;
  font-size:clamp(7px,.8vw,11px);
  line-height:1.45;
  color:#c4f0d8;
  text-shadow:0 0 5px rgba(165,244,204,.3);
  letter-spacing:.3px
}
.oled-unit[data-oled-status=WARNING] .oled-screen pre {
  color:#e6f1cf
}
.oled-unit.is-refreshing .oled-screen {
  animation:oledRefresh .18s ease-out
}
.card-oled .component-art {
  height:193px;
  margin-inline:0
}
.card-oled .oled-unit {
  max-width:244px
}
.card-oled .oled-screen pre {
  font-size:8px
}
.breadboard-flow {
  stroke-dasharray:3 8;
  animation:signalDash 7s linear infinite
}
.wire-card-line {
  stroke-width:2;
  fill:none;
  stroke-dasharray:3 7;
  animation:signalDash 9s linear infinite
}
.wire-card-hit {
  stroke:transparent;
  stroke-width:14;
  fill:none;
  cursor:pointer
}
/* High-level architecture */
.architecture-section {
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:95px;
  padding-top:76px;
  padding-bottom:83px;
  border-top:1px solid var(--line);
  align-items:center
}
.architecture-copy .eyebrow {
  margin-bottom:24px
}
.architecture-copy h2 {
  margin-bottom:25px
}
.section-description {
  font-size:13px;
  color:var(--muted);
  line-height:1.9;
  max-width:350px
}
.architecture-principles {
  margin:36px 0
}
.architecture-principles>div {
  display:flex;
  gap:20px;
  margin-bottom:21px
}
.architecture-principles>div>span {
  font-family:var(--mono);
  font-size:9px;
  color:var(--accent);
  padding-top:3px
}
.architecture-principles p {
  font-size:11px;
  color:var(--subtle);
  line-height:1.8;
  max-width:300px
}
.architecture-principles strong {
  display:block;
  font-weight:500;
  color:var(--text);
  font-size:12px;
  margin-bottom:3px
}
.architecture-diagram {
  padding:28px;
  position:relative;
  background:linear-gradient(135deg,rgba(46,42,34,.6),rgba(26,27,22,.65));
  overflow:hidden
}
.arch-header {
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.8px;
  color:var(--subtle)
}
.arch-sensors,.arch-zones {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  position:relative
}
.arch-sensor {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(15,15,12,.15);
  padding:13px 7px;
  font-family:var(--mono);
  font-size:8px;
  color:var(--muted)
}
.arch-sensor i {
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--sensor-color)
}
.arch-pirs {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:10px
}
.arch-pirs>span {
  font-family:var(--mono);
  font-size:7px;
  color:var(--subtle);
  padding:3px 9px;
  border:1px solid var(--line);
  border-radius:3px
}
.arch-pirs [data-triggered=true] {
  color:var(--sensor);
  border-color:rgba(137,200,206,.4)
}
.arch-link {
  width:1px;
  height:27px;
  position:relative;
  margin:0 auto;
  background:rgba(137,200,206,.25)
}
.arch-link::after {
  content:"";
  position:absolute;
  left:-1px;
  top:0;
  width:3px;
  height:5px;
  background:var(--sensor);
  animation:archSignal 3s linear infinite
}
.arch-link::before {
  content:"";
  position:absolute;
  bottom:0;
  left:-2px;
  width:5px;
  height:5px;
  transform:rotate(45deg);
  border-right:1px solid var(--sensor);
  border-bottom:1px solid var(--sensor)
}
.arch-controller {
  border:1px solid rgba(239,163,110,.25);
  background:rgba(239,163,110,.04);
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:17px;
  padding:12px 17px;
  max-width:260px;
  margin:auto
}
.arch-controller>svg {
  height:60px;
  width:42px;
  flex-shrink:0
}
.arch-controller strong {
  font-size:14px;
  font-weight:500;
  letter-spacing:.5px;
  display:block
}
.arch-controller span {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:1px;
  color:var(--accent)
}
.arch-engine {
  display:flex;
  flex-direction:column;
  align-items:center;
  max-width:260px;
  margin:0 auto;
  border:1px solid var(--line);
  border-radius:4px;
  padding:12px
}
.arch-engine strong {
  font-family:var(--mono);
  font-size:9px;
  font-weight:400;
  letter-spacing:.7px
}
.arch-engine span {
  font-family:var(--mono);
  font-size:6px;
  color:var(--subtle);
  margin-top:5px;
  letter-spacing:.7px
}
.arch-state-label {
  text-align:center;
  font-family:var(--mono);
  font-size:8px;
  color:var(--muted);
  margin-bottom:13px
}
.arch-zones::before {
  content:"";
  position:absolute;
  left:16%;
  right:16%;
  top:-12px;
  height:1px;
  background:var(--line-bright)
}
.arch-zone {
  border:1px solid color-mix(in srgb,var(--zone-color) 18%,transparent);
  border-radius:4px;
  background:color-mix(in srgb,var(--zone-color) 3%,transparent);
  padding:13px 5px 10px;
  position:relative;
  font-family:var(--mono);
  line-height:1.8;
  transition:background .2s
}
.arch-zone:hover {
  background:rgba(255,255,255,.05)
}
.arch-zone::before {
  content:"";
  position:absolute;
  top:-12px;
  left:50%;
  height:11px;
  width:1px;
  background:var(--line-bright)
}
.arch-zone strong {
  font-size:9px;
  display:block;
  font-weight:400
}
.arch-zone .arch-zone-state {
  font-size:6px;
  color:var(--zone-color);
  letter-spacing:.8px
}
.arch-zone .arch-zone-output {
  display:block;
  border-top:1px solid var(--line);
  margin:8px 5px 0;
  padding-top:8px;
  font-size:6px;
  color:var(--subtle)
}
.arch-zone .arch-zone-output b {
  color:var(--muted);
  font-weight:400
}
.arch-feedback {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:13px;
  font-family:var(--mono);
  font-size:8px;
  color:var(--muted);
  margin-top:16px
}
.arch-feedback b {
  color:var(--subtle);
  font-weight:400
}
.arch-footer {
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:20px;
  text-align:center;
  font-family:var(--mono);
  font-size:6px;
  color:var(--subtle);
  letter-spacing:.7px
}
/* Complete circuit — SVG plus a true vertical mobile connection map */
.circuit-section {
  padding-top:70px;
  padding-bottom:72px;
  border-top:1px solid var(--line)
}
.circuit-heading-controls {
  display:flex;
  align-items:center;
  gap:30px
}
.wiring-button {
  font-size:10px;
  min-height:42px;
  padding:10px 13px;
  gap:9px
}
.wiring-symbol {
  font-size:19px;
  color:var(--accent)
}
.toggle-track {
  display:inline-block;
  width:26px;
  height:14px;
  background:#343027;
  border:1px solid var(--line);
  border-radius:20px;
  position:relative;
  margin-left:3px
}
.toggle-track i {
  position:absolute;
  width:8px;
  height:8px;
  top:2px;
  left:3px;
  background:var(--subtle);
  border-radius:50%;
  transition:transform .25s,background .25s
}
.wiring-mode .toggle-track {
  background:rgba(239,163,110,.13);
  border-color:rgba(239,163,110,.3)
}
.wiring-mode .toggle-track i {
  transform:translateX(10px);
  background:var(--accent)
}
.circuit-panel {
  padding:22px 27px 0;
  border-radius:8px;
  background:radial-gradient(ellipse at center,rgba(50,49,36,.45),rgba(25,24,20,.85));
  overflow:hidden
}
.circuit-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.circuit-topline .micro-label {
  font-size:7px;
  letter-spacing:.9px
}
.wire-legend {
  display:flex;
  justify-content:flex-end;
  gap:19px;
  margin:22px 0 0;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.7px;
  color:var(--muted)
}
.wire-legend>span {
  display:flex;
  align-items:center;
  gap:5px
}
.wire-legend i {
  width:12px;
  height:1px;
  display:inline-block
}
.legend-power {
  background:var(--warning)
}
.legend-data {
  background:var(--sensor)
}
.legend-gpio {
  background:var(--active)
}
.legend-ground {
  background:#8c8a82
}
.legend-sensor {
  background:var(--accent)
}
.circuit-desktop {
  margin-top:0
}
.circuit-desktop svg {
  width:100%;
  height:auto;
  overflow:visible
}
.circuit-mobile {
  display:none
}
.circuit-svg-bg {
  stroke:rgba(229,215,195,.035);
  stroke-width:1
}
.circuit-node-caption {
  font-family:var(--mono);
  font-size:9px;
  fill:var(--text);
  letter-spacing:1px
}
.circuit-node-subcaption {
  font-family:var(--mono);
  font-size:6.5px;
  fill:var(--subtle);
  letter-spacing:.5px
}
.circuit-section-label {
  font-size:7px;
  fill:var(--accent);
  letter-spacing:1.5px
}
.wire-group {
  --wire-color:var(--active);
  cursor:pointer
}
.wire-group[data-wire-type=sensor] {
  --wire-color:var(--accent)
}
.wire-group[data-wire-type=data] {
  --wire-color:var(--sensor)
}
.wire-group[data-wire-type=power] {
  --wire-color:var(--warning)
}
.wire-group[data-wire-type=ground] {
  --wire-color:#969187
}
.wire-hit {
  stroke:var(--wire-color);
  stroke-width:14;
  stroke-opacity:0;
  fill:none;
  transition:stroke-opacity .2s
}
.wire-base {
  stroke:var(--wire-color);
  stroke-width:1.1;
  fill:none;
  opacity:.42;
  transition:opacity .3s,stroke-width .3s
}
.wire-flow {
  stroke:var(--wire-color);
  stroke-width:1.7;
  stroke-dasharray:2 18;
  fill:none;
  opacity:.6;
  animation:signalDash 8s linear infinite;
  pointer-events:none
}
.wire-group[data-live=false] .wire-flow {
  opacity:0;
  animation-play-state:paused
}
.wire-group[data-live=false] .wire-base {
  opacity:.21
}
.wire-group:hover .wire-hit,.wire-group.is-selected .wire-hit {
  stroke-opacity:.08
}
.wire-group:hover .wire-base,.wire-group.is-selected .wire-base {
  opacity:1;
  stroke-width:2
}
.wire-group:hover .wire-label,.wire-group.is-selected .wire-label {
  fill:var(--text)
}
.wiring-mode .wire-base {
  opacity:.8;
  stroke-width:1.7
}
.wiring-mode .wire-group[data-live=false] .wire-base {
  opacity:.5
}
.wire-label {
  font-family:var(--mono);
  font-size:7px;
  fill:var(--wire-color);
  opacity:.8;
  pointer-events:none
}
.wire-dot {
  fill:var(--wire-color)
}
.circuit-footnote {
  border-top:1px solid var(--line);
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center
}
.circuit-footnote>span {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.7px;
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  white-space:nowrap
}
.circuit-footnote p {
  font-size:9px;
  color:var(--muted);
  text-align:right;
  line-height:1.8
}
.circuit-footnote p>span {
  font-size:8px;
  color:var(--subtle)
}
.circuit-safety {
  max-width:890px;
  margin-top:18px
}
.mobile-circuit-hub {
  padding:20px;
  text-align:center;
  border:1px solid rgba(239,163,110,.3);
  background:rgba(239,163,110,.04);
  border-radius:5px
}
.mobile-circuit-hub strong {
  font-size:17px;
  display:block;
  font-weight:500
}
.mobile-circuit-hub span {
  font-family:var(--mono);
  font-size:8px;
  color:var(--accent)
}
.mobile-wire {
  border:1px solid var(--line);
  background:rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  gap:10px;
  padding:13px;
  border-radius:4px
}
.mobile-wire span {
  font-size:10px;
  color:var(--muted)
}
.mobile-wire b {
  font-family:var(--mono);
  font-size:9px;
  font-weight:400;
  color:var(--sensor)
}
.mobile-wire>i {
  font-style:normal;
  font-size:17px;
  color:var(--accent)
}
.mobile-wire.is-selected {
  border-color:var(--accent)
}
.mobile-circuit-label {
  font-family:var(--mono);
  font-size:8px;
  color:var(--subtle);
  letter-spacing:1px;
  margin:14px 0 5px
}
/* Functional console */
.simulator-section {
  padding-top:78px;
  padding-bottom:82px;
  border-top:1px solid var(--line)
}
.console-grid {
  display:grid;
  grid-template-columns:1.14fr 1fr;
  gap:18px;
  margin-top:41px
}
.console-grid>section {
  padding:26px 28px;
  min-width:0;
  border-radius:8px
}
.console-grid h3.micro-label {
  font-size:9px;
  font-weight:400;
  letter-spacing:1.1px
}
.control-group {
  margin-top:28px
}
.control-group-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-bottom:10px
}
.control-group-label>span:first-child {
  font-size:11px;
  color:var(--muted)
}
.control-group-label>.micro-label {
  font-size:6px;
  letter-spacing:.6px;
  color:var(--subtle)
}
.control-row {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px
}
.control-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(14,14,12,.17);
  padding:13px 11px;
  text-align:left;
  min-height:49px;
  transition:border-color .2s,background .2s
}
.control-button>span:not(.control-icon) {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.4px
}
.control-button:hover {
  border-color:var(--line-bright);
  background:rgba(255,255,255,.03)
}
.control-button[aria-pressed=true] {
  border-color:rgba(191,223,145,.23);
  background:rgba(191,223,145,.04)
}
.control-value {
  font-family:var(--mono);
  font-size:6px;
  color:var(--subtle);
  font-weight:400
}
.control-button[aria-pressed=true] .control-value {
  color:var(--active)
}
.control-icon {
  font-size:13px;
  color:var(--sensor)
}
.pir-controls {
  grid-template-columns:1fr 1fr
}
.pir-controls .control-button {
  justify-content:flex-start;
  padding:11px 14px
}
.control-pulse {
  width:4px;
  height:4px;
  background:var(--subtle);
  border-radius:50%;
  margin-left:auto
}
.control-pulse[data-triggered=true] {
  background:var(--sensor);
  box-shadow:0 0 8px rgba(137,200,206,.4)
}
.fault-controls {
  margin-top:27px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap
}
.target-select {
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.6px;
  color:var(--subtle)
}
select {
  font-family:var(--mono);
  font-size:8px;
  color:var(--text);
  padding:8px 7px;
  border:1px solid var(--line);
  background:#24211b;
  border-radius:3px;
  min-height:35px
}
option {
  background:#24211b
}
.fault-buttons {
  display:flex;
  gap:7px;
  flex:1
}
.fault-buttons .button {
  flex:1;
  padding:8px 7px;
  font-size:8px;
  white-space:nowrap
}
.control-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:9px
}
.control-footer .text-button {
  padding-left:0;
  font-size:9px
}
.validation-note {
  font-family:var(--mono);
  font-size:6px;
  color:var(--subtle);
  display:flex;
  align-items:center;
  gap:7px
}
.validation-note i {
  height:4px;
  width:4px;
  background:var(--sensor);
  border-radius:50%
}
.live-tag {
  font-family:var(--mono);
  font-size:7px;
  color:var(--active);
  letter-spacing:1px;
  display:flex;
  align-items:center;
  gap:6px
}
.live-tag::before {
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--active)
}
.system-status {
  margin:26px 0 24px;
  padding-bottom:23px;
  border-bottom:1px solid var(--line)
}
.system-status>.micro-label {
  font-size:6.5px;
  color:var(--subtle);
  display:block
}
.system-status>strong {
  font-family:var(--mono);
  font-size:24px;
  font-weight:400;
  letter-spacing:1px;
  display:flex;
  align-items:center;
  gap:13px;
  margin-top:7px
}
.system-status .status-dot {
  width:7px;
  height:7px
}
.dashboard-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 13px;
  margin:0 0 24px
}
.dashboard-metrics>div {
  min-width:0
}
.dashboard-metrics dt {
  font-size:9px;
  line-height:1.5;
  color:var(--muted);
  margin-bottom:7px
}
.dashboard-metrics dd {
  font-size:22px;
  letter-spacing:-.5px;
  font-weight:400;
  margin:0;
  line-height:1.3
}
.dashboard-metrics dd small {
  font-size:12px;
  letter-spacing:0;
  color:var(--subtle)
}
.dashboard-metrics .buzzer-stat {
  font-family:var(--mono);
  font-size:12px;
  line-height:2.35;
  letter-spacing:.2px
}
.system-health {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 20px;
  padding-top:19px;
  border-top:1px solid var(--line)
}
.system-health>span {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.4px;
  color:var(--subtle);
  display:flex;
  align-items:center;
  gap:6px
}
.system-health i {
  width:3px;
  height:3px;
  border-radius:50%;
  background:var(--active)
}
.system-health b {
  font-weight:400;
  color:var(--active);
  margin-left:auto;
  font-size:6px
}
.health-note {
  color:var(--subtle);
  font-size:8px;
  line-height:1.7;
  margin-top:16px
}
.monitor-hardware {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  margin:18px 0 18px;
  min-height:192px
}
.monitor-oled {
  width:62%;
  max-width:280px;
  min-width:0
}
.monitor-oled .oled-screen pre {
  font-size:10.5px
}
.hardware-caption {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.8px;
  color:var(--subtle);
  display:block;
  text-align:center;
  margin-top:8px
}
.monitor-buzzer {
  width:29%;
  max-width:120px
}
.monitor-buzzer>div {
  height:140px
}
.monitor-buzzer svg {
  width:100%;
  height:100%;
  overflow:visible
}
.sound-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:16px
}
.sound-controls>.button {
  min-height:33px;
  font-size:8px;
  padding:8px 12px
}
.sound-controls .text-button {
  font-size:9px;
  min-height:33px;
  padding:5px 0
}
.sound-note {
  font-size:8px;
  color:var(--subtle);
  margin-top:9px
}
.energy-icon {
  font-size:23px;
  color:var(--accent);
  line-height:1
}
.energy-primary {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin:27px 0 21px
}
.energy-primary .micro-label {
  color:var(--subtle);
  font-size:6px;
  letter-spacing:.8px
}
.energy-primary strong {
  display:block;
  font-size:62px;
  line-height:1.2;
  font-weight:400;
  letter-spacing:-3px;
  margin-top:4px
}
.energy-primary strong small {
  font-size:20px;
  color:var(--subtle);
  letter-spacing:-.5px;
  font-weight:400
}
.power-bars {
  display:flex;
  align-items:flex-end;
  gap:10px;
  height:65px;
  flex-shrink:0;
  padding-bottom:5px
}
.power-bar-unit {
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:5px
}
.power-bar {
  height:40px;
  width:12px;
  position:relative;
  border-radius:2px;
  background:rgba(239,163,110,.07);
  overflow:hidden
}
.power-bar i {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:var(--bar-height,100%);
  background:var(--zone-color);
  opacity:.6;
  transition:height .5s
}
.power-bar-unit span {
  font-family:var(--mono);
  font-size:6px;
  color:var(--subtle)
}
.energy-secondary {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  border-block:1px solid var(--line);
  padding:17px 0
}
.energy-secondary>div>span {
  font-size:9px;
  color:var(--muted)
}
.energy-secondary strong {
  font-family:var(--mono);
  display:block;
  font-size:20px;
  line-height:1.4;
  font-weight:400;
  color:var(--active);
  letter-spacing:-.5px;
  margin-top:6px
}
.energy-secondary strong small {
  font-size:9px;
  color:var(--subtle);
  letter-spacing:0;
  font-weight:400
}
.energy-secondary>div:last-child strong {
  color:var(--text)
}
.energy-assumptions {
  padding-top:16px
}
.energy-assumptions>.micro-label {
  font-size:6px;
  color:var(--accent);
  letter-spacing:.7px
}
.energy-inputs {
  display:flex;
  gap:25px;
  margin-top:10px
}
.energy-inputs label {
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:7px;
  color:var(--muted)
}
.energy-inputs input {
  width:61px;
  font-family:var(--mono);
  font-size:10px;
  color:var(--text);
  background:rgba(0,0,0,.15);
  border:1px solid var(--line);
  border-radius:3px;
  padding:5px 7px;
  min-height:31px
}
.energy-inputs input:invalid {
  border-color:var(--danger)
}
.energy-assumptions p {
  font-size:8px;
  line-height:1.8;
  color:var(--subtle);
  margin-top:12px
}
.energy-assumptions #energy-error {
  font-size:9px
}
.event-terminal {
  grid-column:1/-1;
  padding:0!important;
  background:linear-gradient(120deg,rgba(24,25,20,.8),rgba(19,19,16,.87))
}
.event-terminal>.panel-topline {
  padding:20px 25px;
  border-bottom:1px solid var(--line)
}
.terminal-icon {
  color:var(--accent);
  font-size:13px;
  letter-spacing:1px;
  margin-right:7px
}
.event-count {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.8px;
  color:var(--subtle)
}
.event-log {
  height:232px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 25px;
  scrollbar-width:thin;
  scrollbar-color:#4c4435 transparent
}
.event-entry {
  display:grid;
  grid-template-columns:73px 86px 1fr;
  gap:17px;
  padding:7px 0;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.7;
  border-bottom:1px solid rgba(239,224,203,.025)
}
.event-entry time {
  color:var(--subtle);
  font-size:8px
}
.event-tag {
  font-size:7px;
  letter-spacing:.5px;
  color:var(--sensor)
}
.event-message {
  color:var(--muted)
}
.event-entry[data-kind=warning] .event-tag,.event-entry[data-kind=warning] .event-message {
  color:var(--warning)
}
.event-entry[data-kind=shutdown] .event-tag,.event-entry[data-kind=shutdown] .event-message {
  color:var(--danger)
}
.event-entry[data-kind=power] .event-tag {
  color:var(--active)
}
.terminal-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 25px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.6px;
  color:var(--subtle)
}
.terminal-footer>span:first-child {
  display:flex;
  align-items:center;
  gap:7px
}
.terminal-footer .status-dot {
  width:4px;
  height:4px;
  min-width:4px
}
/* Documentation and footer */
.documentation-section {
  padding-top:28px;
  padding-bottom:84px
}
.documentation-panel {
  position:relative;
  display:grid;
  grid-template-columns:1.12fr 1fr;
  align-items:center;
  gap:30px;
  border:1px solid rgba(239,163,110,.2);
  border-radius:9px;
  padding:64px 65px;
  background:radial-gradient(ellipse at 75% 80%,rgba(128,78,36,.23),transparent 58%),linear-gradient(120deg,#2c241b,#201c16);
  overflow:hidden
}
.documentation-copy {
  position:relative;
  z-index:2
}
.documentation-copy .eyebrow {
  font-size:8px;
  margin-bottom:23px
}
.documentation-copy h2 {
  font-size:clamp(38px,4.3vw,60px);
  letter-spacing:-2.3px;
  line-height:1.08
}
.documentation-copy p {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  max-width:335px;
  margin:22px 0 27px
}
.documentation-copy .button {
  font-size:10px;
  min-height:43px;
  padding:12px 19px
}
.document-path {
  display:block;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.7px;
  color:var(--subtle);
  margin-top:26px
}
.document-visual {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:320px;
  isolation:isolate
}
.document-sheet {
  width:245px;
  height:328px;
  position:relative;
  z-index:2;
  padding:25px 25px 19px;
  background:linear-gradient(120deg,#393227,#27231b);
  border:1px solid rgba(220,181,129,.28);
  border-radius:3px;
  box-shadow:7px 8px 0 -1px #2b251c,7px 8px 0 rgba(220,181,129,.16),18px 26px 38px rgba(0,0,0,.3);
  transform:rotate(-9deg) skewY(2deg);
  transition:transform .7s
}
.documentation-panel:hover .document-sheet {
  transform:rotate(-5deg) skewY(1deg) translateY(-4px)
}
.document-sheet-top {
  display:flex;
  gap:8px;
  align-items:center
}
.document-sheet-top svg {
  width:21px;
  height:21px;
  color:var(--accent)
}
.document-sheet-top>span {
  font-size:10px;
  font-weight:600;
  letter-spacing:1.2px;
  line-height:1.4
}
.document-sheet-top small {
  font-family:var(--mono);
  font-weight:400;
  font-size:4px;
  letter-spacing:1px;
  color:var(--muted)
}
.document-rule {
  display:block;
  height:1px;
  background:rgba(220,181,129,.3);
  margin-top:15px
}
.blueprint-drawing {
  color:#ccad7e;
  margin:13px 12px 9px
}
.blueprint-drawing svg {
  width:100%;
  height:130px
}
.document-sheet h3 {
  font-size:14px;
  font-weight:400;
  line-height:1.3;
  letter-spacing:-.3px
}
.document-sheet-bottom {
  margin-top:16px;
  padding-top:10px;
  border-top:1px solid rgba(220,181,129,.2);
  display:flex;
  align-items:center;
  justify-content:space-between
}
.document-sheet-bottom>span {
  font-family:var(--mono);
  font-size:4px;
  letter-spacing:.7px;
  line-height:1.7;
  color:var(--muted)
}
.document-sheet-bottom b {
  font-family:var(--mono);
  font-size:14px;
  font-weight:400;
  color:var(--accent)
}
.document-orbit {
  position:absolute;
  border:1px solid rgba(239,163,110,.09);
  border-radius:50%;
  z-index:-1;
  width:370px;
  height:370px;
  transform:rotateX(25deg) rotateZ(-28deg)
}
.orbit-two {
  width:470px;
  height:470px;
  border-style:dashed;
  opacity:.5
}
.site-footer {
  padding-bottom:23px
}
.footer-main {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:28px 0 42px;
  border-bottom:1px solid var(--line)
}
.footer-main .brand {
  font-size:15px
}
.footer-main .brand-mark {
  width:24px;
  height:24px
}
.footer-main p {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.8px;
  color:var(--subtle);
  margin-right:auto
}
.footer-main .inline-link {
  font-size:10px;
  color:var(--muted)
}
.footer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding-top:20px;
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.65px;
  color:var(--subtle)
}
.footer-bottom b {
  font-size:6px;
  font-weight:400;
  color:var(--muted);
  margin-left:6px
}
/* Technical inspection */
.technical-modal {
  background:linear-gradient(120deg,#27231d,#1b1b17);
  color:var(--text);
  padding:24px 30px 30px;
  border:1px solid var(--line-bright);
  border-radius:11px;
  width:min(1020px,calc(100% - 40px));
  max-height:90svh;
  overflow-y:auto;
  box-shadow:0 35px 130px rgba(0,0,0,.55);
  scrollbar-width:thin;
  scrollbar-color:#62533e transparent
}
.technical-modal[open] {
  animation:modalIn .25s ease-out
}
.technical-modal::backdrop {
  background:rgba(10,10,8,.7);
  backdrop-filter:blur(10px)
}
.modal-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:17px;
  border-bottom:1px solid var(--line);
  margin-bottom:27px
}
.modal-topline>.micro-label {
  font-size:7px;
  color:var(--accent)
}
.modal-close {
  font-size:26px;
  color:var(--text)
}
.modal-grid {
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:34px;
  align-items:start
}
.modal-visual {
  height:300px;
  display:flex;
  justify-content:center;
  align-items:center;
  border:1px solid var(--line);
  background:radial-gradient(ellipse,rgba(103,95,64,.1),transparent 75%);
  border-radius:6px;
  min-width:0
}
.modal-visual>svg {
  width:90%;
  height:90%;
  overflow:visible
}
.modal-visual .oled-unit {
  max-width:310px
}
.modal-visual .oled-screen pre {
  font-size:11px
}
.modal-heading .micro-label {
  font-size:8px;
  color:var(--accent);
  display:block;
  margin-bottom:8px
}
.modal-heading h2 {
  font-size:30px;
  letter-spacing:-1px;
  line-height:1.2
}
.modal-description {
  font-size:12px;
  color:var(--muted);
  line-height:1.9;
  margin-top:16px
}
.modal-specs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px 21px;
  margin:23px 0 0
}
.modal-specs>div {
  padding-top:11px;
  border-top:1px solid var(--line);
  min-width:0
}
.modal-specs dt {
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:1px;
  color:var(--subtle);
  margin-bottom:5px
}
.modal-specs dd {
  font-size:11px;
  line-height:1.7;
  margin:0;
  color:var(--text)
}
.modal-specs>div:last-child {
  grid-column:1/-1
}
.modal-note {
  grid-column:1/-1;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:10px;
  line-height:1.9;
  color:var(--subtle)
}
.pin-explorer {
  grid-column:1/-1;
  margin-top:4px
}
.pin-explorer>.panel-topline {
  margin-bottom:12px
}
.pin-explorer .micro-label {
  font-size:7px;
  color:var(--muted)
}
.pin-explorer .panel-topline>span:last-child {
  color:var(--subtle);
  font-size:6px
}
.pin-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.pin-buttons button {
  padding:8px 10px;
  min-height:33px;
  border:1px solid var(--line);
  border-radius:3px;
  font-family:var(--mono);
  font-size:8px;
  color:var(--muted);
  transition:all .2s
}
.pin-buttons button:hover {
  border-color:var(--accent)
}
.pin-buttons button.is-selected {
  color:var(--accent);
  border-color:rgba(239,163,110,.5);
  background:rgba(239,163,110,.07)
}
.pin-detail {
  display:grid;
  grid-template-columns:.7fr 1.2fr 1.7fr 1.2fr;
  gap:15px;
  padding:18px;
  border:1px solid rgba(239,163,110,.18);
  background:rgba(239,163,110,.025);
  border-radius:5px;
  margin-top:15px
}
.pin-detail dt {
  font-family:var(--mono);
  font-size:6px;
  letter-spacing:.7px;
  color:var(--subtle)
}
.pin-detail dd {
  margin:6px 0 0;
  font-size:10px;
  color:var(--text);
  line-height:1.6
}
.pin-detail dd:first-letter {
  text-transform:uppercase
}
.resistor-choice {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:15px;
  padding-top:14px;
  border-top:1px solid var(--line)
}
.resistor-choice label {
  font-family:var(--mono);
  font-size:8px;
  color:var(--muted)
}
.resistor-choice select {
  font-size:10px
}
.wire-modal-visual {
  margin:20px 0 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:5px;
  background:rgba(0,0,0,.12)
}
.wire-endpoint {
  font-family:var(--mono);
  font-size:11px;
  text-align:center;
  line-height:1.8
}
.wire-endpoint small {
  font-size:7px;
  color:var(--subtle);
  display:block;
  letter-spacing:1px
}
.wire-modal-line {
  width:150px;
  height:1px;
  background:var(--sensor);
  position:relative
}
.wire-modal-line::before {
  content:"";
  position:absolute;
  top:-1px;
  left:0;
  width:15px;
  height:3px;
  background:var(--text);
  animation:thresholdScan 3s linear infinite
}
.wire-modal .modal-specs {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.wire-modal h2 {
  font-size:34px
}
.modal-open {
  overflow:hidden
}
.toast {
  position:fixed;
  z-index:80;
  bottom:24px;
  left:50%;
  transform:translate(-50%,15px);
  background:rgba(52,43,31,.97);
  border:1px solid rgba(239,163,110,.25);
  border-radius:5px;
  box-shadow:0 10px 35px rgba(0,0,0,.25);
  color:var(--text);
  padding:12px 22px;
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s,transform .25s;
  max-width:calc(100% - 30px);
  width:max-content;
  text-align:center
}
.toast.is-visible {
  opacity:1;
  transform:translate(-50%,0)
}
.noscript-notice {
  padding:20px;
  text-align:center;
  color:var(--accent);
  border:1px solid var(--accent)
}
/* Subtle, native motion */
.js .reveal {
  opacity:0;
  transform:translateY(20px);
  transition:opacity .75s ease,transform .75s cubic-bezier(.22,.61,.36,1)
}
.js .reveal.is-visible {
  opacity:1;
  transform:translateY(0)
}
[data-tooltip] {
  position:relative
}
[data-tooltip]::after {
  position:absolute;
  bottom:calc(100% + 10px);
  left:50%;
  transform:translate(-50%,3px);
  content:attr(data-tooltip);
  width:max-content;
  max-width:240px;
  white-space:normal;
  background:#332d23;
  border:1px solid var(--line-bright);
  border-radius:4px;
  font:9px/1.6 var(--font);
  padding:7px 10px;
  color:var(--text);
  opacity:0;
  pointer-events:none;
  z-index:10;
  transition:opacity .2s,transform .2s
}
[data-tooltip]:hover::after,[data-tooltip]:focus-visible::after {
  opacity:1;
  transform:translate(-50%,0)
}
html[data-simulation=paused] .wire-flow,html[data-simulation=paused] .signal-trace,html[data-simulation=paused] .arch-link::after,html[data-simulation=paused] .threshold-track i {
  animation-play-state:paused
}
@keyframes signalDash {
  to {
    stroke-dashoffset:-160
  }
}
@keyframes radarBreath {
  0%,100% {
    opacity:.15
  }
  50% {
    opacity:.65
  }
}
@keyframes archSignal {
  0% {
    top:0;
    opacity:0
  }
  20% {
    opacity:1
  }
  80% {
    opacity:1
  }
  100% {
    top:24px;
    opacity:0
  }
}
@keyframes thresholdScan {
  from {
    left:-40px
  }
  to {
    left:100%
  }
}
@keyframes buzzerVibrate {
  0%,100% {
    transform:translateX(0)
  }
  25% {
    transform:translateX(.5px)
  }
  75% {
    transform:translateX(-.5px)
  }
}
@keyframes oledRefresh {
  0% {
    opacity:.75
  }
  100% {
    opacity:1
  }
}
@keyframes modalIn {
  from {
    opacity:0;
    transform:translateY(8px) scale(.985)
  }
  to {
    opacity:1;
    transform:translateY(0) scale(1)
  }
}
@keyframes inspectorIn {
  from {
    opacity:0;
    transform:translateY(6px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
/* Laptop */
@media(min-width:1600px) {
  .site-header {
    padding-left:max(5.2%,calc((100% - 1355px)/2));
    padding-right:max(5.2%,calc((100% - 1355px)/2))
  }
  .hero {
    min-height:820px;
    padding-top:80px
  }
  .hero-visual {
    margin-left:-10px
  }
  .classroom-stage {
    aspect-ratio:1.1
  }
  .hero h1 {
    font-size:91px
  }
}
@media(max-width:1200px) {
  .header-status {
    display:none
  }
  .main-nav {
    gap:25px
  }
  .hero {
    padding-top:57px;
    min-height:700px;
    grid-template-columns:1fr 1.08fr;
    gap:15px
  }
  .hero h1 {
    font-size:6.5vw;
    letter-spacing:-3.6px
  }
  .hero-description {
    font-size:12px;
    max-width:330px
  }
  .hero-tags {
    font-size:6px;
    letter-spacing:.5px
  }
  .hero-visual {
    margin-right:-8px;
    margin-left:-15px
  }
  .scene-heading {
    font-size:7px
  }
  .scene-heading>span:last-child {
    font-size:6px
  }
  .scene-load {
    min-width:142px;
    padding:11px 13px;
    top:3%
  }
  .scene-load strong {
    font-size:29px
  }
  .scene-load-note {
    font-size:7px
  }
  .scene-bottom {
    font-size:5.5px;
    letter-spacing:.4px
  }
  .hero-actions .button {
    font-size:10px;
    padding:11px 14px
  }
  .intelligence-layout {
    gap:40px
  }
  .architecture-section {
    gap:52px
  }
  .component-card {
    padding:15px
  }
  .component-art {
    height:162px
  }
  .component-card.board-card .component-art,.card-oled .component-art {
    height:177px
  }
  .component-card h3 {
    font-size:12px
  }
  .console-grid>section {
    padding:24px
  }
  .control-button {
    padding:11px 8px
  }
  .control-button>span:not(.control-icon) {
    font-size:6.5px
  }
  .fault-controls {
    gap:10px
  }
  .fault-buttons .button {
    font-size:7px;
    padding:8px 5px
  }
  .monitor-hardware {
    gap:20px;
    min-height:179px
  }
  .monitor-oled .oled-screen pre {
    font-size:9px
  }
  .documentation-panel {
    padding:52px
  }
  .zone-loads {
    gap:12px
  }
  .zone-loads .zone-idle-label {
    font-size:8px
  }
  .zone-card {
    padding:19px
  }
  .transport-controls .text-button {
    font-size:10px;
    padding:7px
  }
  .clock-label {
    font-size:7px
  }
}
/* Tablet */
@media(max-width:960px) {
  .site-header {
    height:76px;
    gap:20px
  }
  .brand {
    font-size:16px
  }
  .main-nav {
    gap:18px
  }
  .main-nav a {
    font-size:10px
  }
  .header-cta {
    font-size:10px;
    padding:9px 12px
  }
  .header-actions {
    gap:14px
  }
  .hero {
    padding-top:51px;
    min-height:660px;
    gap:5px;
    grid-template-columns:1fr 1.05fr
  }
  .hero-eyebrow {
    font-size:7px;
    letter-spacing:1px;
    margin-bottom:25px
  }
  .hero h1 {
    font-size:6.8vw;
    letter-spacing:-3px
  }
  .hero-description {
    font-size:11px;
    max-width:300px;
    margin-top:24px
  }
  .hero-actions {
    gap:9px
  }
  .hero-actions .button {
    font-size:9px;
    min-height:43px;
    padding:10px 11px;
    gap:9px
  }
  .hero-tags {
    font-size:5px;
    letter-spacing:.3px;
    margin-top:24px
  }
  .hero-copy {
    padding-bottom:40px
  }
  .hero-visual {
    margin-left:-13px;
    padding-bottom:40px
  }
  .classroom-stage {
    aspect-ratio:1.01
  }
  .classroom-illustration {
    inset:0 -10%
  }
  .scene-heading>span:last-child {
    display:none
  }
  .scene-load {
    top:0;
    right:-1%;
    min-width:125px;
    padding:10px 12px
  }
  .scene-load>.micro-label {
    font-size:5px
  }
  .scene-load strong {
    font-size:26px
  }
  .scene-load-note {
    font-size:6px
  }
  .scene-hint {
    font-size:7px;
    left:3%;
    bottom:4%
  }
  .hint-line {
    width:20px
  }
  .scene-bottom>span:first-child>.muted {
    display:none
  }
  .scene-coordinate {
    right:0;
    bottom:14%
  }
  .zone-inspector {
    width:230px;
    right:0;
    bottom:12%;
    padding:13px
  }
  .hero-bottom {
    font-size:6.5px
  }
  .zone-section {
    padding-top:48px;
    padding-bottom:52px
  }
  .section-heading {
    gap:22px;
    margin-bottom:27px
  }
  .section-heading .eyebrow {
    font-size:8px;
    letter-spacing:1px
  }
  .section-heading>p {
    font-size:10px
  }
  h2 {
    font-size:36px;
    letter-spacing:-1.5px
  }
  .zone-cards {
    gap:11px
  }
  .zone-card {
    padding:15px
  }
  .zone-select {
    font-size:10px;
    gap:7px
  }
  .zone-state-pill {
    font-size:6px;
    padding:3px 5px
  }
  .zone-card-body {
    gap:9px;
    margin:18px 0 13px
  }
  .zone-occupancy strong {
    font-size:15px
  }
  .zone-occupancy>span {
    font-size:8px
  }
  .zone-timer {
    width:61px;
    height:61px
  }
  .zone-timer-center strong {
    font-size:11px
  }
  .zone-timer-center span {
    font-size:5px
  }
  .zone-sensor-line {
    font-size:6px
  }
  .zone-loads {
    gap:10px;
    font-size:6px
  }
  .zone-loads b {
    font-size:6px
  }
  .zone-loads .zone-idle-label {
    display:none
  }
  .simulation-toolbar {
    padding:9px 12px;
    gap:10px;
    flex-wrap:wrap
  }
  .clock-label {
    font-size:6px;
    gap:5px
  }
  .clock-label strong {
    font-size:9px
  }
  .speed-control>.micro-label {
    font-size:6px;
    margin-right:5px
  }
  .speed-control button {
    width:27px;
    font-size:9px
  }
  .transport-controls .text-button {
    font-size:9px;
    gap:6px
  }
  .intelligence-section {
    padding-block:55px
  }
  .intelligence-layout {
    gap:30px
  }
  .radar-showcase {
    padding:22px
  }
  .radar-showcase .panel-topline .micro-label {
    font-size:7px
  }
  .data-chip {
    font-size:6px
  }
  .radar-demonstration {
    height:220px
  }
  .radar-copy h3 {
    font-size:18px
  }
  .radar-copy>p {
    font-size:10px
  }
  .radar-sequence {
    font-size:6px
  }
  .pir-note {
    gap:10px
  }
  .pir-note>div {
    width:50px
  }
  .pir-note p {
    font-size:9px
  }
  .pipeline-step {
    gap:18px;
    padding-bottom:25px
  }
  .pipeline-step h3 {
    font-size:17px
  }
  .pipeline-step p {
    font-size:10px
  }
  .pipeline-data {
    font-size:5px
  }
  .pipeline-indicator {
    display:none
  }
  .threshold-strip {
    gap:24px
  }
  .threshold-strip>div:not(.threshold-track) {
    min-width:80px
  }
  .threshold-strip span:not(.threshold-idle):not(.threshold-warning) {
    font-size:6px
  }
  .components-section {
    padding-block:56px
  }
  .component-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px
  }
  .component-card.board-card {
    grid-column:span 1
  }
  .component-art,.component-card.board-card .component-art,.card-oled .component-art {
    height:165px
  }
  .component-card.board-card .component-art>svg .board-annotation {
    display:none
  }
  .component-card.board-card .component-art>svg {
    max-width:100%
  }
  .component-card.card-breadboard {
    grid-column:span 1
  }
  .component-filters {
    gap:3px
  }
  .component-filters button {
    font-size:8px;
    padding:7px
  }
  .architecture-section {
    gap:37px;
    grid-template-columns:.9fr 1.1fr;
    padding-block:58px
  }
  .architecture-diagram {
    padding:20px
  }
  .arch-sensor {
    font-size:6px;
    padding:10px 3px;
    gap:5px
  }
  .arch-sensors,.arch-zones {
    gap:8px
  }
  .arch-zone strong {
    font-size:7px
  }
  .arch-zone .arch-zone-state {
    font-size:5px
  }
  .arch-zone .arch-zone-output {
    font-size:5px;
    margin-inline:2px
  }
  .architecture-principles {
    margin:25px 0
  }
  .architecture-principles p {
    font-size:10px
  }
  .section-description {
    font-size:11px
  }
  .architecture-principles strong {
    font-size:11px
  }
  .architecture-principles>div {
    gap:14px
  }
  .circuit-section {
    padding-block:52px
  }
  .circuit-heading-controls {
    gap:20px
  }
  .circuit-heading-controls>p {
    font-size:10px
  }
  .circuit-panel {
    padding:20px 20px 0
  }
  .circuit-footnote p {
    font-size:8px
  }
  .circuit-footnote p>span {
    font-size:7px
  }
  .simulator-section {
    padding-block:60px
  }
  .console-grid {
    gap:14px;
    grid-template-columns:1.15fr 1fr
  }
  .console-grid>section {
    padding:21px
  }
  .console-grid h3.micro-label {
    font-size:7px
  }
  .control-row {
    gap:6px
  }
  .control-button {
    flex-wrap:wrap;
    gap:3px;
    padding:10px 8px
  }
  .control-button>span:not(.control-icon) {
    font-size:6px;
    letter-spacing:.2px
  }
  .control-group-label>.micro-label {
    font-size:5px
  }
  .control-group-label>span:first-child {
    font-size:9px
  }
  .control-group {
    margin-top:22px
  }
  .control-group-label {
    gap:7px
  }
  .fault-controls {
    gap:9px
  }
  .fault-buttons {
    flex-basis:100%
  }
  .control-footer .text-button {
    font-size:8px
  }
  .validation-note {
    font-size:5px
  }
  .dashboard-metrics {
    gap:22px 10px
  }
  .dashboard-metrics dt {
    font-size:8px
  }
  .dashboard-metrics dd {
    font-size:20px
  }
  .system-health {
    gap:9px
  }
  .system-health>span {
    font-size:5px
  }
  .system-health b {
    font-size:5px
  }
  .monitor-hardware {
    gap:12px;
    min-height:148px
  }
  .monitor-oled {
    width:67%
  }
  .monitor-buzzer {
    width:26%
  }
  .monitor-buzzer>div {
    height:105px
  }
  .monitor-oled .oled-screen pre {
    font-size:7px;
    letter-spacing:.1px
  }
  .hardware-caption {
    font-size:5px;
    letter-spacing:.3px
  }
  .energy-primary {
    margin-top:21px
  }
  .energy-primary strong {
    font-size:51px
  }
  .power-bars {
    gap:8px
  }
  .energy-secondary strong {
    font-size:17px
  }
  .energy-inputs {
    gap:20px
  }
  .energy-inputs input {
    width:50px
  }
  .sound-controls {
    gap:10px
  }
  .sound-controls .button {
    font-size:7px;
    padding:6px 9px
  }
  .sound-controls .text-button {
    font-size:8px
  }
  .documentation-panel {
    padding:42px
  }
  .documentation-copy h2 {
    font-size:42px
  }
  .documentation-copy .eyebrow {
    font-size:6px
  }
  .documentation-copy p {
    font-size:11px
  }
  .document-sheet {
    transform:rotate(-7deg) scale(.87)
  }
  .document-visual {
    height:290px
  }
  .document-orbit {
    width:300px;
    height:300px
  }
  .orbit-two {
    width:370px;
    height:370px
  }
  .documentation-section {
    padding-bottom:60px
  }
  .footer-main {
    gap:22px
  }
  .footer-main p {
    font-size:6px
  }
  .footer-bottom {
    font-size:5px
  }
  .technical-modal {
    padding:22px;
    width:calc(100% - 32px)
  }
  .modal-grid {
    gap:25px
  }
  .modal-visual {
    height:250px
  }
  .modal-heading h2 {
    font-size:25px
  }
  .modal-description {
    font-size:11px
  }
  .modal-specs dd {
    font-size:10px
  }
}
/* Mobile: diagrams become vertical, the classroom remains a scalable cutaway. */
@media(max-width:700px) {
  html {
    scroll-padding-top:25px
  }
  .section-shell {
    padding-inline:6%
  }
  .site-header {
    height:72px;
    padding:0 6%;
    gap:10px
  }
  .brand {
    font-size:15px;
    gap:8px
  }
  .brand-mark {
    width:24px;
    height:24px
  }
  .header-cta {
    font-size:9px;
    padding:8px 10px;
    min-height:36px;
    display:flex;
    align-items:center
  }
  .header-cta>span {
    margin-left:8px
  }
  .header-actions {
    gap:10px
  }
  .menu-toggle {
    display:inline-flex;
    width:27px
  }
  .main-nav {
    display:none;
    position:absolute;
    top:71px;
    left:0;
    right:0;
    background:#211e18;
    border-bottom:1px solid var(--line);
    padding:22px 6%;
    z-index:50;
    gap:0;
    box-shadow:0 14px 30px rgba(0,0,0,.25)
  }
  .main-nav.is-open {
    display:flex;
    flex-direction:column;
    align-items:stretch
  }
  .main-nav a {
    padding:13px 8px;
    font-size:13px;
    min-height:44px
  }
  .main-nav a::after {
    display:none
  }
  .hero {
    display:flex;
    flex-direction:column;
    padding-top:41px;
    min-height:auto
  }
  .hero-copy {
    padding-bottom:0
  }
  .hero-eyebrow {
    font-size:7px;
    letter-spacing:1.5px;
    margin-bottom:22px
  }
  .hero h1 {
    font-size:clamp(49px,10.8vw,75px);
    letter-spacing:-2.8px;
    line-height:1.02
  }
  .hero h1>span {
    color:#aaa18e
  }
  .hero-description {
    font-size:12px;
    max-width:340px;
    margin-top:24px
  }
  .hero-actions {
    margin-top:25px;
    gap:9px
  }
  .hero-actions .button {
    min-height:45px;
    font-size:9px;
    padding:12px 15px
  }
  .hero-tags {
    font-size:5.5px;
    letter-spacing:.3px;
    margin-top:25px;
    white-space:normal;
    line-height:1.8
  }
  .hero-tags b {
    margin:0 4px
  }
  .hero-visual {
    width:100%;
    padding-bottom:24px;
    margin:39px 0 0
  }
  .scene-heading {
    font-size:7px;
    padding:0
  }
  .scene-heading>span:last-child {
    display:inline;
    font-size:5px
  }
  .classroom-stage {
    aspect-ratio:1.12;
    margin-top:13px
  }
  .classroom-illustration {
    inset:-5% -6% -1%
  }
  .scene-load {
    right:0;
    top:1%;
    min-width:127px;
    padding:10px 12px
  }
  .scene-load>.micro-label {
    font-size:5px
  }
  .scene-load strong {
    font-size:26px
  }
  .scene-load-note {
    font-size:6px
  }
  .scene-hint {
    font-size:7px;
    bottom:1%;
    left:0
  }
  .scene-bottom {
    margin:17px 0 0;
    padding-top:13px;
    font-size:5.5px
  }
  .scene-bottom>span:first-child>.muted {
    display:inline;
    font-size:4.5px
  }
  .scene-coordinate {
    bottom:10%;
    right:0
  }
  .scene-coordinate span {
    font-size:19px
  }
  .zone-inspector {
    bottom:6%;
    right:0;
    width:225px
  }
  .hero-bottom {
    min-height:54px;
    font-size:5px;
    gap:12px
  }
  .hero-bottom a {
    gap:12px
  }
  .hero-bottom>span {
    max-width:185px;
    line-height:1.8
  }
  .hero-bottom .scroll-arrow {
    font-size:18px
  }
  .zone-section {
    padding-top:47px;
    padding-bottom:45px
  }
  .section-heading {
    display:block;
    margin-bottom:25px
  }
  .section-heading .eyebrow {
    font-size:7px;
    letter-spacing:1px;
    margin-bottom:15px
  }
  .section-number {
    margin-right:10px
  }
  h2 {
    font-size:32px;
    letter-spacing:-1.3px;
    line-height:1.17
  }
  .section-heading>p {
    margin-top:15px;
    font-size:11px
  }
  .section-heading>p br {
    display:none
  }
  .zone-cards {
    grid-template-columns:1fr;
    gap:11px
  }
  .zone-card {
    padding:17px 20px
  }
  .zone-card-header {
    gap:20px
  }
  .zone-select {
    font-size:12px;
    min-height:33px
  }
  .zone-state-pill {
    font-size:7px;
    padding:4px 7px
  }
  .zone-card-body {
    margin:15px 0 12px;
    justify-content:flex-start;
    gap:25px
  }
  .zone-timer {
    width:65px;
    height:65px;
    margin-left:auto;
    margin-right:9px
  }
  .zone-timer-center strong {
    font-size:12px
  }
  .zone-occupancy strong {
    font-size:21px
  }
  .zone-occupancy>span {
    font-size:10px
  }
  .zone-sensor-line {
    font-size:8px;
    margin-top:9px
  }
  .zone-loads {
    font-size:7px;
    gap:23px;
    padding-top:12px
  }
  .zone-loads b {
    font-size:8px
  }
  .zone-loads .zone-idle-label {
    display:inline;
    font-size:9px
  }
  .simulation-toolbar {
    justify-content:space-between;
    gap:9px;
    padding:12px 13px
  }
  .clock-label {
    font-size:6px
  }
  .clock-label strong {
    font-size:10px
  }
  .speed-control>.micro-label {
    display:none
  }
  .speed-control button {
    width:28px;
    min-height:34px
  }
  .transport-controls {
    width:100%;
    justify-content:space-between;
    padding-top:6px;
    border-top:1px solid var(--line)
  }
  .transport-controls .text-button {
    font-size:10px;
    min-height:40px
  }
  .simulation-note {
    font-size:8px;
    max-width:320px;
    margin:12px auto 0
  }
  .intelligence-section {
    padding-block:45px
  }
  .intelligence-layout {
    grid-template-columns:1fr;
    gap:37px;
    margin-top:28px
  }
  .radar-showcase {
    padding:21px
  }
  .radar-demonstration {
    height:235px
  }
  .radar-showcase .panel-topline .micro-label {
    font-size:8px
  }
  .radar-sequence {
    font-size:7px;
    gap:5px
  }
  .radar-copy h3 {
    font-size:21px
  }
  .radar-copy>p {
    font-size:11px
  }
  .pir-note {
    gap:15px
  }
  .pir-note>div {
    width:60px
  }
  .pir-note p {
    font-size:10px
  }
  .pipeline-step {
    gap:24px;
    padding-bottom:31px
  }
  .pipeline-step h3 {
    font-size:21px;
    margin:4px 0 10px
  }
  .pipeline-step p {
    font-size:11px;
    max-width:none
  }
  .pipeline-data {
    font-size:6px;
    margin-top:12px
  }
  .pipeline-step .micro-label {
    font-size:8px
  }
  .pipeline-indicator {
    display:block
  }
  .threshold-strip {
    gap:13px;
    flex-wrap:wrap;
    margin-top:34px;
    padding:20px 0;
    justify-content:space-between
  }
  .threshold-strip>div:not(.threshold-track) {
    min-width:0
  }
  .threshold-strip strong {
    font-size:12px
  }
  .threshold-strip span:not(.threshold-idle):not(.threshold-warning) {
    font-size:5px;
    letter-spacing:.6px
  }
  .threshold-track {
    order:4;
    flex-basis:100%;
    height:14px;
    margin-top:6px
  }
  .threshold-track span {
    font-size:5px
  }
  .components-section {
    padding-block:45px
  }
  .component-toolbar {
    display:block;
    margin:28px 0 18px;
    padding:15px 0
  }
  .component-filters {
    margin-top:11px;
    gap:4px
  }
  .component-filters button {
    font-size:8px;
    padding:8px;
    min-height:35px
  }
  .component-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px
  }
  .component-card {
    padding:13px 14px 15px;
    border-radius:5px
  }
  .component-card.board-card {
    grid-column:span 2
  }
  .component-card.card-breadboard {
    grid-column:span 2
  }
  .component-art {
    height:132px;
    margin:5px -5px 9px
  }
  .component-card.board-card .component-art {
    height:224px
  }
  .component-card.board-card .component-art>svg .board-annotation {
    display:block
  }
  .component-card.card-breadboard .component-art {
    height:169px
  }
  .component-card h3 {
    font-size:12px;
    line-height:1.45
  }
  .component-role {
    font-size:6px;
    letter-spacing:.7px;
    margin-bottom:7px
  }
  .component-card p {
    font-size:9px;
    line-height:1.75
  }
  .component-card-top {
    font-size:6px;
    letter-spacing:.3px
  }
  .component-card-foot {
    padding-top:13px;
    font-size:5px;
    letter-spacing:.2px
  }
  .card-oled .component-art {
    height:132px
  }
  .card-oled .oled-screen pre {
    font-size:5.5px;
    letter-spacing:0
  }
  .hardware-caveat p {
    font-size:9px
  }
  .hardware-caveat {
    margin-top:20px
  }
  .architecture-section {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:34px;
    padding-block:47px
  }
  .architecture-copy .eyebrow {
    font-size:7px;
    margin-bottom:17px
  }
  .architecture-copy h2 {
    margin-bottom:21px
  }
  .section-description {
    font-size:12px;
    max-width:350px
  }
  .architecture-principles {
    margin:25px 0 24px
  }
  .architecture-principles strong {
    font-size:12px
  }
  .architecture-principles p {
    font-size:11px;
    max-width:100%
  }
  .architecture-principles>div {
    gap:19px
  }
  .architecture-diagram {
    padding:23px
  }
  .arch-header {
    font-size:6px
  }
  .arch-sensors {
    grid-template-columns:1fr;
    gap:8px;
    max-width:260px;
    margin:auto
  }
  .arch-sensor {
    font-size:8px;
    padding:12px
  }
  .arch-pirs {
    margin-top:12px
  }
  .arch-controller,.arch-engine {
    max-width:260px
  }
  .arch-zones {
    grid-template-columns:1fr;
    gap:24px;
    max-width:260px;
    margin:0 auto
  }
  .arch-zones::before {
    display:none
  }
  .arch-zone {
    padding:12px
  }
  .arch-zone strong {
    font-size:10px
  }
  .arch-zone .arch-zone-state {
    font-size:7px
  }
  .arch-zone .arch-zone-output {
    font-size:7px;
    margin-top:7px;
    padding-top:7px
  }
  .arch-zone::before {
    height:24px;
    top:-25px;
    background:rgba(137,200,206,.25)
  }
  .arch-zone:first-child::before {
    height:13px;
    top:-14px
  }
  .arch-feedback {
    font-size:9px;
    margin-top:21px
  }
  .arch-footer {
    font-size:6px
  }
  .circuit-section {
    padding-block:43px
  }
  .circuit-heading-controls {
    justify-content:space-between;
    gap:15px;
    margin-top:21px
  }
  .circuit-heading-controls>p {
    font-size:10px
  }
  .wiring-button {
    font-size:9px;
    padding:10px 11px;
    min-height:42px
  }
  .circuit-panel {
    padding:18px 18px 0
  }
  .circuit-topline .micro-label {
    font-size:5px;
    letter-spacing:.5px
  }
  .circuit-topline>span:last-child {
    display:none
  }
  .wire-legend {
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:12px 15px;
    margin-top:17px;
    font-size:5px
  }
  .circuit-desktop {
    display:none
  }
  .circuit-mobile {
    display:grid;
    gap:8px;
    margin:15px 0 24px
  }
  .circuit-footnote {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    padding-block:15px
  }
  .circuit-footnote>span {
    font-size:6px
  }
  .circuit-footnote p {
    text-align:left;
    font-size:8px
  }
  .circuit-footnote p>span {
    font-size:7px
  }
  .circuit-safety {
    font-size:9px!important
  }
  .simulator-section {
    padding-block:47px
  }
  .console-grid {
    grid-template-columns:1fr;
    gap:14px;
    margin-top:29px
  }
  .console-grid>section {
    padding:22px
  }
  .console-grid h3.micro-label {
    font-size:8px
  }
  .control-group {
    margin-top:24px
  }
  .control-group-label>span:first-child {
    font-size:10px
  }
  .control-group-label>.micro-label {
    font-size:5px;
    letter-spacing:.4px
  }
  .control-row {
    gap:7px
  }
  .control-button {
    padding:12px 9px;
    min-height:51px
  }
  .control-button>span:not(.control-icon) {
    font-size:6.5px
  }
  .control-value {
    font-size:6px
  }
  .pir-controls .control-button {
    min-height:46px;
    padding:11px 13px
  }
  .control-footer .text-button {
    font-size:9px
  }
  .validation-note {
    font-size:6px
  }
  .fault-controls {
    gap:12px
  }
  .fault-buttons .button {
    font-size:8px;
    min-height:41px;
    padding:9px 7px
  }
  .target-select {
    font-size:7px
  }
  .target-select select {
    font-size:9px;
    min-height:36px
  }
  .system-dashboard {
    order:1
  }
  .demo-controls {
    order:2
  }
  .hardware-monitor {
    order:3
  }
  .energy-panel {
    order:4
  }
  .event-terminal {
    order:5;
    grid-column:1
  }
  .system-status {
    margin:22px 0;
    padding-bottom:20px
  }
  .system-status>.micro-label {
    font-size:7px
  }
  .system-status strong {
    font-size:25px
  }
  .dashboard-metrics {
    gap:23px 16px;
    margin-bottom:23px
  }
  .dashboard-metrics dt {
    font-size:10px
  }
  .dashboard-metrics dd {
    font-size:24px
  }
  .dashboard-metrics .buzzer-stat {
    font-size:12px
  }
  .system-health>span {
    font-size:7px
  }
  .system-health b {
    font-size:6px
  }
  .system-health {
    gap:12px 22px
  }
  .health-note {
    font-size:8px
  }
  .monitor-hardware {
    min-height:190px;
    gap:22px;
    margin:13px 0 20px
  }
  .monitor-oled {
    width:64%;
    max-width:280px
  }
  .monitor-buzzer {
    width:29%
  }
  .monitor-buzzer>div {
    height:120px
  }
  .monitor-oled .oled-screen pre {
    font-size:8px;
    letter-spacing:.1px
  }
  .hardware-caption {
    font-size:5.5px
  }
  .sound-controls .button {
    font-size:9px;
    padding:8px 12px;
    min-height:38px
  }
  .sound-controls .text-button {
    font-size:10px
  }
  .sound-note {
    font-size:8px;
    margin-top:12px
  }
  .energy-primary {
    margin:27px 0 23px
  }
  .energy-primary .micro-label {
    font-size:7px
  }
  .energy-primary strong {
    font-size:67px
  }
  .energy-primary strong small {
    font-size:20px
  }
  .power-bars {
    gap:10px
  }
  .energy-secondary>div>span {
    font-size:10px
  }
  .energy-secondary strong {
    font-size:22px
  }
  .energy-assumptions>.micro-label {
    font-size:7px
  }
  .energy-inputs {
    gap:26px;
    margin-top:14px
  }
  .energy-inputs label {
    font-size:9px;
    gap:9px
  }
  .energy-inputs input {
    font-size:11px;
    width:61px;
    min-height:37px
  }
  .energy-assumptions p {
    font-size:9px;
    margin-top:15px
  }
  .event-terminal>.panel-topline {
    padding:18px 20px
  }
  .event-log {
    padding:10px 20px;
    height:250px
  }
  .event-entry {
    grid-template-columns:54px 1fr;
    gap:5px 12px;
    font-size:8px;
    padding:9px 0
  }
  .event-entry time {
    font-size:7px;
    grid-column:1;
    grid-row:1
  }
  .event-tag {
    font-size:6px;
    grid-column:2;
    grid-row:1
  }
  .event-message {
    grid-column:2;
    grid-row:2;
    font-size:8px;
    line-height:1.7
  }
  .terminal-footer {
    padding:13px 20px;
    font-size:5px;
    gap:10px
  }
  .documentation-section {
    padding-top:16px;
    padding-bottom:46px
  }
  .documentation-panel {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:31px 27px 22px;
    gap:22px;
    border-radius:7px
  }
  .documentation-copy .eyebrow {
    font-size:6px;
    letter-spacing:.7px;
    margin-bottom:22px
  }
  .documentation-copy h2 {
    font-size:41px;
    letter-spacing:-1.6px
  }
  .documentation-copy p {
    font-size:11px;
    max-width:300px;
    margin:21px 0 24px
  }
  .documentation-copy .button {
    font-size:10px;
    min-height:44px;
    padding:12px 18px
  }
  .document-path {
    font-size:5px;
    margin-top:19px
  }
  .document-visual {
    height:291px;
    margin-top:2px
  }
  .document-sheet {
    transform:rotate(-8deg) scale(.82)
  }
  .documentation-panel:hover .document-sheet {
    transform:rotate(-5deg) scale(.82)
  }
  .document-orbit {
    width:290px;
    height:290px
  }
  .orbit-two {
    width:360px;
    height:360px
  }
  .footer-main {
    flex-wrap:wrap;
    gap:16px 20px;
    padding:20px 0 27px
  }
  .footer-main .brand {
    font-size:14px;
    gap:8px
  }
  .footer-main p {
    order:3;
    width:100%;
    font-size:6px;
    letter-spacing:.7px;
    margin:0
  }
  .footer-main .inline-link {
    margin-left:auto;
    font-size:9px;
    gap:12px
  }
  .footer-bottom {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    padding-top:17px;
    font-size:5px;
    letter-spacing:.3px
  }
  .footer-bottom>span:nth-child(2) {
    order:3;
    width:100%;
    font-size:6px
  }
  .footer-bottom>span:last-child {
    margin-left:auto
  }
  .footer-bottom b {
    font-size:6px
  }
  .site-footer {
    padding-bottom:25px
  }
  .technical-modal {
    width:calc(100% - 24px);
    max-height:92svh;
    padding:17px 20px 22px;
    border-radius:8px
  }
  .modal-topline {
    margin-bottom:21px;
    padding-bottom:11px
  }
  .modal-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .modal-heading {
    grid-row:1
  }
  .modal-heading h2 {
    font-size:28px
  }
  .modal-description {
    font-size:11px;
    margin-top:13px
  }
  .modal-visual {
    height:238px;
    grid-row:2
  }
  .modal-specs {
    margin-top:20px;
    gap:16px
  }
  .modal-specs dt {
    font-size:7px
  }
  .modal-specs dd {
    font-size:10px
  }
  .modal-note {
    font-size:9px
  }
  .pin-detail {
    grid-template-columns:1fr 1fr;
    padding:15px;
    gap:15px;
    margin-bottom:0
  }
  .pin-detail dd {
    font-size:10px
  }
  .pin-explorer .panel-topline {
    align-items:flex-start;
    gap:10px
  }
  .pin-explorer .panel-topline>span:last-child {
    max-width:125px;
    text-align:right;
    font-size:5px
  }
  .pin-buttons button {
    min-height:36px;
    padding:9px 10px;
    font-size:8px
  }
  .wire-modal h2 {
    font-size:28px
  }
  .wire-modal-visual {
    flex-direction:column;
    gap:24px;
    padding:22px 12px
  }
  .wire-modal-line {
    width:1px;
    height:40px
  }
  .wire-modal-line::before {
    width:3px;
    height:10px;
    left:-1px;
    animation:archSignal 3s linear infinite
  }
  .wire-endpoint {
    font-size:11px
  }
  .wire-modal .modal-specs {
    grid-template-columns:1fr 1fr
  }
  .toast {
    font-size:10px;
    padding:12px 16px;
    bottom:18px
  }
  .js .reveal {
    transform:translateY(12px)
  }
}
@media(max-width:380px) {
  .header-cta {
    font-size:8px;
    padding:8px
  }
  .brand {
    font-size:13px;
    letter-spacing:1.5px
  }
  .header-actions {
    gap:6px
  }
  .hero h1 {
    font-size:11vw;
    letter-spacing:-2.4px
  }
  .hero-tags {
    font-size:5px
  }
  .hero-actions .button {
    padding:11px 12px;
    font-size:8px;
    gap:8px
  }
  .scene-bottom>span:first-child>.muted {
    display:none
  }
  .scene-load {
    min-width:115px;
    padding:9px 11px
  }
  .scene-load strong {
    font-size:24px
  }
  .scene-hint {
    font-size:6px
  }
  .component-card {
    padding:12px
  }
  .component-art {
    height:118px
  }
  .card-oled .component-art {
    height:118px
  }
  .card-oled .oled-screen pre {
    font-size:5px
  }
  .component-card h3 {
    font-size:11px
  }
  .component-card p {
    font-size:8px
  }
  .component-filters {
    gap:2px
  }
  .component-filters button {
    font-size:7px;
    padding:7px
  }
  .component-card-top {
    font-size:5px
  }
  .console-grid>section {
    padding:19px
  }
  .control-group-label>.micro-label {
    font-size:4.5px
  }
  .control-row {
    gap:5px
  }
  .control-button>span:not(.control-icon) {
    font-size:5.5px
  }
  .control-button {
    padding:11px 7px
  }
  .fault-buttons .button {
    font-size:7px
  }
  .monitor-oled .oled-screen pre {
    font-size:7px
  }
  .monitor-hardware {
    min-height:164px
  }
  .hardware-caption {
    font-size:4.5px
  }
  .documentation-panel {
    padding:27px 22px
  }
  .documentation-copy h2 {
    font-size:37px
  }
  .documentation-copy .eyebrow {
    font-size:5.5px
  }
  .event-terminal>.panel-topline {
    padding:17px
  }
  .event-count {
    font-size:5px
  }
  .energy-inputs {
    gap:17px
  }
  .energy-inputs label {
    font-size:8px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  .js .reveal {
    opacity:1;
    transform:none
  }
  .classroom-stage .classroom-illustration {
    transform:none!important
  }
  .component-card:hover {
    transform:none
  }
  .button:hover {
    transform:none
  }
  .oled-unit.is-refreshing .oled-screen {
    opacity:1
  }
}
/* Fine details on custom hardware and native controls. */
.click-mark svg {
  width:19px;
  height:19px
}
.wiring-symbol svg {
  width:19px;
  height:19px
}
.energy-icon svg {
  width:19px;
  height:24px
}
.sound-button-icon {
  width:15px;
  height:15px
}
.room-person {
  transition:opacity .45s
}
.wire-modal .micro-label {
  display:block;
  margin-bottom:10px
}
.pin-group:focus-visible .pin-hit {
  stroke:var(--accent);
  fill:rgba(239,163,110,.12)
}
html[data-simulation=paused] .clock-label>.status-dot {
  background:var(--muted)
}
/* Readable control labels and a deliberate, fully occupied hardware mosaic. */
.card-switch,.card-wires,.card-battery {
  grid-column:span 2
}
.component-card.is-selected {
  border-color:rgba(239,163,110,.48);
  background:linear-gradient(140deg,rgba(64,49,33,.6),rgba(35,31,26,.78))
}
.control-button>span:not(.control-icon) {
  font-size:9px;
  line-height:1.65;
  letter-spacing:.35px
}
.control-value {
  font-size:8px
}
.control-group-label>.micro-label {
  font-size:7px
}
.fault-buttons .button {
  font-size:10px
}
.system-health>span {
  font-size:8px;
  line-height:1.8
}
.system-health b {
  font-size:7px
}
.console-grid h3.micro-label {
  font-size:10px
}
.health-note,.sound-note {
  font-size:9px
}
.event-entry {
  font-size:11px
}
.event-entry time {
  font-size:9px
}
.event-tag {
  font-size:8px
}
.wiring-mode .pin-hit {
  fill:rgba(137,200,206,.035);
  stroke:rgba(137,200,206,.16)
}
.scene-grid {
  inset:10% 3% -10%
}
.system-dashboard {
  box-shadow:inset 0 1px 0 rgba(255,232,201,.04),0 16px 45px rgba(0,0,0,.12)
}
@media(max-width:1200px) {
  .control-group-label>.micro-label {
    font-size:6px
  }
  .control-button>span:not(.control-icon) {
    font-size:8px
  }
  .fault-buttons .button {
    font-size:9px
  }
  .system-health>span {
    font-size:7px
  }
  .system-health b {
    font-size:6px
  }
}
@media(max-width:960px) {
  .component-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .component-card.board-card,.component-card.card-breadboard {
    grid-column:span 2
  }
  .component-card.board-card .component-art>svg .board-annotation {
    display:block
  }
  .component-card h3 {
    font-size:14px
  }
  .component-card p {
    font-size:11px
  }
  .control-button>span:not(.control-icon) {
    font-size:8px
  }
  .control-group-label>.micro-label {
    font-size:5px
  }
  .system-health>span {
    font-size:6px
  }
  .system-health b {
    font-size:6px
  }
  .console-grid h3.micro-label {
    font-size:8px
  }
  .event-entry {
    font-size:10px
  }
}
@media(max-width:700px) {
  .component-card h3 {
    font-size:12px
  }
  .component-card p {
    font-size:9px
  }
  .card-switch .component-art,.card-wires .component-art,.card-battery .component-art {
    height:174px
  }
  .control-button>span:not(.control-icon) {
    font-size:8px;
    letter-spacing:0;
    line-height:1.6
  }
  .control-value {
    font-size:7px
  }
  .control-group-label>.micro-label {
    font-size:5px
  }
  .system-health>span {
    font-size:8px
  }
  .system-health b {
    font-size:7px
  }
  .console-grid h3.micro-label {
    font-size:9px
  }
  .fault-buttons .button {
    font-size:9px
  }
  .event-entry {
    font-size:9px
  }
  .event-entry time,.event-tag {
    font-size:8px
  }
  .event-message {
    font-size:9px
  }
}
@media(max-width:380px) {
  .control-button>span:not(.control-icon) {
    font-size:7px
  }
  .control-value {
    font-size:6px
  }
  .fault-buttons .button {
    font-size:8px
  }
  .control-group-label>.micro-label {
    font-size:4.5px
  }
  .console-grid h3.micro-label {
    font-size:8px
  }
  .system-health>span {
    font-size:7px
  }
  .system-health b {
    font-size:6px
  }
}
@media(max-width:700px) {
  .menu-toggle {
    width:36px;
    height:42px
  }
  .header-cta {
    min-height:40px
  }
  .inspector-actions .button {
    min-height:40px
  }
  .modal-close {
    min-width:40px;
    min-height:40px
  }
}

/* Accessible skip navigation remains hidden until keyboard focus. */
.skip-link {
  opacity:0;
  pointer-events:none;
}
.skip-link:focus {
  opacity:1;
  pointer-events:auto;
}

/* A real pixel raster, with an equivalent accessible live-text representation. */
.oled-screen canvas {
  display:block;
  width:100%;
  height:auto;
  max-height:100%;
  object-fit:contain;
  image-rendering:pixelated;
  filter:drop-shadow(0 0 1px rgba(166,239,194,.32));
}
.oled-screen pre {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:pre;
}

/* ==========================================================================
   Contact section
   ========================================================================== */
.contact-section {
  padding-top: clamp(70px, 9vw, 130px);
  padding-bottom: clamp(70px, 9vw, 130px)
}
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start
}
.contact-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.02em
}
.contact-copy p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px
}
.contact-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .4px;
  color: var(--muted)
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 10px
}
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
  position: relative
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted)
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s
}
.field textarea {
  min-height: 140px;
  resize: vertical
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle)
}
.field input:hover,
.field textarea:hover {
  border-color: var(--line-bright)
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 163, 110, .16)
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger)
}
.field-hint {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtle)
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden
}
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px
}
.contact-status {
  margin: 0;
  min-height: 1.5em;
  flex: 1 1 220px;
  font-size: 13px;
  color: var(--muted)
}
.contact-status[data-kind="success"] {
  color: var(--active)
}
.contact-status[data-kind="error"] {
  color: var(--danger)
}
.contact-form .button[disabled] {
  opacity: .6;
  cursor: progress;
  transform: none
}
@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr
  }
  .field input,
  .field textarea {
    font-size: 16px /* prevents iOS zoom on focus */
  }
}

/* ==========================================================================
   Chat assistant
   ========================================================================== */
.chat-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  font-family: var(--font)
}
.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(239, 163, 110, .45);
  border-radius: 999px;
  background: var(--accent);
  color: #211a12;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s, background .2s
}
.chat-launcher:hover {
  background: var(--accent-bright);
  transform: translateY(-2px)
}
.chat-launcher svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(390px, calc(100vw - 36px));
  height: min(560px, calc(100svh - 110px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #2b261e, #1b1914);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  overflow: hidden
}
.chat-panel[hidden] {
  display: none
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--line)
}
.chat-header strong {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px
}
.chat-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted)
}
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 8px;
  overflow-y: auto;
  overscroll-behavior: contain
}
.chat-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}
.chat-msg-assistant {
  align-self: flex-start;
  background: rgba(255, 240, 215, .06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px
}
.chat-msg-user {
  align-self: flex-end;
  background: rgba(239, 163, 110, .18);
  border: 1px solid rgba(239, 163, 110, .3);
  border-bottom-right-radius: 4px
}
.chat-typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px
}
.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-bounce 1.1s infinite ease-in-out
}
.chat-typing i:nth-child(2) { animation-delay: .15s }
.chat-typing i:nth-child(3) { animation-delay: .3s }
@keyframes chat-bounce {
  0%, 60%, 100% { opacity: .35; transform: translateY(0) }
  30% { opacity: 1; transform: translateY(-4px) }
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 10px
}
.chat-suggestions[hidden] {
  display: none
}
.chat-suggestions button {
  padding: 7px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s
}
.chat-suggestions button:hover {
  background: rgba(255, 231, 196, .07);
  border-color: var(--accent)
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line)
}
.chat-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  padding: 10px 12px;
  resize: none;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4
}
.chat-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 163, 110, .16)
}
.chat-send {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #211a12;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .2s
}
.chat-send:hover { background: var(--accent-bright) }
.chat-send:disabled { opacity: .5; cursor: progress }
.chat-note {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 11px;
  color: var(--subtle);
  text-align: center
}
.chat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}
@media (max-width: 560px) {
  .chat-launcher span { display: none }
  .chat-launcher { padding: 0; width: 52px; height: 52px; justify-content: center }
  .chat-panel { bottom: 64px; width: calc(100vw - 36px) }
  .chat-form textarea { font-size: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing i { animation: none; opacity: .7 }
  .chat-launcher, .chat-suggestions button { transition: none }
}
