:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #54645f;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #d7e2dc;
  --teal: #176a67;
  --deep-teal: #123330;
  --leaf: #5f8f4e;
  --amber: #d9982b;
  --rust: #b84f3d;
  --focus: #0d7a75;
  --shadow: 0 18px 45px rgba(18, 51, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13, 122, 117, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(215, 226, 220, 0.85);
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--deep-teal);
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-wordmark {
  display: grid;
  gap: 0.15rem;
}

.brand-name {
  font-size: 1.05rem;
}

.brand-domain {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--deep-teal);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(23, 106, 103, 0.09);
  color: var(--deep-teal);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background-color: var(--deep-teal);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.home-hero {
  background-image: url("/images/school-hallway-sensor.webp");
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(18, 51, 48, 0.58);
  content: "";
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7.5rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: #f2cf85;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.6rem;
}

.hero-copy {
  max-width: 650px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  color: #231707;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.page-main {
  background: var(--paper);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section.compact {
  padding-top: 3rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.lede {
  color: var(--muted);
  font-size: 1.18rem;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border-left: 4px solid var(--leaf);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 51, 48, 0.06);
  padding: 1rem 1.1rem;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 3rem;
  align-items: start;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 3rem;
}

.article header {
  margin-bottom: 2rem;
}

.article h2 {
  margin: 0 0 1rem;
  color: var(--deep-teal);
  font-size: 2.55rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.article p {
  margin: 0 0 1.25rem;
}

.article h3 {
  margin: 2.2rem 0 0.75rem;
  color: var(--teal);
  font-size: 1.45rem;
}

.article figure {
  margin: 2.2rem 0;
}

.article figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-note {
  position: sticky;
  top: 100px;
  border-top: 5px solid var(--amber);
  background: #eef6f1;
  border-radius: 8px;
  padding: 1.25rem;
}

.sidebar-note h3 {
  margin: 0 0 0.55rem;
  color: var(--deep-teal);
  font-size: 1.15rem;
}

.sidebar-note p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  background: var(--deep-teal);
  color: #ffffff;
}

.page-hero .section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.page-hero h1 {
  font-size: 3.4rem;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.18rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.5rem;
}

.panel h2,
.panel h3 {
  margin-top: 0;
  color: var(--deep-teal);
}

.plain-list {
  padding-left: 1.2rem;
}

.plain-list li {
  margin: 0.4rem 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--deep-teal);
  font-size: 0.93rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.85rem;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  color: var(--rust);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--deep-teal);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 0.45rem;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    padding: 6rem 0 4rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .intro-grid,
  .article-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 1.5rem;
  }

  .article h2,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  .sidebar-note {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand-domain {
    display: none;
  }

  .hero {
    min-height: 510px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 3.25rem 0;
  }
}
