:root {
  --surface-raised: rgb(255 255 255 / 92%);
  --surface-soft: rgb(251 250 247 / 86%);
  --header-bg: rgb(255 255 255 / 90%);
  --toggle-track: #e8e4dc;
  --shadow-card: 0 1px 0 rgb(18 17 15 / 8%), 0 10px 24px rgb(18 17 15 / 7%), 0 26px 56px rgb(18 17 15 / 4%);
  --shadow-card-hover: 0 2px 0 rgb(18 17 15 / 8%), 0 16px 32px rgb(18 17 15 / 10%), 0 36px 72px rgb(18 17 15 / 7%);
  --shadow-panel: 0 1px 0 rgb(18 17 15 / 10%), 0 18px 40px rgb(18 17 15 / 11%), 0 44px 88px rgb(18 17 15 / 7%);
  --shadow-header: 0 8px 28px rgb(18 17 15 / 9%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  --surface-raised: rgb(23 22 19 / 94%);
  --surface-soft: rgb(17 16 14 / 88%);
  --header-bg: rgb(17 16 14 / 90%);
  --toggle-track: #2f2c26;
  --shadow-card: 0 0 0 1px rgb(243 239 230 / 4%), 0 16px 34px rgb(0 0 0 / 38%), 0 0 28px rgb(199 50 32 / 4%);
  --shadow-card-hover: 0 0 0 1px rgb(243 239 230 / 8%), 0 22px 46px rgb(0 0 0 / 52%), 0 0 38px rgb(199 50 32 / 8%);
  --shadow-panel: 0 0 0 1px rgb(243 239 230 / 7%), 0 24px 58px rgb(0 0 0 / 56%), 0 0 46px rgb(199 50 32 / 7%);
  --shadow-header: 0 12px 36px rgb(0 0 0 / 48%), 0 1px 0 rgb(243 239 230 / 5%);
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  z-index: 190;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.025;
  mix-blend-mode: multiply;
}

html[data-theme="dark"] body::before {
  opacity: 0.035;
  mix-blend-mode: screen;
}

.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(115%);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 240ms var(--ease-out);
}

.site-header.is-condensed {
  box-shadow: var(--shadow-header);
}

.site-nav {
  transition: min-height 240ms var(--ease-out), padding 240ms var(--ease-out);
}

.site-header.is-condensed .site-nav {
  min-height: 56px;
}

.brand-link,
.brand-link__mark {
  transition: color 200ms ease, transform 240ms var(--ease-out), width 240ms var(--ease-out), height 240ms var(--ease-out);
}

.site-header.is-condensed .brand-link__mark {
  width: 25px;
  height: 25px;
}

.site-header.is-condensed .brand-link {
  transform: translateY(-1px);
}

.mobile-nav__panel {
  box-shadow: var(--shadow-panel);
  transition: top 240ms var(--ease-out), background-color 300ms ease, box-shadow 300ms ease;
}

.site-header.is-condensed .mobile-nav__panel {
  top: 57px;
}

.theme-toggle {
  position: relative;
  width: 78px;
  min-width: 78px;
  min-height: 44px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--raised);
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}

.theme-toggle__track {
  position: relative;
  display: grid;
  width: 68px;
  height: 34px;
  grid-template-columns: repeat(2, 34px);
  align-items: center;
  background: var(--toggle-track);
}

.theme-toggle__thumb {
  position: absolute;
  z-index: 0;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  background: var(--raised);
  box-shadow: 0 2px 8px rgb(18 17 15 / 18%);
  transform: translateX(0);
}

html[data-theme-ui="ready"] .theme-toggle__thumb {
  transition: transform 300ms var(--ease-out), background-color 300ms ease, box-shadow 300ms ease;
}

html[data-theme="dark"] .theme-toggle__thumb {
  box-shadow: 0 2px 10px rgb(0 0 0 / 55%), 0 0 12px rgb(199 50 32 / 8%);
  transform: translateX(34px);
}

.theme-toggle__icon {
  z-index: 1;
  width: 18px;
  height: 18px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
  transition: color 250ms ease, transform 300ms var(--ease-out);
}

.theme-toggle__icon--sun {
  color: var(--ink);
}

.theme-toggle__icon--moon {
  color: var(--muted);
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  color: var(--muted);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  color: var(--ink);
}

.theme-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.site-field {
  overflow: clip;
}

.paper-grid {
  inset: -36px;
  width: calc(100% + 72px);
  height: calc(100% + 72px);
  opacity: 0.72;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

html[data-theme="dark"] .paper-grid {
  opacity: 0.64;
}

html[data-motion="ready"] [data-parallax]:not(.paper-grid) {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.facility-panel__media,
.proof li,
.service-row {
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.facility-panel__media {
  box-shadow: var(--shadow-panel);
}

.facility-panel {
  position: relative;
  z-index: 2;
}

.facility-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--red);
  opacity: 0.42;
  transition: transform 300ms var(--ease-out), opacity 300ms ease;
}

.proof__list {
  gap: var(--space-3);
  padding-block: var(--space-10);
}

.proof li,
.proof li:first-child,
.proof li:last-child {
  padding: var(--space-8);
  border: 1px solid var(--line);
}

.service-list {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink);
}

.service-row,
.service-row:last-child {
  padding: var(--space-8);
  border: 1px solid var(--line);
}

.diagram-signals,
.registration-slash {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 320ms var(--ease-out);
}

.nav-link,
.footer-column a,
.brand-link {
  position: relative;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  text-decoration: none;
}

.nav-link::after,
.footer-column a::after,
.brand-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 240ms var(--ease-out);
}

.brand-link::after {
  left: 44px;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobile-nav summary {
  transition: color 180ms ease, background-color 180ms ease, box-shadow 220ms ease, transform 160ms var(--ease-out);
}

.reveal-item {
  transition: opacity 300ms ease var(--reveal-delay, 0ms), transform 380ms var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal-item.is-pending {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html[data-motion="ready"] .red-rule {
  animation: rule-draw 400ms var(--ease-out) 90ms both;
}

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 300ms;
  animation-timing-function: ease;
}

::view-transition-old(root) {
  animation-name: theme-fade-out;
}

::view-transition-new(root) {
  animation-name: theme-fade-in;
}

@keyframes theme-fade-out {
  to { opacity: 0; }
}

@keyframes theme-fade-in {
  from { opacity: 0; }
}

html.theme-fallback-transition body,
html.theme-fallback-transition .site-header,
html.theme-fallback-transition .facility-panel__media,
html.theme-fallback-transition .proof li,
html.theme-fallback-transition .service-row,
html.theme-fallback-transition .theme-toggle,
html.theme-fallback-transition .theme-toggle__track,
html.theme-fallback-transition .theme-toggle__thumb {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

@media (hover: hover) {
  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .footer-column a:hover::after,
  .footer-column a:focus-visible::after,
  .brand-link:hover::after,
  .brand-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .brand-link:hover .brand-link__mark {
    transform: translateY(-2px) rotate(-3deg);
  }

  .theme-toggle:hover {
    background: var(--raised);
    color: var(--ink);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }

  .theme-toggle:hover .theme-toggle__icon--sun {
    transform: rotate(18deg);
  }

  .facility-panel:hover .facility-panel__media,
  .proof li:hover,
  .service-row:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  .facility-panel:hover::before {
    opacity: 0.7;
    transform: translate(4px, 4px);
  }

  .facility-panel:hover .diagram-signals {
    transform: scale(1.08);
  }

  .facility-panel:hover .registration-slash {
    transform: rotate(17deg) translateY(-5px);
  }

  .mobile-nav summary:hover {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .proof__list {
    gap: var(--space-3);
    padding-block: var(--space-8);
  }

  .proof li,
  .proof li:first-child,
  .proof li:last-child {
    padding: var(--space-6);
    border: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .theme-toggle {
    width: 72px;
    min-width: 72px;
    padding-inline: 3px;
  }

  .theme-toggle__track {
    width: 64px;
    grid-template-columns: repeat(2, 32px);
  }

  .theme-toggle__thumb {
    width: 28px;
  }

  html[data-theme="dark"] .theme-toggle__thumb {
    transform: translateX(32px);
  }

  .service-row,
  .service-row:last-child {
    padding: var(--space-5) var(--space-4);
  }

  .facility-panel::before {
    inset: 9px -7px -9px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html *,
  html *::before,
  html *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item,
  .reveal-item.is-pending,
  .reveal-item.is-visible,
  html[data-motion="ready"] [data-parallax] {
    opacity: 1;
    transform: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
