html.has-tectonic-page-scroll {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  background: #000;
  scrollbar-width: none;
}

html.has-tectonic-page-scroll::-webkit-scrollbar {
  display: none;
}

/* The next-page layer is authored inside the middle 100svh app section.
   Freeze the outer 300svh document only while that layer is active so its
   viewport geometry cannot inherit the upper/lower black scroll regions.
   The right-hand detail column remains its own native scroll container. */
html.has-tectonic-page-scroll.is-tectonic-next-page-scroll-locked {
  overflow-y: hidden;
}

/* Loading is a fixed viewport state, not part of the authored 300svh page.
   The root class exists before module evaluation, so wheel/touch input cannot
   move the document even during the first asset request. */
html.has-tectonic-page-scroll.is-tectonic-interaction-booting,
html.has-tectonic-page-scroll.is-tectonic-interaction-loading {
  overflow-y: hidden;
  touch-action: none;
}

html.has-tectonic-page-scroll body {
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #000;
}

html.has-tectonic-page-scroll #app {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

html.has-tectonic-page-scroll .tectonic-terminal-black-screen {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

html.has-tectonic-page-scroll.is-tectonic-contact-page,
html.has-tectonic-page-scroll.is-tectonic-contact-page body {
  overflow: hidden;
  overscroll-behavior: none;
}

.tectonic-contact-page {
  position: fixed;
  inset: 0;
  z-index: 15000;
  visibility: hidden;
  pointer-events: none;
  background: #000;
}

html.is-tectonic-contact-page .tectonic-contact-page {
  visibility: visible;
  pointer-events: auto;
}

html.has-tectonic-page-scroll .tectonic-contact-strip {
  --contact-red: #df171f;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: clamp(210px, 24svh, 300px);
  padding: clamp(20px, 2.1vw, 44px) clamp(28px, 3.3vw, 70px);
  overflow: hidden;
  color: #fff;
  background: var(--contact-red);
  font-family: var(--tectonic-ui-sans, "Arial", sans-serif);
}

html.has-tectonic-page-scroll .tectonic-contact-strip a {
  color: inherit;
  text-decoration: none;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: clamp(10px, 0.8vw, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-family: var(--tectonic-ui-small-en, "Bahnschrift", "Arial", sans-serif);
  font-size: clamp(9px, 0.58vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels a {
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  font-family: var(--tectonic-ui-small-en, "Bahnschrift", "Arial", sans-serif);
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels > div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.1vw, 24px);
  min-width: 0;
  padding: clamp(18px, 1.5vw, 32px) clamp(12px, 1.2vw, 28px) 0 0;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels > div + div {
  padding-left: clamp(12px, 1.2vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.46);
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels dt,
html.has-tectonic-page-scroll .tectonic-contact-strip__channels dd {
  margin: 0;
  min-width: 0;
  font-size: clamp(13px, 0.9vw, 22px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.15;
  white-space: nowrap;
}

html.has-tectonic-page-scroll .tectonic-contact-strip__channels dt {
  font-size: clamp(9px, 0.58vw, 14px);
  letter-spacing: 0.12em;
  opacity: 0.66;
}

@media (max-width: 820px) {
  html.has-tectonic-page-scroll .tectonic-contact-strip {
    height: clamp(390px, 54svh, 520px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  html.has-tectonic-page-scroll .tectonic-contact-strip__channels {
    grid-template-columns: 1fr 1fr;
  }

  html.has-tectonic-page-scroll .tectonic-contact-strip__channels > div,
  html.has-tectonic-page-scroll .tectonic-contact-strip__channels > div + div {
    padding: 14px 12px 0 0;
    border-left: 0;
  }
}

html.is-tectonic-page-scroll-preparing body {
  visibility: hidden;
}
