:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --stone: #e9eee7;
  --ink: #222a24;
  --muted: #4e5e52;
  --line: #c9d4c8;
  --night: #232f27;
  --green-dark: #385747;
  --green: #58785f;
  --green-light: #8ea592;
  --sage-tint: #d9e5d8;
  --width: 75rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-height: 4.5rem;
  font-family: "Avenir Next", Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.hero :focus-visible, .demo :focus-visible { outline-color: var(--sage-tint); }

.wrap { width: min(var(--width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.skip {
  position: fixed;
  inset: .75rem auto auto .75rem;
  transform: translateY(-150%);
  z-index: 20;
  padding: .5rem 1rem;
  background: var(--paper);
}
.skip:focus { transform: none; }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .06em;
  color: var(--green-dark);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.72rem, 1.55rem + .35vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand-x {
  width: .99em;
  height: .79em;
  object-fit: contain;
}

nav, .footer-links { display: flex; align-items: center; gap: clamp(1.15rem, 3.3vw, 3.1rem); }
nav a, .footer-links a { font-size: .925rem; text-decoration: none; }
nav a:not(.button):hover, .footer-links a:hover { text-decoration: underline; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.menu-icon {
  width: .95rem;
  height: .65rem;
  border-block: 1px solid currentColor;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .7rem 1.17rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--green-dark);
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  transition: background-color .18s, border-color .18s, color .18s;
}
.button:hover { background: #2b4537; }
.nav-contact { min-height: 2.65rem; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--sage-tint); }
.button-outline { border-color: #fff9; color: #fff; background: #14171138; }
.button-outline:hover { background: #191e16c9; border-color: #fff; }

.hero { position: relative; isolation: isolate; display: grid; align-items: end; background: #2f3027; color: #fcfaf4; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 57%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #171a15ba, #171a154f 61%, #171a150d 92%),
              linear-gradient(0deg, #151711a6, transparent 58%);
}
.hero-inner { padding-block: clamp(5rem, 12vw, 11rem) clamp(3.65rem, 7vw, 6rem); }
.hero h1 { max-width: 63rem; font-size: clamp(2.75rem, 7vw, 6.55rem); line-height: .99; font-weight: 500; letter-spacing: -.075em; }
.hero p { max-width: 33rem; margin-top: 1.65rem; color: #f4f1e9; font-size: clamp(1.025rem, 1.6vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }

.eyebrow { margin-bottom: .85rem; color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.section-heading h2 { max-width: 17ch; font-size: clamp(2.1rem, 4.5vw, 4.1rem); line-height: 1.06; font-weight: 500; letter-spacing: -.055em; }
.section-heading > p:not(.eyebrow) { max-width: 43ch; color: var(--muted); }
.section-heading > h2 + p { margin-top: 1.15rem; }
.section-heading > p + p { margin-top: .8rem; }
.section-heading-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 1.35rem 3.5rem; margin-bottom: 2.25rem; }

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  background: var(--night);
  color: #faf7ee;
  border: 1px solid #34382d;
}
.demo-image { position: relative; overflow: hidden; align-self: center; width: 100%; aspect-ratio: 1350 / 759; }
.demo-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scene-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .29rem .55rem;
  background: #242821e8;
  color: #faf7ee;
  font-size: .8125rem;
  font-weight: 620;
}
.technology { background: var(--stone); }
.technology-grid, .privacy-grid, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 7vw, 7rem); }
.flow { border: 1px solid var(--line); padding: 1.4rem clamp(1.15rem, 3.3vw, 2.5rem); }
.flow-list { list-style: none; padding: 0; }
.flow-list li { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; }
.flow-list li + li { border-top: 1px solid var(--line); }
.flow-list h3, .privacy-list dt { font-size: 1.04rem; font-weight: 680; }
.flow-list p { color: var(--muted); font-size: .94rem; }
.flow-symbol { width: 1.25rem; height: 1.25rem; border: 1px solid var(--green); flex-shrink: 0; }
.flow-signal { border-style: dashed; }
.flow-review { border-radius: 50%; box-shadow: inset 0 0 0 .27rem var(--stone), inset 0 0 0 .36rem var(--green); }
.flow-access { border-radius: .55rem .55rem .12rem .12rem; border-bottom-width: 4px; }
.flow-caption { color: var(--muted); margin: .65rem 0 .25rem; font-size: .875rem; }

.applications { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.application { display: flex; flex-direction: column; gap: .75rem; padding: 1.8rem clamp(1.2rem, 3.3vw, 2.75rem); }
.application:first-child { padding-left: 0; }
.application:last-child { padding-right: 0; }
.application + .application { border-left: 1px solid var(--line); }
.application h3 { font-size: 1.38rem; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.application p { color: var(--muted); flex: 1; }
.application a { align-self: flex-start; font-size: .925rem; font-weight: 650; }
.application a:hover { color: var(--green-dark); }

.privacy { background: var(--night); color: #f7f4eb; }
.privacy .eyebrow { color: var(--sage-tint); }
.privacy .section-heading > p:not(.eyebrow), .privacy-list dd { color: #d8dbce; }
.privacy-list > div { padding: 1rem 0 1.15rem; border-top: 1px solid var(--green); }
.privacy-list dt { margin-bottom: .24rem; }

.contact-form { min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.form-note { color: var(--muted); font-size: .925rem; border-left: 2px solid var(--green); padding-left: .8rem; margin-bottom: 1.23rem; }
.contact-form label { display: flex; flex-direction: column; gap: .37rem; margin-bottom: .95rem; font-weight: 650; font-size: .925rem; }
.contact-form :is(input, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 2.92rem;
  padding: .55rem .65rem;
  border: 1px solid #82877b;
  border-radius: 2px;
  background: #fcfaf5;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
}
.contact-form textarea { resize: vertical; }
.form-feedback:not(:empty) { margin-top: .65rem; font-size: .925rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; padding-block: 1.5rem; }
.site-footer small { color: var(--muted); font-size: .8125rem; }

@media (max-width: 50rem) {
  :root { --header-height: 3.8rem; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .9rem; }
  nav a { padding: .57rem 0; }
  nav .nav-contact { margin-top: .3rem; }
  .hero-image { object-position: 58% 50%; }
  .hero::after { background: linear-gradient(90deg, #141711b0, #14171149), linear-gradient(0deg, #141711ac, transparent); }
  .hero h1 { max-width: 15ch; }
  .demo, .technology-grid, .privacy-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .application { padding-inline: 1rem; }
}

@media (max-width: 36rem) {
  .section-heading-split, .applications, .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-top: 5.5rem; }
  .actions { align-items: flex-start; flex-direction: column; }
  .application { padding: 1.3rem 0; }
  .application + .application { border-left: 0; border-top: 1px solid var(--line); }
  .form-row { gap: 0; }
  .footer-links { flex-wrap: wrap; gap: .45rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: -.5rem .85rem;
}
.case-buttons button {
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
}
.case-buttons button:hover { background: var(--stone); }
.case-buttons button[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.demo-caption { margin-top: .75rem; color: var(--muted); font-size: .875rem; }

.demo-image img { pointer-events: none; user-select: none; }
.demo-image.is-drawing { cursor: crosshair; touch-action: none; }
.demo-image:focus-visible { outline-offset: -4px; }
.scene-label { z-index: 1; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.camera-time {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}
.camera-time input {
  max-width: 8.25rem;
  min-height: 2.15rem;
  padding: .18rem .45rem;
  border: 1px solid #e3e9d269;
  border-radius: 2px;
  background: #242821e8;
  color: #faf7ee;
  color-scheme: dark;
  font: 650 .875rem / 1.2 ui-monospace, monospace;
}
.scene-zone, .event-region { position: absolute; pointer-events: none; }
.scene-zone { inset: 0; width: 100%; height: 100%; }
.event-region { border: 2px solid #f2f3e1; box-shadow: 0 0 0 1px #292d26b8; }
.demo[data-alert="true"] .event-region { border-color: #e9d592; }
.draw-cursor {
  position: absolute;
  width: .8rem;
  height: .8rem;
  border: 2px solid #faf7ee;
  border-radius: 50%;
  background: #292d26;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.demo-side { display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; padding: clamp(1.1rem, 3.3vw, 2.8rem); }
.demo-summary h3 { font-size: clamp(1.45rem, 2.65vw, 2rem); font-weight: 560; line-height: 1.15; letter-spacing: -.035em; }
.demo[data-alert="true"] .demo-summary h3 { color: #e9d592; }
.demo-summary p { margin-top: .4rem; color: #e2e4d8; font-size: .925rem; }
.demo-controls { border-top: 1px solid #6d7465; padding-top: .9rem; }
.zone-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.draw-button, .clear-zone {
  min-height: 2.55rem;
  padding: .3rem .6rem;
  border: 1px solid var(--green-light);
  border-radius: 2px;
  background: transparent;
  color: #f7f5ec;
  font-size: .875rem;
}
.draw-button:hover { background: var(--sage-tint); color: var(--ink); }
.clear-zone { padding-inline: 0; border-color: transparent; text-decoration: underline; text-underline-offset: .2rem; }
.clear-zone:hover { color: var(--sage-tint); }
.draw-help { margin-top: .45rem; color: #d8dbce; font-size: .875rem; }
.alert-hours {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  min-width: 0;
  margin: .9rem 0 0;
  padding: .25rem 0 0;
  border: 0;
}
.alert-hours legend { padding: 0; color: var(--sage-tint); font-size: .875rem; font-weight: 650; }
.alert-hours label { display: grid; gap: .18rem; color: #e2e4d8; font-size: .875rem; }
.alert-hours input { width: 7.6rem; max-width: 100%; padding: .27rem .4rem; border: 1px solid var(--green-light); border-radius: 2px; background: #242821; color: #f7f5ec; color-scheme: dark; }

@media (max-width: 36rem) {
  .camera-time { top: .65rem; right: .65rem; }
  .scene-label { top: .65rem; left: .65rem; }
}

.header-inner nav { gap: clamp(1rem, 2.3vw, 2.2rem); }
.application-links { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.application-links a + a { color: var(--muted); font-weight: 500; }
.installation { background: var(--stone); }
.installation-grid, .faq {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2rem clamp(2rem, 7vw, 7rem);
}
.installation-contact { margin-top: 1.35rem; }
.installation-list > div, .faq-list details { border-top: 1px solid var(--line); }
.installation-list > div { padding: 1rem 0; }
.installation-list dt { font-size: 1.05rem; font-weight: 680; }
.installation-list dd { margin-top: .18rem; color: var(--muted); }
.faq { padding-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: .95rem 2rem .95rem 0; cursor: pointer; font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: .3rem;
  top: 1.4rem;
  width: .7rem;
  height: .7rem;
  background: linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat,
              linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat;
}
.faq-list details[open] summary::after { background-size: 100% 1px, 0 0; }
.faq-list details p { max-width: 60ch; padding: 0 1rem 1rem 0; color: var(--muted); }

@media (max-width: 50rem) {
  .header-inner nav { gap: 0; }
  .installation-grid, .faq { grid-template-columns: minmax(0, 1fr); }
}
