:root {
  color-scheme: light;
  --ink: #1f2428;
  --muted: #5e6a70;
  --quiet: #657277;
  --canvas: #f4f1ea;
  --surface: #fbf9f4;
  --surface-raised: #f0ece4;
  --line: #d8d2c8;
  --accent: #18c7c8;
  --accent-ink: #08777c;
  --accent-soft: #ddf4f2;
  --navy: #10232b;
  --focus: #075f65;
  --shell: min(1120px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -20%, #e2efeb 0, transparent 33rem), var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-ink); }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 5; background: var(--focus); color: #101417; padding: .6rem .8rem; border-radius: .35rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header { border-bottom: 1px solid #27404a; background: var(--navy); }
.masthead { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #dce9e8; text-decoration: none; line-height: 1.05; }
.brand-mark { width: 2.65rem; height: 2.65rem; filter: drop-shadow(0 0 .55rem rgb(45 212 191 / .12)); }
.brand-lockup { display: grid; gap: .22rem; }
.brand-lockup strong { color: #fbf9f4; font-size: 1rem; letter-spacing: -.035em; }
.brand-lockup strong span { color: var(--accent); font-size: 1.16em; }
.brand-lockup small { color: #b8c9ca; font-size: .59rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .35rem; list-style: none; padding: 0; margin: 0; }
.nav-list a { display: block; padding: .42rem .58rem; border-radius: .3rem; color: #dce9e8; font-size: .9rem; text-decoration: none; }
.nav-list a:hover { background: rgb(255 255 255 / .1); color: var(--accent); }
.hero { padding-block: clamp(4rem, 9vw, 8rem); max-width: 1120px; }
.hero h1 { max-width: 20ch; font-size: clamp(2.45rem, 5.4vw, 4.8rem); }
.eyebrow { display: inline-block; margin: 0 0 .7rem; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-weight: 730; letter-spacing: -.035em; line-height: 1.1; }
h1 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 6vw, 5.4rem); }
h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { margin: 0; font-size: 1.25rem; }
.hero-copy { max-width: 52rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: .4rem; font-weight: 700; text-decoration: none; }
.button.primary { border-color: var(--navy); background: var(--navy); color: #fbf9f4; }
.button.primary:hover { border-color: var(--accent-ink); background: var(--accent-ink); color: #fff; }
.button.quiet { color: var(--ink); background: var(--surface); }
.section-band, .projects-band { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 76%, transparent); padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-intro .eyebrow { margin: 0 0 .25rem; }
.section-grid, .article-grid, .related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-card, .article-card, .related-card { border: 1px solid var(--line); border-radius: .55rem; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); }
.section-card { min-height: 13rem; display: flex; flex-direction: column; align-items: start; gap: .8rem; padding: 1.3rem; text-decoration: none; }
.section-card strong { font-size: 1.3rem; }
.section-card span:last-child, .article-card p, .related-card span:last-child, .projects-layout p { color: var(--muted); }
.featured { padding-block: clamp(3rem, 6vw, 5.5rem); }
.article-card { display: flex; flex-direction: column; align-items: start; padding: 1.25rem; }
.article-card h2, .article-card h3 { margin-top: 1.1rem; }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card p { margin: .8rem 0 1.2rem; }
.card-topline, .eyebrow-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.tag { display: inline-block; margin: .12rem .2rem .12rem 0; padding: .12rem .42rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.text-link { margin-top: auto; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.projects-band { background: #ebe6dc; }
.projects-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.projects-layout h2 { max-width: 19ch; }
.project-links { display: grid; gap: .7rem; }
.project-links a { display: grid; gap: .25rem; padding: 1rem; border-left: 2px solid var(--accent); background: var(--surface); text-decoration: none; }
.project-links span { color: var(--muted); font-size: .91rem; }
.article { max-width: min(780px, calc(100% - 2.5rem)); padding-block: 2rem 5rem; }
.back-link { color: var(--muted); font-size: .9rem; text-decoration: none; }
.article-header { padding-block: 2rem 2.4rem; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 18ch; margin-top: .4rem; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.article-summary { max-width: 46rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.16rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.3rem 2rem; margin: 1.7rem 0 0; }
.article-meta div { display: flex; align-items: baseline; gap: .45rem; }
.article-meta dt { color: var(--quiet); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.article-meta dd { margin: 0; color: var(--muted); font-size: .9rem; }
.prose { margin-top: 2.6rem; color: var(--ink); font-size: 1.05rem; }
.prose h2 { margin: 2.7rem 0 1rem; font-size: 1.7rem; }
.prose h3 { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2rem; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--accent-ink); }
.prose code { padding: .12rem .3rem; border: 1px solid #26434b; border-radius: .25rem; background: #10232b; color: #d9f6f3; font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.prose pre { overflow-x: auto; margin: 1.4rem 0; padding: 1rem; border: 1px solid #26434b; border-radius: .5rem; background: #10232b; color: #d9f6f3; }
.prose pre code { padding: 0; border: 0; background: transparent; }
.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-raised); color: var(--ink); }
.prose blockquote { margin: 1.4rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); background: var(--surface); }
.project-origin { position: relative; margin: 0 0 2.3rem; padding: 1.35rem 1.45rem 1.25rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent-ink) 36%, var(--line)); border-left: 4px solid var(--accent); border-radius: .65rem; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: 0 .75rem 2rem rgb(43 36 25 / .08); }
.project-origin::after { position: absolute; right: -1.6rem; bottom: -.5rem; color: color-mix(in srgb, var(--accent) 16%, transparent); content: "…"; font-family: Georgia, serif; font-size: 7rem; font-weight: 700; line-height: .6; pointer-events: none; }
.project-origin .project-origin-label { margin: 0 0 .3rem; color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-origin .project-origin-quote { max-width: 26ch; margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.16; }
.project-origin .project-origin-punchline { margin: .7rem 0 0; color: var(--muted); font-size: .9rem; font-style: italic; }
.article-figure { margin: 2rem 0 2.4rem; }
.article-figure a { display: block; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface); box-shadow: 0 1rem 2.6rem rgb(43 36 25 / .12); }
.article-figure figcaption { margin-top: .65rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 1rem; font-size: 1.45rem; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-card { display: grid; gap: .45rem; padding: 1rem; text-decoration: none; }
.related-card strong { font-size: 1rem; }
.section-page { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-header { max-width: 50rem; margin-bottom: 2.2rem; }
.section-header h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.section-header p { color: var(--muted); font-size: 1.16rem; }
.site-footer { border-top: 1px solid #27404a; background: var(--navy); color: #b8c9ca; font-size: .82rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.4rem; }

/* Meet the Team: intentionally lighter than the engineering articles. */
.team-page { padding-block: clamp(2.5rem, 5vw, 5rem); }
.team-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.team-hero h1 { max-width: none; font-size: clamp(3rem, 7vw, 6rem); }
.team-hero p:not(.eyebrow) { max-width: 34rem; margin: 1rem 0; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.team-note { display: inline-block; margin-top: .55rem; padding: .36rem .65rem; border: 1px dashed color-mix(in srgb, var(--accent) 65%, var(--line)); border-radius: 99px; color: var(--accent-ink); font-size: .88rem; transform: rotate(-1.1deg); }
.team-illustration { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--navy); box-shadow: 0 1.2rem 4rem rgb(43 36 25 / .18); transform: rotate(.55deg); }
.team-illustration::after { position: absolute; right: 1rem; bottom: 2.1rem; padding: .25rem .5rem; border: 1px solid rgb(255 255 255 / .22); border-radius: .25rem; background: rgb(5 12 18 / .7); color: #86e6d8; content: "strictly accurate-ish"; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.team-illustration img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 18%; }
.team-illustration figcaption { padding: .55rem .8rem; background: var(--surface); color: var(--muted); font-size: .78rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.team-card { --card-accent: var(--accent-ink); display: grid; grid-template-columns: 3.3rem 1fr; gap: .85rem 1rem; min-height: 17rem; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--card-accent) 45%, var(--line)); border-radius: .7rem; background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 9%, var(--surface-raised)), var(--surface)); box-shadow: inset 0 .1rem 0 rgb(255 255 255 / .7); }
.team-card:hover { border-color: color-mix(in srgb, var(--card-accent) 80%, var(--line)); transform: translateY(-2px) rotate(-.15deg); transition: transform 140ms ease, border-color 140ms ease; }
.team-avatar { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border: 1px solid color-mix(in srgb, var(--card-accent) 75%, var(--line)); border-radius: 1rem .55rem 1rem .55rem; background: color-mix(in srgb, var(--card-accent) 12%, var(--surface)); color: var(--card-accent); font-family: Georgia, serif; font-size: 1.75rem; transform: rotate(-4deg); }
.team-card h2 { margin: .1rem 0 0; font-size: 1.17rem; letter-spacing: -.02em; }
.team-role { margin: .15rem 0 0; color: var(--card-accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.team-card > p { grid-column: 1 / -1; margin: 0; color: var(--ink); line-height: 1.52; }
.team-signoff { grid-column: 1 / -1; align-self: end; color: color-mix(in srgb, var(--card-accent) 72%, var(--ink)); font-size: .83rem; font-style: italic; }
.team-detail-link { grid-column: 1 / -1; width: fit-content; color: var(--card-accent); font-size: .84rem; font-weight: 800; text-decoration: none; }
.team-detail-link:hover { text-decoration: underline; text-decoration-thickness: .1em; }
.team-ceo { --card-accent: #ff82bf; grid-column: span 2; background: linear-gradient(125deg, color-mix(in srgb, #ff82bf 17%, var(--surface-raised)), var(--surface)); }
.team-owner { --card-accent: #63c9ff; }
.team-advisor { --card-accent: #54e0c4; }
.team-codex { --card-accent: #f0be63; }
.team-locallm { --card-accent: #e59a5e; }
.team-chaos { --card-accent: #bc8cff; }
.team-thanks { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; color: var(--muted); text-align: center; }
.team-thanks p { margin: 0; }
.team-thanks strong { color: var(--ink); font-weight: 650; }
.team-thanks span { color: var(--focus); font-size: 1.15rem; transform: rotate(18deg); }

/* Public-safe, local-only Home Assistant-inspired demo. */
.demo-page { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.demo-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.demo-header h1 { max-width: none; margin: 0; font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.demo-header p:not(.eyebrow) { max-width: 44rem; margin: .7rem 0 0; color: var(--muted); font-size: 1.1rem; }
.demo-disclaimer { max-width: 19rem; padding: .52rem .72rem; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line)); border-radius: .45rem; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; line-height: 1.4; }
.demo-shell { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: 0 1.4rem 4rem rgb(43 36 25 / .16); }
.demo-topbar { display: flex; align-items: center; gap: 1rem; min-height: 4.3rem; padding: .7rem 1rem; border-bottom: 1px solid #27404a; background: var(--navy); }
.demo-wordmark { display: inline-flex; align-items: center; gap: .4rem; margin-right: auto; color: #fbf9f4; font-size: .95rem; }
.demo-wordmark img { width: 2rem; height: 2rem; }.demo-wordmark strong { color: var(--accent); font-size: 1.2em; }
.demo-tabs, .demo-energy-controls { display: flex; flex-wrap: wrap; gap: .3rem; }
.demo-tabs button, .demo-energy-controls button { padding: .43rem .66rem; border: 1px solid transparent; border-radius: .35rem; background: transparent; color: #dce9e8; font: inherit; font-size: .82rem; cursor: pointer; }
.demo-tabs button:hover { color: var(--accent); background: rgb(255 255 255 / .1); }
.demo-energy-controls button { border-color: var(--line); background: var(--surface); color: var(--ink); }
.demo-energy-controls button:hover { color: var(--ink); background: var(--surface-raised); }
.demo-tabs button.is-active, .demo-energy-controls button.is-active { border-color: var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.demo-live-dot { color: #c6e8e5; font-size: .72rem; white-space: nowrap; }.demo-live-dot::before { display: inline-block; width: .46rem; height: .46rem; margin-right: .3rem; border-radius: 50%; background: #e1a33a; content: ""; }
.demo-view { display: none; padding: 1rem; }.demo-view.is-active { display: block; }
.demo-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.demo-metric { min-height: 7rem; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface-raised); }.demo-metric span, .demo-metric small { display: block; color: var(--muted); font-size: .76rem; }.demo-metric strong { display: block; margin: .35rem 0; color: var(--ink); font-size: 1.45rem; }.demo-metric.solar strong { color: #946416; }.demo-metric.battery strong { color: #08777c; }.demo-metric.network strong { color: #1e668d; }
.demo-layout { display: grid; grid-template-columns: minmax(15rem, .85fr) minmax(20rem, 1.15fr); gap: .7rem; margin-top: .7rem; }
.demo-panel { padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }.demo-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }.demo-panel h2 { margin: .1rem 0 0; font-size: 1.3rem; }.demo-kicker { color: var(--accent-ink); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.demo-icon { color: var(--accent-ink); font-size: 1.55rem; }
.demo-climate { display: grid; align-content: start; gap: 1.2rem; }.demo-climate-readout { display: grid; grid-template-columns: 1fr auto; align-items: end; }.demo-climate-readout span { color: var(--muted); }.demo-climate-readout strong { grid-row: span 2; color: #946416; font-size: 3.2rem; line-height: .9; }.demo-climate-state { font-size: .82rem; }.demo-climate-state.is-warm { color: #a45d1b; }
.demo-stepper { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; overflow: hidden; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface-raised); }.demo-stepper button { border: 0; background: var(--navy); color: #f4f1ea; font-size: 1.35rem; cursor: pointer; }.demo-stepper button:hover { background: var(--accent-ink); }.demo-stepper span { padding: .55rem; text-align: center; font-weight: 750; }.demo-note { margin: 0; color: var(--muted); font-size: .85rem; }
.demo-light-list { display: grid; gap: .65rem; margin-top: 1rem; }.demo-light { --brightness: 0%; padding: .55rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: .45rem; background: linear-gradient(90deg, color-mix(in srgb, #fff4c6 var(--brightness), var(--surface-raised)), var(--surface-raised)); }.demo-light-toggle { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; width: 100%; gap: .6rem; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }.demo-light-toggle small { display: block; color: var(--muted); font-size: .76rem; }.demo-light-toggle b { padding: .16rem .38rem; border-radius: .25rem; background: #e0dcd3; color: var(--muted); font-size: .72rem; }.demo-light-toggle.is-on b { background: #cfeae7; color: #075f65; }.demo-light-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .4rem; background: #dce8e6; color: var(--accent-ink); }.demo-light-toggle.is-on .demo-light-icon { background: #f2df9a; color: #795914; }.demo-light label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; margin-top: .6rem; color: var(--muted); font-size: .72rem; }.demo-light input { width: 100%; accent-color: var(--accent-ink); }.demo-light output { color: var(--ink); }
.demo-temperature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: .7rem; }.demo-temperature-row article { display: flex; align-items: end; justify-content: space-between; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface-raised); }.demo-temperature-row span { color: var(--muted); font-size: .8rem; }.demo-temperature-row strong { color: var(--accent-ink); font-size: 1.4rem; }
.demo-room-focus, .demo-energy-focus { max-width: 48rem; min-height: 19rem; }.demo-room-focus h2, .demo-energy-focus h2 { margin-top: .35rem; }.demo-room-focus p, .demo-energy-focus p { max-width: 42rem; color: var(--muted); }.demo-room-pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }.demo-room-pills span { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-raised); }.demo-energy-controls { margin: 1.5rem 0; }.demo-energy-result { padding: .8rem; border-left: 2px solid var(--accent-ink); background: var(--accent-soft); color: var(--ink); }

/* The demo intentionally follows the real dashboard's compact dark-card language. */
.demo-shell { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); border-color: #303030; border-radius: .35rem; background: #111; box-shadow: 0 1.4rem 4rem rgb(16 20 22 / .22); color: #e6e6e6; }
.demo-ha-sidebar { display: flex; flex-direction: column; min-height: 39rem; border-right: 1px solid #303030; background: #202020; }
.demo-ha-brand, .demo-topbar { display: flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: .75rem 1rem; border-bottom: 1px solid #303030; color: #e9e9e9; }
.demo-ha-brand span { color: #b8b8b8; font-size: 1.1rem; }.demo-ha-brand strong { font-size: 1rem; }
.demo-side-nav { display: grid; gap: .18rem; padding: .65rem .4rem; }.demo-tabs.demo-side-nav button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .7rem; border-radius: .2rem; color: #d2d2d2; font-size: .86rem; text-align: left; }.demo-tabs.demo-side-nav button span { width: 1rem; color: #b0b0b0; text-align: center; }.demo-tabs.demo-side-nav button:hover { background: #2a2a2a; color: #fff; }.demo-tabs.demo-side-nav button.is-active { border-color: transparent; background: #12333b; color: #03b8d4; }.demo-tabs.demo-side-nav button.is-active span { color: #03b8d4; }
.demo-ha-sidebar .demo-live-dot { margin: auto .9rem 1rem; color: #b7b7b7; }.demo-ha-sidebar .demo-live-dot::before { background: #f5a623; }
.demo-ha-main { min-width: 0; background: #111; }.demo-topbar { justify-content: space-between; min-height: 3.5rem; background: #202020; font-size: 1rem; }.demo-topbar > span { color: #c6c6c6; letter-spacing: .12em; }
.demo-shell .demo-view { padding: 1.35rem; }.demo-summary-grid, .demo-temperature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 0; }.demo-metric, .demo-temperature-row article { display: grid; place-items: center; align-content: center; min-height: 7.4rem; padding: .75rem; border: 1px solid #3a3a3a; border-radius: .6rem; background: #1c1c1c; text-align: center; }.demo-metric strong, .demo-temperature-row strong { margin: .3rem 0 .15rem; color: #f0f0f0; font-size: .9rem; }.demo-metric b, .demo-temperature-row b { color: #dfdfdf; font-size: .88rem; font-weight: 600; }.demo-summary-icon { color: #03b8d4; font-size: 1.35rem; line-height: 1; }.demo-metric.solar .demo-summary-icon { color: #03b8d4; }.demo-metric.battery .demo-summary-icon { color: #57c84d; }.demo-metric.load .demo-summary-icon { color: #2a9ee8; }.demo-metric.network .demo-summary-icon { color: #57c84d; }.demo-metric.solar b, .demo-metric.battery b, .demo-metric.load b, .demo-metric.network b { color: #dfdfdf; }
.demo-temperature-row { margin-top: .8rem; }.demo-temperature-row article { min-height: 6.7rem; }.demo-temperature-row .demo-summary-icon { font-size: 1.25rem; }
.demo-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.1rem; margin-top: 1.25rem; }.demo-group h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; color: #e7e7e7; font-size: 1.02rem; }.demo-group h2 span { color: #d6d6d6; font-size: 1.1rem; }.demo-ha-card, .demo-entity-row { border: 1px solid #3a3a3a; border-radius: .6rem; background: #1c1c1c; }
.demo-light { --brightness: 0%; padding: .75rem; margin-bottom: .55rem; }.demo-light-toggle { grid-template-columns: 2.5rem 1fr auto; gap: .7rem; color: #ededed; }.demo-light-toggle strong { font-size: .9rem; }.demo-light-toggle small { margin-top: .08rem; color: #c6c6c6; }.demo-light-icon { width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #08333d; color: #03b8d4; font-size: 1rem; }.demo-light-toggle.is-on .demo-light-icon { background: #003f4a; color: #04c4e0; }.demo-light-toggle b { background: #303030; color: #cfcfcf; font-size: .7rem; }.demo-light-toggle.is-on b { background: #0c5966; color: #d9fbff; }.demo-light label { color: #bdbdbd; font-size: .74rem; }.demo-light input { accent-color: #03b8d4; }.demo-light output { color: #e7e7e7; }
.demo-climate { gap: .75rem; padding: .75rem; margin-top: .55rem; }.demo-climate-heading { display: flex; align-items: center; gap: .7rem; }.demo-climate-heading strong { display: block; color: #ededed; font-size: .9rem; }.demo-climate-heading small { display: block; margin-top: .08rem; color: #bdbdbd; font-size: .75rem; }.demo-climate-readout { grid-template-columns: 1fr auto; }.demo-climate-readout span { color: #bdbdbd; font-size: .78rem; }.demo-climate-readout span:last-child { align-self: end; }.demo-climate-readout strong { color: #f0b04d; font-size: 2.5rem; }.demo-stepper { border-color: #3a3a3a; background: #262626; }.demo-stepper button { background: #303030; color: #e9e9e9; }.demo-stepper button:hover { background: #0c5966; }.demo-stepper span { color: #e9e9e9; }
.demo-energy-grid { margin-top: 1.5rem; }.demo-entity-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .85rem; margin-bottom: .45rem; color: #ececec; font-size: .87rem; }.demo-entity-row b { color: #c7c7c7; font-size: .8rem; font-weight: 500; }.demo-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }.demo-chip-row span { padding: .28rem .5rem; border: 1px solid #3a3a3a; border-radius: 99px; color: #d2d2d2; font-size: .72rem; }
.demo-panel { border-color: #3a3a3a; background: #1c1c1c; color: #e5e5e5; }.demo-panel h2 { color: #f0f0f0; }.demo-room-focus p, .demo-energy-focus p, .demo-note { color: #c2c2c2; }.demo-room-pills span { border-color: #3a3a3a; background: #272727; color: #e0e0e0; }.demo-energy-controls button { border-color: #444; background: #272727; color: #e0e0e0; }.demo-energy-controls button:hover { background: #333; }.demo-energy-controls button.is-active { border-color: #03b8d4; background: #12333b; color: #b9f5ff; }.demo-energy-result { border-left-color: #03b8d4; background: #14262b; color: #d9f5f7; }

/* Small fidelity refinements: Home Assistant favours compact fixed-width summaries and dense entities. */
.demo-shell { grid-template-columns: 11rem minmax(0, 1fr); }
.demo-ha-brand { gap: .45rem; padding-inline: .8rem; white-space: nowrap; }.demo-ha-brand strong { font-size: .9rem; }
.demo-topbar { padding-inline: 2rem; }
.demo-tabs.demo-side-nav button { min-height: 2.55rem; padding: .5rem .65rem; font-weight: 600; }
.demo-summary-grid, .demo-temperature-row { grid-template-columns: repeat(4, 7.1rem); justify-content: start; gap: .5rem; }
.demo-metric, .demo-temperature-row article { min-height: 7.45rem; border-radius: .7rem; }
.demo-metric strong, .demo-temperature-row strong { font-weight: 600; }.demo-metric b, .demo-temperature-row b { font-weight: 500; }
.demo-summary-icon { font-size: 1.55rem; }.demo-temperature-row .demo-summary-icon { font-size: 1.45rem; }
.demo-home-grid { gap: 1rem 1.1rem; margin-top: 1.65rem; }.demo-group h2 { margin-bottom: .65rem; font-weight: 600; }
.demo-light { padding: .7rem .75rem .6rem; }.demo-light-toggle { min-height: 2.45rem; }.demo-light-toggle strong { font-weight: 600; }.demo-light label { grid-template-columns: 1fr; margin-top: .55rem; font-size: 0; }.demo-light output { display: none; }
.demo-light input[type="range"] { appearance: none; width: 100%; height: 2.55rem; margin: 0; border: 0; border-radius: .55rem; background: linear-gradient(90deg, #03b8d4 0 var(--brightness), #10424a var(--brightness) 100%); cursor: pointer; }.demo-light input[type="range"]::-webkit-slider-thumb { appearance: none; width: .1rem; height: 2.1rem; border: 0; border-radius: .1rem; background: transparent; }.demo-light input[type="range"]::-moz-range-thumb { width: .1rem; height: 2.1rem; border: 0; border-radius: .1rem; background: transparent; }
.demo-climate { padding: .7rem .75rem .75rem; }.demo-climate-readout { display: none; }.demo-climate-heading { min-height: 2.45rem; }.demo-stepper { min-height: 2.65rem; grid-template-columns: 2.65rem 1fr 2.65rem; }.demo-stepper span { font-size: .9rem; font-weight: 600; }

@media (max-width: 760px) {
  .masthead { min-height: auto; align-items: start; flex-direction: column; padding-block: 1rem; }
  .nav-list { justify-content: flex-start; }
  .section-grid, .article-grid, .related-grid, .projects-layout { grid-template-columns: 1fr; }
  .section-intro { align-items: start; flex-direction: column; }
  .hero { padding-block: 4rem; }
  .article { max-width: min(100% - 2rem, 780px); }
  .article-meta { display: grid; gap: .5rem; }
  .team-hero, .team-grid { grid-template-columns: 1fr; }
  .team-ceo { grid-column: auto; }
  .team-illustration { order: -1; }
  .brand-lockup small { display: none; }
  .demo-header { display: grid; align-items: start; gap: 1rem; }
  .demo-shell { grid-template-columns: 1fr; }.demo-ha-sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid #303030; }.demo-ha-brand { min-height: 3rem; }.demo-side-nav { display: flex; padding: .35rem .45rem; }.demo-tabs.demo-side-nav button { width: auto; }.demo-ha-sidebar .demo-live-dot { align-self: flex-end; margin: .15rem .8rem .55rem; }.demo-topbar { min-height: 3rem; }
  .demo-summary-grid, .demo-home-grid, .demo-temperature-row { grid-template-columns: 1fr 1fr; }
}
