:root {
  --paper: #f7f7ee;
  --ink: #202722;
  --muted: #5c665d;
  --lime: #d5f36b;
  --green: #35473d;
  --line: #dce0d3;
  --white: #fff;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button, a, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #678535; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--lime); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 112px; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 12px; padding: 12px 22px; background: var(--lime); border: 2px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 23px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 500; line-height: 1.5; transition: background .2s, transform .2s; }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--green); transform: translateY(-2px); }
.button .icon { width: 20px; height: 20px; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(32,39,34,.1); }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: 180px; height: auto; }
#primary-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 500; }
#primary-nav > a:not(.nav-contact) { padding-block: 13px; position: relative; }
#primary-nav > a:not(.nav-contact)::after { content: ""; position: absolute; bottom: 8px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width .2s; }
#primary-nav > a:hover::after { width: 100%; }
#primary-nav > a[aria-current="page"]::after { width: 100%; }
.nav-contact { display: inline-flex; align-items: center; gap: 21px; background: var(--lime); border-radius: 5px; padding: 12px 18px; margin-left: 6px; }
.nav-contact:hover { background: #c9e963; }
.nav-contact .icon { width: 17px; height: 17px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* The first impression */
.hero { display: grid; grid-template-columns: .97fr 1.03fr; gap: 64px; padding-top: 44px; padding-bottom: 76px; }
.hero-copy { padding-top: 17px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
.small-signal { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e6edda; flex-shrink: 0; }
h1 { font-size: clamp(62px, 6.2vw, 91px); letter-spacing: -.062em; line-height: 1.04; position: relative; }
h1 > span:first-of-type { color: #4a5c45; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.066em; }
.heading-dot { display: inline-block; width: 13px; height: 13px; background: var(--lime); border-radius: 50%; margin-left: 16px; vertical-align: 12px; }
.hero-description { max-width: 370px; margin-top: 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 23px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.hero-actions .button { gap: 16px; padding-inline: 20px; }
.hero-actions .text-link { font-size: 12px; gap: 8px; }
.hero-footnote { display: flex; gap: 13px; align-items: center; margin-top: 38px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.hero-footnote .icon { width: 29px; height: 29px; stroke-width: 1.2; color: var(--green); }
.hero-footnote strong { font-weight: 500; color: var(--ink); }
.hero-visual { min-width: 0; position: relative; height: 586px; }
.hero-image { width: 100%; height: calc(100% - 29px); object-fit: cover; object-position: 56% 50%; border-radius: 9px; }
.image-label { position: absolute; left: 25px; top: 25px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(32,39,34,.85); color: var(--paper); border-radius: 4px; font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.scene-card { position: absolute; bottom: 62px; left: 25px; right: 25px; display: flex; align-items: center; gap: 15px; background: var(--paper); border-radius: 9px; padding: 21px; box-shadow: 0 6px 20px #0000000d; transition: transform .2s; }
.scene-card:hover { transform: translateY(-3px); }
.scene-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scene-icon .icon { width: 22px; height: 22px; }
.scene-text { display: flex; flex-direction: column; gap: 3px; }
.scene-text > span { font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.scene-text strong { font-size: 16px; font-weight: 500; letter-spacing: -.03em; }
.scene-text small { font-size: 11px; color: var(--muted); }
.scene-arrow { margin-left: auto; }
.scene-arrow .icon { width: 21px; height: 21px; }
.visual-caption { position: absolute; left: 0; bottom: 0; right: 0; display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: var(--muted); }
.visual-caption span:last-child { font-size: 8px; letter-spacing: .06em; }
.connection-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.connection-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.connection-inner > span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.connection-inner > span strong { color: var(--ink); font-weight: 500; }
.technology-names { display: flex; justify-content: space-between; align-items: center; gap: 50px; color: #536151; }
.technology-names span { font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.technology-names span:nth-child(2) { font-family: ui-monospace, monospace; font-size: 17px; }
.technology-names span:nth-child(3) { font-weight: 600; letter-spacing: .035em; font-size: 16px; }
.technology-names span:nth-child(4) { font-size: 21px; font-weight: 400; }

/* Home and work */
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 55px; margin-bottom: 49px; }
.section-intro .eyebrow { margin-bottom: 18px; }
h2 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -.048em; line-height: 1.14; }
.section-intro > p { color: var(--muted); max-width: 310px; font-size: 14px; line-height: 1.8; margin-bottom: 5px; }
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-card { padding: 32px 37px 34px; position: relative; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.solution-home { background: #e7edda; }
.solution-business { background: #e9e7df; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.category-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid #bec8b2; border-radius: 9px; }
.category-icon .icon { width: 22px; height: 22px; }
.card-index { font-size: 9px; letter-spacing: .11em; color: #5b6755; }
.solution-card h3 { font-size: 32px; letter-spacing: -.04em; line-height: 1.18; margin-bottom: 18px; position: relative; z-index: 1; }
.solution-card > p { color: #596150; font-size: 13px; line-height: 1.8; max-width: 310px; position: relative; z-index: 1; }
.feature-list { padding: 0; list-style: none; margin: 28px 0 36px; font-size: 12px; position: relative; z-index: 1; }
.feature-list li { display: flex; gap: 10px; align-items: center; margin-top: 9px; }
.feature-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #657852; flex-shrink: 0; }
.card-link { border-top: 1px solid #c8d0bd; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; font-weight: 500; position: relative; z-index: 1; }
.card-link .icon { width: 20px; height: 20px; transition: transform .2s; }
.card-link:hover .icon { transform: translateX(4px); }
.home-outline, .office-outline { position: absolute; bottom: 71px; right: -38px; width: 248px; fill: none; stroke: #788667; opacity: .15; stroke-width: 1.6; pointer-events: none; }
.office-outline { stroke: #666b60; right: -52px; }
.home-outline circle, .office-outline circle { fill: currentColor; stroke: none; }
.specialist-services { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; margin-top: 40px; }
.specialist-services article { display: flex; gap: 16px; }
.specialist-services .icon { margin-top: 3px; width: 24px; height: 24px; color: #56684b; }
.specialist-services h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.specialist-services p { color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Home Assistant ecosystem */
.platform-section { background: var(--ink); color: var(--paper); padding-block: 100px 28px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.platform-copy .eyebrow { color: #b8c2b2; margin-bottom: 26px; }
.platform-copy h2 { font-size: clamp(40px, 4vw, 58px); line-height: 1.1; }
.platform-copy h2 > span { color: var(--lime); }
.platform-copy > p:not(.eyebrow) { font-size: 14px; color: #b8c2b2; line-height: 1.8; margin-top: 25px; max-width: 430px; }
.platform-benefits { list-style: none; padding: 0; margin: 30px 0 34px; }
.platform-benefits li { display: flex; gap: 12px; align-items: flex-start; margin-top: 17px; font-size: 12px; color: #b8c2b2; line-height: 1.7; max-width: 405px; }
.platform-benefits .icon { width: 17px; height: 17px; color: var(--lime); margin-top: 2px; }
.platform-benefits strong { color: var(--paper); font-weight: 500; }
.light-link { color: var(--lime); border-color: #a2b57b; }
.connection-map { position: relative; height: 460px; width: 100%; max-width: 520px; margin-inline: auto; background-image: radial-gradient(#5b6651 1px, transparent 1px); background-size: 22px 22px; border-radius: 12px; }
.map-kicker, .map-bottom { position: absolute; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .13em; color: #b8c2b2; }
.map-kicker { top: 8px; }
.map-bottom { bottom: 6px; font-size: 10px; letter-spacing: 0; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #65735a; stroke-width: 1; }
.map-lines circle { stroke-dasharray: 3 7; stroke: #65735a; }
.map-node { position: absolute; width: 104px; height: 86px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 9px; border-radius: 9px; border: 1px solid #57644e; background: #2c362d; box-shadow: 0 5px 15px #17201722; font-size: 10px; }
.map-node .icon { width: 25px; height: 25px; stroke-width: 1.4; color: #d5dfc5; }
.node-light { left: 14%; top: 16%; }
.node-climate { right: 14%; top: 16%; }
.node-sensor { left: 14%; bottom: 16%; }
.node-device { right: 14%; bottom: 16%; }
.map-centre { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 162px; height: 142px; border-radius: 14px; background: var(--lime); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 0 0 8px #202722; }
.map-centre .icon { width: 39px; height: 39px; stroke-width: 1.35; }
.map-centre strong { font-weight: 500; font-size: 16px; letter-spacing: -.02em; }
.map-centre span { font-size: 6px; font-weight: 500; letter-spacing: .09em; }
.platform-note { margin-top: 64px; padding-top: 23px; border-top: 1px solid #3c473b; color: #b8c2b2; font-size: 10px; }

/* Interactive routine explorer */
.demo-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; align-items: start; }
.scope-switch { display: inline-flex; gap: 4px; border: 1px solid var(--line); padding: 5px; border-radius: 8px; margin-bottom: 28px; }
.scope-switch button { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 142px; min-height: 43px; padding: 10px 15px; border: none; border-radius: 5px; background: transparent; font-size: 12px; }
.scope-switch .icon { width: 17px; height: 17px; }
.scope-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scope-switch button[aria-pressed="false"]:hover { background: #e8ecdf; }
.routine-options { display: flex; flex-direction: column; gap: 12px; }
.routine-choice { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 23px 20px; min-height: 105px; text-align: left; background: transparent; width: 100%; transition: background .2s, border-color .2s; }
.routine-choice[aria-pressed="true"] { border-color: #a6b591; background: #e9efdf; }
.routine-choice:hover { background: #edf0e5; }
.routine-number { font-family: ui-monospace, monospace; font-size: 11px; color: #77826d; }
.routine-copy { display: flex; flex-direction: column; gap: 5px; }
.routine-copy strong { font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.routine-copy > span { color: var(--muted); font-size: 11px; line-height: 1.5; max-width: 235px; }
.routine-arrow { margin-left: auto; font-size: 18px; color: #6c785c; }
.demo-aside { display: flex; align-items: flex-start; gap: 10px; margin-top: 31px; }
.demo-aside .signal-dot { background: #688053; margin-top: 6px; }
.demo-aside p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.demo-aside strong { color: var(--ink); font-weight: 500; }
.routine-preview { min-width: 0; padding: 29px 32px 22px; background: #fffefa; border: 1px solid #d8ddce; border-radius: 14px; box-shadow: 0 9px 30px #22332304; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .03em; }
.preview-label { background: #e8eee0; color: #4b6041; font-size: 8px; padding: 5px 8px; border-radius: 3px; font-family: inherit; white-space: nowrap; }
.routine-preview h3 { font-size: 27px; letter-spacing: -.04em; line-height: 1.25; }
.logic-flow { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 12px; margin-block: 26px 29px; padding-bottom: 27px; border-bottom: 1px solid #e1e6d8; }
.logic-flow > div > span, .steps-label { display: block; font-size: 8px; font-weight: 500; letter-spacing: .12em; color: #626e58; }
.logic-flow p { font-size: 12px; line-height: 1.6; margin-top: 7px; }
.logic-arrow { align-self: center; color: #8b957e; margin-top: 10px; }
.steps-label { margin-bottom: 18px; }
.preview-steps { list-style: none; padding: 0; margin: 0 0 28px; }
.preview-steps li { display: flex; align-items: flex-start; gap: 13px; position: relative; min-height: 41px; padding-bottom: 13px; font-size: 12px; line-height: 1.6; }
.preview-steps li:last-child { padding-bottom: 0; }
.step-marker { width: 22px; height: 22px; border-radius: 50%; background: #edf0e6; color: #748165; font-size: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: background .25s, color .25s; }
.preview-steps li:not(:last-child)::before { content: ""; position: absolute; top: 22px; left: 10.5px; height: calc(100% - 22px); width: 1px; background: #e1e5d8; }
.preview-steps li.is-complete .step-marker { background: var(--lime); color: var(--ink); }
.preview-steps li[aria-current="step"] .step-marker { outline: 2px solid #a6b98b; outline-offset: 2px; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding-block: 21px; border-top: 1px solid #e1e6d8; border-bottom: 1px solid #e1e6d8; }
.preview-metrics > div { display: grid; grid-template-columns: 18px 1fr; gap: 5px 8px; align-items: center; }
.preview-metrics .icon { grid-row: 1 / 3; width: 19px; height: 19px; color: #687c58; }
.preview-metrics span { font-size: 6px; color: var(--muted); letter-spacing: .08em; }
.preview-metrics strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.preview-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 23px; }
#preview-state { font-size: 10px; color: var(--muted); }
.preview-bottom .button { min-height: 42px; padding: 11px 14px; font-size: 11px; gap: 10px; }
.preview-bottom .icon { width: 15px; height: 15px; }
.preview-note { font-size: 9px; color: var(--muted); line-height: 1.6; margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--line); }
.no-script-message { font-size: 13px; line-height: 1.8; color: var(--muted); }
html:not(.js) .scope-switch, html:not(.js) #run-demo, html:not(.js) .project-form > .button { display: none; }

/* Hands-on entry points */
.experience-section { padding-bottom: 110px; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.experience-card { border-radius: 13px; overflow: hidden; }
.experience-lab { background: var(--ink); color: var(--paper); }
.experience-game { background: #e4eacb; color: var(--ink); }
.experience-art { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 19px; position: relative; padding: 35px 25px 0; }
.mini-editor { border: 1px solid #58624f; width: 240px; background: #2b342c; border-radius: 7px; box-shadow: 0 10px 0 -6px #4a5542; }
.mini-editor-top { display: flex; align-items: center; gap: 4px; padding: 12px; border-bottom: 1px solid #46513e; }
.mini-editor-top i { width: 4px; height: 4px; border-radius: 50%; background: #8f9f7e; }
.mini-editor-top > span { font-size: 6px; margin-left: 8px; letter-spacing: .08em; color: #c9d3bd; }
.mini-code { font-family: ui-monospace, monospace; padding: 21px 16px 22px; font-size: 10px; line-height: 2.2; color: #e5ecd9; }
.mini-code > span { color: var(--lime); }
.mini-code em { color: #b9d395; font-style: normal; }
.mini-transfer { color: #b4c09f; }
.mini-device { width: 126px; height: 128px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; border-radius: 9px; }
.mini-device > span { font-family: ui-monospace, monospace; font-size: 9px; }
.mini-device > small { font-size: 6px; letter-spacing: .07em; }
.mini-device .icon { width: 28px; height: 28px; }
.experience-copy { padding: 35px 37px 32px; }
.experience-kicker { font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .07em; color: #bcc8af; }
.experience-game .experience-kicker { color: #57664c; }
.experience-copy h3 { font-size: 30px; letter-spacing: -.04em; line-height: 1.15; margin-top: 16px; }
.experience-copy p { font-size: 12px; line-height: 1.8; color: #c0cbb5; margin-top: 18px; max-width: 340px; }
.experience-game .experience-copy p { color: #58634d; }
.experience-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid #56614b; margin-top: 29px; font-size: 12px; font-weight: 500; }
.experience-lab .experience-link { color: var(--lime); }
.experience-game .experience-link { border-color: #bac6a1; }
.experience-link .icon { width: 19px; height: 19px; }
.mini-circuit { width: 290px; fill: none; stroke-width: 7px; stroke-linecap: round; stroke-linejoin: round; }
.mini-wire-inactive { stroke: #bbc6a6; }
.mini-wire { stroke: #49663d; }
.mini-circuit circle { fill: var(--lime); stroke: #49663d; stroke-width: 3px; }
.mini-power, .mini-bulb { height: 49px; width: 49px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #35473d; color: var(--lime); font-size: 24px; flex-shrink: 0; }
.mini-bulb { background: var(--lime); color: #35473d; box-shadow: 0 0 0 6px #d1dcad; }
.game-art { gap: 12px; }
@media (max-width: 1000px) {
  .experience-art { padding-inline: 22px; gap: 12px; }
  .mini-editor { width: 205px; }
  .mini-code { font-size: 8px; padding-inline: 12px; }
  .mini-editor-top > span { font-size: 5px; }
  .mini-device { width: 100px; }
  .mini-device > span { font-size: 8px; }
  .mini-circuit { width: 220px; }
  .mini-power, .mini-bulb { width: 38px; height: 38px; }
}
@media (max-width: 700px) {
  .experience-section { padding-bottom: 65px; }
  .experience-grid { grid-template-columns: 1fr; gap: 19px; }
  .experience-art { min-height: 196px; padding: 25px 20px 0; gap: 14px; }
  .mini-editor { width: 202px; }
  .mini-code { font-size: 8px; }
  .mini-device { width: 100px; height: 117px; gap: 12px; }
  .experience-copy { padding: 29px 27px; }
  .experience-copy h3 { font-size: 28px; }
  .experience-copy p { font-size: 12px; }
  .mini-circuit { width: 230px; }
  .game-art { gap: 10px; }
}
@media (max-width: 370px) {
  .experience-art { gap: 9px; padding-inline: 14px; }
  .mini-editor { width: 174px; }
  .mini-code { font-size: 7px; }
  .mini-device { width: 77px; }
  .mini-device > span { font-size: 6px; }
  .mini-circuit { width: 175px; }
}

.experience-game-links { display: flex; gap: 12px 25px; flex-wrap: wrap; }

/* Shared game selection */
.game-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 32px; }
.game-switcher > a { position: relative; display: grid; gap: 7px; padding: 19px 48px 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #edf0e3; transition: border-color .2s, background .2s; }
.game-switcher > a:hover { border-color: #708158; background: #e6eccf; }
.game-switcher > a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.game-switcher span { font: 8px/1.5 ui-monospace, monospace; letter-spacing: .06em; color: var(--muted); }
.game-switcher strong { font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.game-switcher small { font-size: 11px; line-height: 1.6; color: var(--muted); }
.game-switcher b { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; }
.game-switcher > a[aria-current="page"] span, .game-switcher > a[aria-current="page"] small { color: #c4d2b7; }
.game-switcher > a[aria-current="page"] b { color: var(--lime); }
@media (max-width: 600px) {
  .game-switcher { gap: 8px; padding-top: 19px; }
  .game-switcher > a { padding: 14px 13px; gap: 5px; }
  .game-switcher strong { font-size: 17px; }
  .game-switcher span { font-size: 6px; }
  .game-switcher small { font-size: 10px; }
  .game-switcher b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .game-switcher > a { transition: none; } }

/* Custom device programming */
.custom-section { background: #e9edde; padding-block: 92px; }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 95px; }
.custom-copy .eyebrow { margin-bottom: 21px; }
.custom-copy > p:not(.eyebrow) { margin-top: 23px; font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 430px; }
.custom-detail { display: flex; gap: 16px; padding-top: 20px; margin-top: 17px; border-top: 1px solid #cfd6c3; }
.custom-detail > span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; padding-top: 3px; }
.custom-detail h3 { font-size: 13px; margin-bottom: 5px; }
.custom-detail p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.custom-copy .text-link { margin-top: 30px; }
.custom-visual { height: 444px; position: relative; background: #e1e7d6; border-radius: 15px; border: 1px solid #d5ddc9; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.diagram-label, .diagram-caption { position: absolute; color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.diagram-label { top: 26px; }
.diagram-caption { bottom: 24px; }
.circuit-board { width: 77%; height: 58%; max-width: 365px; position: relative; border-radius: 13px; border: 1px solid #78865e; background: #3b5143; box-shadow: 0 16px 0 -9px #2e4134, 0 29px 22px -14px #3b51432e; }
.circuit-board::before, .circuit-board::after { content: ""; position: absolute; top: 15px; height: calc(100% - 30px); width: 5px; background: repeating-linear-gradient(to bottom, #bdcbb0 0 9px, transparent 9px 19px); }
.circuit-board::before { left: -5px; }
.circuit-board::after { right: -5px; }
.board-traces { width: 100%; height: 100%; fill: none; stroke: #839664; stroke-width: 1.5; opacity: .8; }
.board-traces circle { fill: #cadb9c; stroke: none; }
.board-chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 109px; height: 118px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1px solid #96a77c; background: #202d23; border-radius: 4px; box-shadow: 0 0 0 5px #597051; color: var(--paper); }
.board-chip .icon { width: 25px; height: 25px; color: var(--lime); stroke-width: 1.3; }
.board-chip strong { font-family: ui-monospace, monospace; font-size: 17px; font-weight: 400; }
.board-chip > span { font-size: 6px; letter-spacing: .12em; color: #b7c4a3; }
.board-pin { position: absolute; font-family: ui-monospace, monospace; font-size: 8px; color: #b7c4a3; }
.pin-one { top: 14px; left: 14px; }
.pin-two { top: 14px; right: 14px; }
.pin-three { bottom: 14px; right: 14px; }
.sensor-tags { display: flex; gap: 9px; margin-top: 34px; }
.sensor-tags > span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: #f4f6ec; border: 1px solid #d1dac2; border-radius: 5px; font-size: 8px; color: #5f7152; }
.sensor-tags i { width: 4px; height: 4px; background: #8fa667; border-radius: 50%; }

/* Process, common questions and contact */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.approach-grid article { position: relative; border-top: 1px solid #b7c2ac; padding-top: 25px; }
.process-number { display: block; font-family: Georgia, serif; font-size: 38px; font-weight: 400; font-style: italic; color: #687853; line-height: 1.2; margin-bottom: 33px; }
.approach-grid h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 13px; }
.approach-grid p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 290px; }
.process-tag { display: block; font-size: 7px; letter-spacing: .12em; margin-top: 29px; color: var(--muted); }
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 95px; padding-top: 25px; padding-bottom: 110px; }
.faq-section .eyebrow { margin-bottom: 21px; }
.faq-section h2 { font-size: 38px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; padding-block: 22px; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { width: 19px; flex-shrink: 0; text-align: center; color: #768665; font-size: 21px; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { font-size: 12px; color: var(--muted); line-height: 1.9; padding-bottom: 24px; padding-right: 30px; }
.faq-list p a { text-decoration: underline; text-underline-offset: 3px; }
.contact-section { background: var(--lime); padding-block: 88px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.contact-copy .eyebrow { margin-bottom: 22px; }
.contact-copy h2 { font-size: clamp(37px, 3.7vw, 52px); }
.contact-copy > p:not(.eyebrow) { max-width: 340px; margin-top: 24px; color: #526037; font-size: 13px; line-height: 1.8; }
.contact-email { display: inline-flex; align-items: center; gap: 21px; font-size: 23px; font-weight: 400; letter-spacing: -.03em; border-bottom: 1px solid #788948; padding-bottom: 7px; margin-top: 30px; }
.contact-email .icon { width: 23px; height: 23px; }
.contact-note { display: block; color: #536236; font-size: 10px; margin-top: 43px; }
.project-form { background: #f7faea; border: 1px solid #c6dc8c; border-radius: 12px; padding: 31px; min-width: 0; }
.form-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.form-heading .icon { width: 21px; height: 21px; color: #627745; }
.form-heading h3 { font-size: 19px; letter-spacing: -.025em; }
.form-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 13px; margin-bottom: 19px; }
.form-field label { display: block; font-size: 10px; margin-bottom: 8px; font-weight: 500; }
.form-field label > span { color: var(--muted); font-weight: 400; }
.form-field select, .form-field textarea { width: 100%; border: 1px solid #cdd9b8; background: #fdfef7; border-radius: 5px; padding: 11px 12px; font-size: 11px; color: var(--ink); }
.form-field select { min-height: 43px; padding-right: 25px; }
.form-field textarea { resize: vertical; min-height: 102px; line-height: 1.7; }
.form-field textarea::placeholder { color: var(--muted); }
.project-form > .button { width: 100%; justify-content: space-between; margin-top: 20px; min-height: 49px; }
.form-note { text-align: center; color: var(--muted); font-size: 9px; margin-top: 12px; }
.email-fallback { margin-top: 22px; padding-top: 20px; border-top: 1px solid #cdd9b8; font-size: 12px; }
.email-fallback strong { font-weight: 500; }
.email-fallback p { font-size: 11px; color: #5b6b4c; margin-block: 8px; }
.email-fallback a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 14px; }
.email-fallback label { display: block; font-size: 10px; margin-bottom: 6px; }
.email-fallback textarea { width: 100%; resize: vertical; font-size: 11px; border: 1px solid #cdd9b8; background: #fffef8; padding: 11px; border-radius: 4px; }
.copy-button { font-size: 11px; background: var(--lime); border: 1px solid #b9ce80; border-radius: 4px; padding: 8px 12px; margin-top: 10px; }
#copy-status { display: block; font-size: 10px; margin-top: 8px; }
.project-form noscript p { font-size: 12px; padding-top: 10px; }
.project-form noscript a { text-decoration: underline; }
.site-footer { background: var(--ink); color: #c0c9b7; padding-top: 50px; }
.footer-top { display: flex; align-items: center; gap: 45px; padding-bottom: 43px; }
.footer-brand img { width: 174px; }
.footer-top p { font-size: 11px; line-height: 1.7; color: #b5c0aa; }
.footer-top > a:last-child { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; }
.footer-top .icon { width: 18px; height: 18px; color: var(--lime); }
.footer-bottom { border-top: 1px solid #3c473b; padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 9px; }
.footer-bottom > span:nth-child(2) { font-size: 7px; letter-spacing: .11em; color: #8a9a7e; }
.footer-bottom > a { font-size: 10px; }

/* Tablet and mobile */
@media (min-width: 1600px) { .hero { padding-top: 66px; padding-bottom: 100px; } }
@media (max-width: 1200px) {
  .container { width: calc(100% - 80px); }
  #primary-nav { gap: 20px; }
  .hero { gap: 39px; }
  h1 { font-size: 79px; }
  .hero-visual { height: 568px; }
  .hero-actions { gap: 20px; }
  .hero-description { max-width: 340px; }
  .technology-names { gap: 34px; }
  .demo-layout { gap: 32px; }
  .custom-grid, .contact-grid { gap: 54px; }
  .faq-section { gap: 65px; }
  .scene-text strong { font-size: 14px; }
  .scene-card { padding: 17px; gap: 10px; left: 19px; right: 19px; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 30px; }
  h1 { font-size: 70px; }
  .hero-description { font-size: 15px; }
  .hero .eyebrow { font-size: 8px; }
  .hero-visual { height: 565px; }
  .scene-icon { display: none; }
  .technology-names { gap: 25px; }
  .technology-names span { font-size: 16px; }
  .solution-card { padding-inline: 28px; }
  .platform-grid { gap: 38px; }
  .map-node { width: 90px; }
  .node-light, .node-sensor { left: 9%; }
  .node-climate, .node-device { right: 9%; }
  .routine-preview { padding-inline: 24px; }
  .routine-choice { padding-inline: 15px; gap: 12px; }
  .scope-switch button { min-width: 115px; }
  .preview-metrics { gap: 8px; }
  .preview-metrics > div { grid-template-columns: 1fr; gap: 6px; }
  .preview-metrics .icon { display: none; }
  .custom-grid { gap: 35px; }
  .custom-visual { height: 405px; }
  .approach-grid { gap: 28px; }
  .contact-grid { gap: 35px; }
  .project-form { padding: 25px; }
  .contact-email { font-size: 20px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 82px; flex-wrap: wrap; gap: 0; }
  .brand img { width: 161px; }
  .js .menu-toggle { display: flex; }
  #primary-nav { width: 100%; padding-bottom: 18px; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
  .js #primary-nav { display: none; padding: 16px 0 23px; }
  .js #primary-nav.is-open { display: flex; }
  #primary-nav .nav-contact { margin-left: 0; }
  .hero { padding-top: 31px; }
  h1 { font-size: 66px; }
  .hero-footnote { margin-top: 27px; }
  .connection-inner { gap: 28px; }
  .connection-inner > span { min-width: 135px; font-size: 11px; }
  .technology-names { gap: 20px; flex-wrap: wrap; justify-content: flex-start; }
  .technology-names span, .technology-names span:nth-child(n) { font-size: 15px; }
  .section { padding-block: 82px; }
  .section-intro { gap: 35px; }
  .section-intro > p { max-width: 240px; font-size: 12px; }
  .specialist-services { gap: 20px; }
  .specialist-services article { flex-direction: column; gap: 11px; }
  .platform-section { padding-top: 78px; }
  .platform-grid { gap: 24px; }
  .platform-copy h2 { font-size: 43px; }
  .connection-map { height: 430px; }
  .map-centre { width: 138px; height: 132px; }
  .map-centre strong { font-size: 14px; }
  .map-node { width: 83px; font-size: 9px; height: 78px; }
  .node-light, .node-sensor { left: 5%; }
  .node-climate, .node-device { right: 5%; }
  .demo-layout { grid-template-columns: .75fr 1.25fr; gap: 25px; }
  .scope-switch button { min-width: 100px; padding-inline: 10px; font-size: 11px; }
  .routine-number { display: none; }
  .preview-label { font-size: 6px; padding-inline: 5px; }
  .logic-flow { gap: 8px; }
  .preview-bottom { flex-wrap: wrap; }
  .custom-section { padding-block: 75px; }
  .custom-copy h2 { font-size: 36px; }
  .custom-copy .eyebrow { font-size: 8px; }
  .custom-visual { height: 410px; }
  .sensor-tags { gap: 5px; }
  .sensor-tags > span { padding-inline: 6px; font-size: 7px; }
  .faq-section { padding-bottom: 80px; gap: 36px; }
  .faq-section h2 { font-size: 34px; }
  .faq-list summary { font-size: 12px; }
  .contact-grid { gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 17px; }
  .contact-copy h2 { font-size: 39px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  html { scroll-padding-top: 92px; }
  .header-inner { min-height: 76px; }
  .brand img { width: 151px; }
  .js #primary-nav.is-open { flex-direction: column; align-items: stretch; padding-top: 8px; gap: 2px; }
  #primary-nav > a:not(.nav-contact) { padding-block: 12px; font-size: 14px; }
  #primary-nav > .nav-contact { justify-content: space-between; font-size: 13px; margin-top: 9px; }
  .hero { grid-template-columns: 1fr; gap: 37px; padding-top: 23px; padding-bottom: 42px; }
  .hero-copy { padding-top: 0; }
  .hero .eyebrow { font-size: 8px; margin-bottom: 23px; }
  h1 { font-size: clamp(65px, 13vw, 84px); line-height: 1.02; }
  .heading-dot { width: 11px; height: 11px; margin-left: 15px; vertical-align: 9px; }
  .hero-description { font-size: 15px; max-width: 365px; margin-top: 24px; }
  .hero-actions { margin-top: 25px; gap: 20px; }
  .hero-actions .button { font-size: 12px; min-height: 50px; padding-inline: 17px; gap: 18px; }
  .hero-footnote { margin-top: 27px; }
  .hero-visual { height: 450px; }
  .hero-image { object-position: 56% 52%; }
  .image-label { top: 20px; left: 20px; font-size: 7px; }
  .scene-card { bottom: 49px; left: 17px; right: 17px; padding: 18px 16px; }
  .scene-icon { display: flex; }
  .scene-text strong { font-size: 14px; }
  .scene-text small { font-size: 10px; }
  .scene-arrow .icon { width: 18px; height: 18px; }
  .visual-caption { font-size: 8px; }
  .connection-inner { padding-block: 25px; flex-direction: column; align-items: flex-start; gap: 23px; }
  .connection-inner > span { font-size: 11px; }
  .connection-inner > span br { display: none; }
  .connection-inner > span strong { margin-left: 3px; }
  .technology-names { width: 100%; flex-wrap: wrap; gap: 15px 26px; }
  .technology-names span, .technology-names span:nth-child(n) { font-size: 14px; }
  .section { padding-block: 66px; }
  .section-intro { flex-direction: column; gap: 22px; align-items: flex-start; margin-bottom: 31px; }
  .section-intro .eyebrow { font-size: 8px; margin-bottom: 16px; }
  h2 { font-size: 36px; }
  .section-intro > p { font-size: 13px; max-width: 350px; margin: 0; }
  .solutions-grid { grid-template-columns: 1fr; gap: 18px; }
  .solution-card { padding: 25px 28px 29px; }
  .card-top { margin-bottom: 24px; }
  .solution-card h3 { font-size: 29px; }
  .solution-card > p { font-size: 12px; max-width: 310px; }
  .feature-list { margin-block: 24px 29px; font-size: 11px; }
  .card-link { font-size: 12px; }
  .home-outline, .office-outline { width: 206px; right: -45px; opacity: .13; }
  .specialist-services { grid-template-columns: 1fr; gap: 25px; margin-top: 29px; }
  .specialist-services article { flex-direction: row; gap: 15px; }
  .specialist-services h3 { font-size: 14px; margin-bottom: 5px; }
  .specialist-services p { max-width: 350px; }
  .platform-section { padding-top: 64px; }
  .platform-grid { grid-template-columns: 1fr; gap: 46px; }
  .platform-copy .eyebrow { font-size: 8px; margin-bottom: 20px; }
  .platform-copy h2 { font-size: 46px; }
  .platform-copy > p:not(.eyebrow) { font-size: 13px; margin-top: 22px; }
  .platform-benefits { margin-block: 25px; }
  .platform-benefits li { font-size: 12px; }
  .connection-map { height: 390px; max-width: 440px; }
  .map-node { width: 88px; font-size: 9px; }
  .node-light, .node-sensor { left: 9%; }
  .node-climate, .node-device { right: 9%; }
  .map-centre { width: 140px; height: 125px; }
  .map-centre .icon { width: 33px; height: 33px; }
  .map-lines { object-fit: cover; }
  .map-bottom { font-size: 8px; }
  .platform-note { margin-top: 25px; font-size: 9px; line-height: 1.8; }
  .demo-layout { grid-template-columns: 1fr; gap: 25px; }
  .scope-switch { margin-bottom: 18px; }
  .scope-switch button { min-width: 135px; font-size: 12px; }
  .routine-choice { min-height: 85px; padding: 17px 19px; gap: 16px; }
  .routine-number { display: block; }
  .routine-copy > span { max-width: none; font-size: 11px; }
  .demo-aside { display: none; }
  .routine-preview { padding: 24px 22px 20px; }
  .preview-top { margin-bottom: 22px; font-size: 8px; }
  .preview-label { font-size: 6px; }
  .routine-preview h3 { font-size: 27px; }
  .logic-flow { margin-block: 23px; gap: 10px; }
  .logic-flow p { font-size: 11px; }
  .preview-steps li { font-size: 11px; min-height: 40px; padding-bottom: 13px; }
  .preview-metrics { padding-block: 18px; }
  .preview-metrics strong { font-size: 14px; }
  .preview-metrics span { font-size: 6px; }
  .preview-bottom { padding-top: 21px; flex-wrap: nowrap; }
  #preview-state { font-size: 9px; }
  .preview-note { font-size: 8px; }
  .custom-section { padding-block: 63px; }
  .custom-grid { grid-template-columns: 1fr; gap: 39px; }
  .custom-visual { height: 355px; order: 2; max-width: 460px; width: 100%; margin-inline: auto; }
  .custom-copy h2 { font-size: 36px; }
  .custom-copy > p:not(.eyebrow) { font-size: 13px; }
  .custom-detail h3 { font-size: 13px; }
  .custom-detail p { font-size: 11px; }
  .sensor-tags > span { font-size: 8px; padding-inline: 9px; }
  .circuit-board { height: 54%; }
  .board-chip { width: 92px; height: 100px; gap: 6px; }
  .board-chip strong { font-size: 16px; }
  .board-chip .icon { width: 22px; height: 22px; }
  .approach-grid { grid-template-columns: 1fr; gap: 31px; }
  .approach-grid article { padding-top: 22px; display: grid; grid-template-columns: 45px 1fr; gap: 0 15px; }
  .process-number { grid-row: 1 / 4; font-size: 33px; margin: 0; }
  .approach-grid h3 { font-size: 20px; }
  .approach-grid p { max-width: none; }
  .process-tag { margin-top: 20px; }
  .faq-section { grid-template-columns: 1fr; gap: 31px; padding-top: 5px; padding-bottom: 65px; }
  .faq-section .eyebrow { font-size: 8px; margin-bottom: 16px; }
  .faq-section h2 { font-size: 36px; }
  .faq-list summary { font-size: 12px; padding-block: 20px; }
  .faq-list details p { font-size: 12px; padding-right: 16px; }
  .contact-section { padding-block: 62px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-copy .eyebrow { font-size: 8px; }
  .contact-copy h2 { font-size: 38px; }
  .contact-copy > p:not(.eyebrow) { margin-top: 22px; }
  .contact-email { font-size: 24px; margin-top: 24px; }
  .contact-note { margin-top: 24px; }
  .project-form { padding: 26px 22px; }
  .form-heading { margin-bottom: 23px; }
  .form-row { grid-template-columns: .7fr 1.3fr; gap: 10px; }
  .form-field select, .form-field textarea { font-size: 12px; }
  .form-field label { font-size: 10px; }
  .form-note { font-size: 9px; }
  .site-footer { padding-top: 38px; }
  .footer-top { flex-wrap: wrap; gap: 18px 27px; padding-bottom: 33px; }
  .footer-brand img { width: 145px; }
  .footer-top p { font-size: 10px; }
  .footer-top > a:last-child { width: 100%; margin-left: 0; margin-top: 7px; font-size: 12px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; padding-block: 20px; font-size: 8px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .footer-bottom > a { margin-left: auto; font-size: 9px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 60px; }
  .hero-visual { height: 378px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .scene-icon { display: none; }
  .scene-text strong { font-size: 13px; }
  .scene-card { left: 13px; right: 13px; }
  .technology-names { gap: 13px 20px; }
  .preview-label { display: none; }
  .preview-bottom { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; gap: 17px; }
  .contact-email { font-size: 21px; gap: 15px; }
  .sensor-tags { gap: 4px; }
  .sensor-tags > span { font-size: 7px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
