/* Selected engineering direction. */
body {
  --sans: var(--brand-font);
  --hero-font: var(--brand-font);
  --blue: #3f70b7;
  --blue-soft: #edf2fa;
}
body:has(dialog[open]) { overflow: hidden; }
.safety-mode { background: #1a1e23; }
.safety-mode .global-header { color: #f5f6f7; background: #1a1e23; }
.safety-mode .menu-toggle,
.safety-mode .global-tools button { background: #30353c; color: #f5f6f7; }
.safety-mode .global-menu a { color: #20252c; }
.safety-mode .global-menu a[aria-current] { color: #fff; }
.safety-product { color: #f5f6f7; background: #1a1e23; }
.hse-intro,
.hse-capabilities {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(24px, 4vw, 64px);
}
.hse-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  padding-top: 36px;
  padding-bottom: 84px;
}
.hse-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 50px;
  color: #b6bec7;
  font-size: .875rem;
  line-height: 1.5;
}
.hse-back svg { width: 12px; height: 12px; }
.hse-back span { color: #f5f6f7; }
.hse-kicker {
  display: block;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .06em;
  color: #aeb8c4;
}
.hse-intro h1 {
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.04em;
  margin: 22px 0 26px;
}
.hse-intro-copy > p {
  max-width: 520px;
  color: #bfc6cf;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}
.hse-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}
.hse-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  background: #f6f7f8;
  color: #252a31;
  border-radius: 28px;
  padding: 13px 22px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}
.hse-primary:hover { background: #dfe7f2; }
.hse-primary svg { width: 18px; height: 18px; }
.hse-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 400;
  background: none;
  color: inherit;
  padding: 6px 0;
  border-bottom: 1px solid #7d858f;
}
.hse-text-link svg { width: 16px; height: 16px; }
.hse-text-link:hover { border-color: currentColor; }
.hse-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 500px;
  border-radius: 3px;
}
.hse-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }
.hse-photo::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0b1016c9); }
.hse-photo figcaption { position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 1; display: flex; justify-content: space-between; gap: 18px; font-size: .75rem; line-height: 1.5; color: white; }
.hse-photo figcaption span:first-child { letter-spacing: .06em; font-weight: 500; }
.hse-capabilities {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  padding-top: 64px;
  padding-bottom: 96px;
  border-top: 1px solid #ffffff20;
}
.hse-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.hse-capabilities h2,
.hse-demo-heading h2 {
  font-size: clamp(1.875rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 16px 0 0;
}
.hse-module-count { font-size: .75rem; line-height: 1.5; color: #acb6c2; white-space: nowrap; padding-bottom: 4px; }
.hse-module-list { border-top: 1px solid #ffffff25; }
.hse-module {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid #ffffff25;
  padding: 24px 0;
  transition: background .18s, padding .18s;
}
.hse-module:hover { padding-inline: 10px; background: #ffffff06; }
.hse-module-number { padding-top: 4px; font-size: .75rem; line-height: 1.5; color: #9fabb8; }
.hse-module-copy strong { display: block; font-size: 1.125rem; line-height: 1.4; font-weight: 500; letter-spacing: -.015em; }
.hse-module-copy > span { display: block; margin-top: 9px; max-width: 460px; font-size: 1rem; line-height: 1.5; color: #aeb8c4; }
.hse-module-open { padding-top: 4px; color: #cdd3dc; }
.hse-module-open svg { width: 18px; height: 18px; }
.hse-benefits { padding-top: 0; }
.hse-benefits h2 { margin-bottom: 32px; }
.hse-benefits article { padding: 25px 0; border-top: 1px solid #ffffff20; }
.hse-benefits article > span { font-size: .75rem; letter-spacing: .04em; line-height: 1.5; color: #94a8bf; }
.hse-benefits h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 500; letter-spacing: -.015em; margin: 12px 0 10px; }
.hse-benefits p { font-size: 1rem; line-height: 1.6; color: #aeb8c4; margin: 0; max-width: 420px; }
.safety-demo { color: #26303d; background: #eef0f3; padding: 64px 0 25px; scroll-margin-top: 20px; outline: none; }
.hse-demo-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 0 32px 32px; max-width: 1440px; margin: auto; }
.hse-demo-heading .hse-kicker { color: #5d6d83; }
.hse-demo-heading h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-top: 12px; }
.hse-demo-heading p { max-width: 700px; font-size: 1rem; line-height: 1.6; color: #626e7f; margin: 20px 0 0; }
.hse-demo-note { font-size: .75rem; line-height: 1.6; color: #6e7b8d; text-align: right; flex-shrink: 0; }
.safety-demo .product-shell { margin-top: 0; min-height: 0; }
.safety-demo .app-sidebar-inner { min-height: 740px; }
.safety-demo .page-heading h3 { font-size: 28px; font-weight: 500; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 9px; }
.hse-demo-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 8px 32px 0; }
.hse-demo-footer > span { font-size: .875rem; line-height: 1.6; color: #69768a; }
.safety-demo .primary-button,
.safety-demo .subtle-button,
.demo-page-dialog .primary-button,
.demo-page-dialog .subtle-button { font-size: .875rem; }
.safety-demo .search-field input,
.safety-demo .table-toolbar select,
.demo-page-dialog .search-field input,
.demo-page-dialog .table-toolbar select { font-size: .875rem; min-height: 40px; }
.safety-demo td,
.demo-page-dialog td { font-size: .875rem; }
.safety-demo .status,
.demo-page-dialog .status { font-size: .875rem; }

/* All detail surfaces open in the center of the viewport. */
.record-dialog,
.utility-dialog,
.demo-page-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100svh - 48px);
  max-width: calc(100% - 48px);
  border: 1px solid #dce1e9;
  border-radius: 14px;
  overflow: auto;
  background: #fff;
  color: #283342;
  box-shadow: 0 28px 120px #080e2840;
  overscroll-behavior: contain;
}
.record-dialog { width: 760px; padding: 0; }
.utility-dialog { width: 600px; padding: 38px 36px; }
.demo-page-dialog { width: 1320px; padding: 0; }
.record-dialog::backdrop,
.utility-dialog::backdrop,
.demo-page-dialog::backdrop { background: #0c1421b8; backdrop-filter: blur(7px); }
.record-dialog[open],
.utility-dialog[open],
.demo-page-dialog[open] { animation: center-modal-enter .18s ease-out; }
@keyframes center-modal-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.record-header,
.demo-page-header { position: sticky; top: 0; z-index: 2; background: #fff; }
.record-header { padding: 25px 30px; }
.record-header h2 { font-size: 28px; }
.record-header button,
.dialog-close,
.demo-page-close { width: 40px; height: 40px; flex-shrink: 0; }
.record-form-body { padding: 28px 30px; gap: 24px; }
.record-form-body > label,
.utility-dialog label { font-size: .875rem; color: #5d6b7e; }
.record-form-body input:not([type='checkbox']),
.record-form-body select,
.utility-dialog input,
.utility-dialog textarea,
.utility-dialog select { font-size: 1rem; color: #35465c; }
.record-checklist label { font-size: .875rem; color: #627086; line-height: 1.5; }
.record-checklist input { width: 18px; height: 18px; flex-shrink: 0; }
.record-note { color: #6f7e93; }
.record-form-footer { position: sticky; bottom: 0; background: #fff; padding: 18px 30px; }
.record-form-footer button { font-size: .875rem; }
.demo-page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 25px 30px; border-bottom: 1px solid #e4e8ef; }
.demo-page-header h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; outline: none; }
.demo-page-close { display: grid; place-items: center; border-radius: 50%; color: #788699; background: #f0f3f7; }
.demo-page-content { padding: 25px 30px 16px; }
.demo-page-intro { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-bottom: 26px; }
.demo-page-intro > p { max-width: 680px; font-size: 1rem; line-height: 1.6; color: #748093; margin: 0; }
.demo-page-content .analytics-grid { margin-top: 0; }
.demo-page-content .table-panel + .analytics-grid { margin-top: 25px; }
.demo-page-note { font-size: .75rem; line-height: 1.6; color: #7c899b; margin: 22px 0 0; }

@media (max-width: 1199px) {
  .hse-intro { gap: 32px; padding-bottom: 60px; }
  .hse-intro h1 { font-size: 3.25rem; }
  .hse-back { margin-bottom: 36px; }
  .hse-photo { min-height: 460px; }
  .hse-capabilities { gap: 40px; grid-template-columns: 1.3fr 1fr; }
  .hse-section-heading { display: block; }
  .hse-module-count { display: inline-block; margin-top: 12px; }
  .hse-demo-heading { align-items: start; }
  .demo-page-intro { align-items: start; }
  .home-footer { bottom: 1.8rem; }
  body:not(.product-mode) .global-menu { bottom: 8.25rem; }
}
@media (max-width: 800px) {
  .hse-intro { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; padding-bottom: 48px; }
  .hse-intro h1 { font-size: clamp(2.5rem, 8vw, 3.75rem); margin-top: 18px; }
  .hse-intro h1 br:last-child { display: none; }
  .hse-back { margin-bottom: 30px; }
  .hse-intro-copy > p { font-size: 1rem; }
  .hse-intro-actions { margin-top: 26px; gap: 16px; }
  .hse-primary { font-size: .875rem; padding-inline: 20px; }
  .hse-photo { min-height: 0; height: 320px; }
  .hse-photo img { object-position: center 42%; }
  .hse-photo figcaption { left: 20px; right: 20px; bottom: 20px; }
  .hse-capabilities { grid-template-columns: 1fr; gap: 48px; padding-top: 44px; padding-bottom: 52px; }
  .hse-module { gap: 12px; padding-block: 20px; }
  .hse-module-copy > span { font-size: 1rem; }
  .hse-module-count { margin-top: 0; }
  .hse-section-heading { display: flex; }
  .hse-benefits h2 br { display: none; }
  .hse-benefits h2 { margin-bottom: 25px; }
  .hse-benefits article { padding: 22px 0; }
  .hse-benefits p { max-width: none; }
  .safety-demo { padding-top: 42px; }
  .hse-demo-heading { display: block; padding: 0 24px 28px; }
  .hse-demo-note { display: block; text-align: left; margin-top: 20px; }
  .safety-demo .app-sidebar-inner { min-height: 0; }
  .safety-demo .page-heading h3 { font-size: 24px; }
  .hse-demo-footer { display: block; padding: 10px 24px; }
  .hse-demo-footer > span { display: block; }
  .hse-demo-footer button { margin-top: 14px; }
  .record-dialog,
  .utility-dialog,
  .demo-page-dialog { margin: auto; max-width: calc(100% - 24px); max-height: calc(100svh - 24px); border-radius: 12px; }
  .demo-page-header { padding: 20px; align-items: start; }
  .demo-page-header h2 { font-size: 24px; }
  .demo-page-content { padding: 22px 16px 18px; }
  .demo-page-intro { display: block; }
  .demo-page-intro .page-actions { margin-top: 18px; flex-direction: row; flex-wrap: wrap; }
  .demo-page-intro .subtle-button { display: flex; }
  .record-header { padding: 22px; }
  .record-header h2 { font-size: 24px; }
  .record-form-body { padding: 24px 22px; gap: 20px; }
  .record-form-footer { padding: 18px 22px; }
  .utility-dialog { padding: 36px 24px; }
  .home-footer { bottom: 1.5rem; }
}
@media (max-width: 480px) {
  .hse-intro,
  .hse-capabilities { padding-inline: 20px; }
  .hse-intro h1 { font-size: 2.6rem; }
  .hse-intro h1 br:last-child { display: block; }
  .hse-photo { height: 265px; }
  .hse-photo figcaption { gap: 12px; }
  .hse-section-heading { display: block; }
  .hse-module-count { margin-top: 16px; }
  .hse-module { grid-template-columns: 18px minmax(0, 1fr) 20px; gap: 9px; }
  .hse-module-copy strong { font-size: 1.0625rem; }
  .record-form-body { grid-template-columns: 1fr; }
  .home-footer p { display: block; margin-bottom: 16px; }
  .home-cta { margin: 0; }
}
