:root {
  --o-bg: #000000;
  --o-fg: #ffffff;
  --o-muted: #8a8a8a;
  --o-line: #2a2a2a;
  --o-line-strong: #ffffff;
  --o-surface: #0a0a0a;
  --o-radius: 0;
  --o-font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --o-font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --o-max: 1120px;
  --o-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 3.65rem;
  --pin-progress: 0;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scroll-snap-type: y proximity;
}

html.is-section-scrolling,
html.is-anchor-scrolling {
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-height: 100%;
  isolation: isolate;
  background: var(--o-bg);
  color: var(--o-fg);
  font-family: var(--o-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Atmosphere: Vanta NET, muted to site palette */
.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0 !important;
  overflow: hidden;
  background: var(--o-bg);
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 120% 110% at 50% 48%, #000 18%, transparent 86%);
}

.page-grid canvas {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  pointer-events: none;
}

/* Let mouse reach the canvas; re-enable on interactive UI */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
}

.site-header {
  pointer-events: auto;
}

.site-header a,
.site-header button,
main a,
main button,
main input,
main textarea,
main select,
main label,
.site-footer a,
.site-footer button {
  pointer-events: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--o-pad);
  border-bottom: 1px solid var(--o-line);
  background: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--o-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-numeric: slashed-zero;
  font-feature-settings: "zero" 1;
}

.brand-logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav--admin {
  position: static;
  transform: none;
  margin-left: auto;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--o-radius);
  transition: border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--o-line-strong);
  outline: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.header-login {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
}

.header-login:hover,
.header-login:focus-visible {
  border-color: var(--o-line-strong);
  outline: none;
}

.nav-login-mobile {
  display: none !important;
}

.nav-toggle {
  display: none !important;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--o-fg);
  background: transparent;
  color: var(--o-fg);
  font-family: var(--o-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-picker {
  position: relative;
}

.lang-picker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--o-line);
  background: transparent;
  color: var(--o-fg);
  font-family: var(--o-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-picker-toggle:hover,
.lang-picker-toggle:focus-visible,
.lang-picker-toggle[aria-expanded="true"] {
  border-color: var(--o-fg);
  outline: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  min-width: 13.5rem;
  max-height: min(16rem, 60vh);
  overflow: auto;
  border: 1px solid var(--o-line);
  background: var(--o-bg);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: default;
}

.lang-menu li[aria-selected="true"] {
  color: var(--o-fg);
}

.lang-menu li[aria-disabled="true"] {
  color: var(--o-muted);
}

.lang-menu li span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Buttons — thin white outline on hover */
.btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--o-fg);
  border-radius: var(--o-radius);
  background: var(--o-fg);
  color: var(--o-bg);
  font-family: var(--o-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: outline 160ms ease, outline-offset 160ms ease, background 160ms ease, color 160ms ease;
  outline: 1px solid transparent;
  outline-offset: 0;
}

.btn-rect:hover,
.btn-rect:focus-visible {
  outline: 1px solid var(--o-fg);
  outline-offset: 3px;
}

.btn-rect--ghost {
  background: transparent;
  color: var(--o-fg);
}

.btn-rect--ghost:hover,
.btn-rect--ghost:focus-visible {
  background: transparent;
}

/* Full-viewport pin: each section holds while the next slides over it */
.pin-section {
  --pin-progress: 0;
  position: relative;
  height: calc((100svh - var(--header-h)) * 2);
  min-height: calc((100svh - var(--header-h)) * 2);
  display: block;
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border: none;
  background: transparent;
  scroll-margin-top: 0;
}

.pin-snap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100svh - var(--header-h));
  pointer-events: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.pin-section:nth-child(1) { z-index: 1; }
.pin-section:nth-child(2) { z-index: 2; }
.pin-section:nth-child(3) { z-index: 3; }
.pin-section:nth-child(4) { z-index: 4; }

main > .pin-section + .pin-section {
  margin-top: calc(var(--header-h) - 100svh);
}

.pin-section:last-child,
.pin-section.is-overflowing {
  height: auto;
  min-height: calc(100svh - var(--header-h));
}

.pin-section.is-overflowing:not(:last-child) {
  padding-bottom: calc(100svh - var(--header-h));
}

.pin-stage {
  position: sticky;
  top: var(--header-h);
  z-index: 0;
  height: calc(100svh - var(--header-h));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  pointer-events: auto;
  opacity: calc(1 - var(--pin-progress));
  transform: translateY(calc(var(--pin-progress) * -2.75rem)) scale(calc(1 - var(--pin-progress) * 0.08));
  transform-origin: 50% 40%;
  will-change: opacity, transform;
}

.pin-section.is-overflowing .pin-stage,
.pin-section:last-child .pin-stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: calc(100svh - var(--header-h));
  overflow: visible;
}

.pin-section:last-child .pin-stage {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.section.pin-section .pin-stage {
  display: flex;
  flex-direction: column;
  padding: clamp(1.44rem, 3.75vh, 2.8rem) clamp(2.25rem, 8vw, 6rem) 4.4rem;
  box-sizing: border-box;
  background: transparent;
}

.section.pin-section .pin-stage > * {
  flex: 0 0 auto;
  min-height: min-content;
}

.section-atlas.pin-section .pin-stage {
  justify-content: center;
}

.section-atlas.pin-section .pin-stage > * {
  flex: 0 1 auto;
  width: 100%;
  height: 80%;
  min-height: 0;
}

.section-atlas.pin-section.is-overflowing .pin-stage > * {
  flex: 0 0 auto;
  height: auto;
  min-height: min-content;
}

.hero {
  display: block;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 0 clamp(1.15rem, 3vw, 2rem) 2.75rem;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--o-bg));
  opacity: var(--pin-progress);
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--o-muted);
  opacity: calc(0.7 * (1 - min(1, var(--pin-progress) * 2.4)));
  pointer-events: none;
}

.hero-scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 1.35rem;
  margin: 0.4rem auto 0;
  background: var(--o-muted);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-identity {
  display: contents;
}

.hero-globe {
  position: relative;
  width: min(100%, 40.8rem, 81.6svh);
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  align-self: center;
  pointer-events: none;
  z-index: 0;
}

.hero-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0 0 1.5rem;
  font-family: var(--o-font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: slashed-zero;
  font-feature-settings: "zero" 1;
  opacity: 0;
  transform: translateY(18px);
  animation: brand-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms forwards;
}

.hero-logo {
  width: clamp(5.5rem, 16vw, 11rem);
  height: clamp(5.5rem, 16vw, 11rem);
  flex-shrink: 0;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--o-font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  animation: brand-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 220ms forwards;
}

.hero-lede {
  margin: 0 0 1.5rem;
  max-width: 46rem;
  color: var(--o-muted);
  font-weight: 300;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(12px);
  animation: brand-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 340ms forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: brand-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 460ms forwards;
}

@keyframes brand-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main#top {
  scroll-margin-top: var(--header-h);
}
.section {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vh, 4rem) var(--o-pad);
  width: min(100%, var(--o-max));
  max-width: var(--o-max);
  margin-inline: auto;
  border-bottom: 1px solid var(--o-line);
  background: transparent;
  scroll-margin-top: var(--header-h);
}

.section.pin-section {
  padding: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-bottom: none;
  scroll-margin-top: 0;
}

.section-atlas {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: left;
  box-shadow: none;
}

.section-label {
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--o-muted);
  font-weight: 500;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--o-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-lede {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--o-muted);
  font-weight: 300;
}

.atlas-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.95fr);
  gap: 1.8rem clamp(2rem, 4.8vw, 4rem);
  align-items: stretch;
}

.atlas-copy {
  display: flex;
  flex-direction: column;
}

.atlas-copy-head {
  flex-shrink: 0;
}

.atlas-copy .section-lede,
.atlas-copy .section-prose {
  max-width: none;
  margin-inline: 0;
}

.atlas-copy .section-title {
  margin-bottom: 0.44rem;
}

.atlas-copy .section-lede {
  margin-bottom: 0;
}

.atlas-copy-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0.92rem;
}

.atlas-sentences {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
}

.atlas-sentences p {
  margin: 0;
  color: var(--o-muted);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.45;
}

.atlas-objective {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0.84rem;
  border-top: 1px solid var(--o-line);
  color: var(--o-fg);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.5;
}

.section-about,
.section-connect {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.section-lede--compact {
  margin-bottom: 1.25rem;
}

.section-prose {
  max-width: 42rem;
  margin: 0 0 2rem;
}

.section-prose--full {
  max-width: none;
}

.section-prose p {
  margin: 0 0 1.15rem;
  color: var(--o-muted);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-prose p:last-child {
  margin-bottom: 0;
}

.section-emphasis {
  color: var(--o-fg) !important;
  font-weight: 400 !important;
}

.pull-quote {
  margin: 0 0 2rem;
  padding: 0;
  border: none;
  max-width: 36rem;
}

.pull-quote p {
  margin: 0;
  font-family: var(--o-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--o-fg);
}

.atlas-capabilities {
  margin-bottom: 2.5rem;
}

/* Atlas product preview */
.atlas-preview-block {
  margin: 0;
  max-width: none;
}

.atlas-map-heading {
  margin: 0 0 0.68rem;
  font-family: var(--o-font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.atlas-preview-layout {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(12rem, 0.9fr);
  max-width: none;
  border: 1px solid var(--o-line);
  margin-bottom: 0.92rem;
  background: var(--o-surface);
}

.atlas-frame {
  margin: 0;
  border: none;
  border-right: 1px solid var(--o-line);
  background: var(--o-surface);
}

.atlas-canvas {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #050505 0%, #000 100%);
}

.atlas-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.atlas-stages {
  display: flex;
  flex-direction: column;
}

.atlas-stages .approach-cell {
  flex: 1;
  border-right: none;
  border-bottom: 1px solid var(--o-line);
  padding: 1.2rem 1rem;
}

.atlas-stages .approach-cell h3 {
  margin-bottom: 0.6rem;
}

.atlas-stages .approach-cell:last-child {
  border-bottom: none;
}

/* Approach — rectangles, not cards */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--o-line);
}

.approach-cell {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--o-line);
  background: transparent;
}

.approach-cell:last-child {
  border-right: none;
}

.approach-cell h3 {
  margin: 0 0 0.75rem;
  font-family: var(--o-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approach-cell p {
  margin: 0;
  color: var(--o-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* Team list */
.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--o-line);
}

.team-list li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--o-line);
}

.team-list li:last-child {
  border-bottom: none;
}

.team-role {
  font-family: var(--o-font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.team-desc {
  color: var(--o-muted);
  font-weight: 300;
}

.team-close {
  margin: 1.25rem 0 0;
  color: var(--o-muted);
  font-weight: 300;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem clamp(2.5rem, 6vw, 5rem);
  height: auto;
  min-height: min-content;
  align-items: start;
}

.split-col .section-lede {
  max-width: none;
}

.split-col .section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.section-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-user .section-lede {
  text-align: center;
}

.user-panel {
  width: min(100%, 28rem);
  text-align: left;
}

.user-mode-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.25rem;
  border: 1px solid var(--o-line);
}

.user-mode-tabs label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--o-muted);
  border: none;
}

#mode-login:checked ~ .user-mode-tabs label[for="mode-login"],
#mode-register:checked ~ .user-mode-tabs label[for="mode-register"] {
  color: var(--o-fg);
  background: var(--o-surface);
}

.user-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

#mode-login:checked ~ .user-form-login,
#mode-register:checked ~ .user-form-register {
  display: flex;
}

.user-form .btn-rect {
  align-self: flex-start;
}

.user-profile {
  margin: 0 0 1.5rem;
  text-align: left;
}

.user-profile div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--o-line);
}

.user-profile dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--o-muted);
  font-weight: 500;
}

.user-profile dd {
  margin: 0;
  font-weight: 400;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-form--compact textarea {
  min-height: 96px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-span-2 {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--o-muted);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--o-line);
  border-radius: var(--o-radius);
  background: var(--o-bg);
  color: var(--o-fg);
  font-family: var(--o-font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: outline 160ms ease, outline-offset 160ms ease, border-color 160ms ease;
}

input:hover,
textarea:hover,
select:hover,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--o-fg);
  outline: 1px solid var(--o-fg);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--o-line);
  font-size: 0.9rem;
}

.form-status--ok {
  border-color: var(--o-fg);
}

.form-status--err {
  border-color: var(--o-muted);
  color: var(--o-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem var(--o-pad) 1.15rem;
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  color: var(--o-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.site-footer.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pin-section[data-reveal] {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .site-nav {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem var(--o-pad) 1rem;
    border-bottom: 1px solid var(--o-line);
    background: rgba(0, 0, 0, 0.94);
  }

  .site-nav.is-open {
    display: flex !important;
  }

  .site-nav--admin {
    display: flex !important;
    position: static;
    border: none;
    padding: 0;
    background: transparent;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .hero-headline {
    white-space: normal;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 0.5rem;
    padding-bottom: 3rem;
  }

  .hero-brand {
    font-size: clamp(2.35rem, 11vw, 4.75rem);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-logo {
    width: clamp(3.4rem, 12vw, 6.25rem);
    height: clamp(3.4rem, 12vw, 6.25rem);
  }

  .hero-lede {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
  }

  .hero-copy {
    padding-right: min(38vw, 12rem);
  }

  .hero-globe {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    bottom: auto;
    width: min(50.4vw, 19.2rem);
    max-height: none;
    justify-self: auto;
    transform: translateY(-50%);
    opacity: 0.88;
  }

  .inbox-grid {
    grid-template-columns: 1fr;
  }

  .inbox-box {
    border-right: none;
    border-bottom: 1px solid var(--o-line);
  }

  .inbox-box:last-child {
    border-bottom: none;
  }
}

@media (max-width: 800px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-cell {
    border-right: none;
    border-bottom: 1px solid var(--o-line);
  }

  .approach-cell:last-child {
    border-bottom: none;
  }

  .atlas-split {
    grid-template-columns: 1fr;
  }

  .section-atlas.pin-section .pin-stage > * {
    flex: 0 0 auto;
    min-height: min-content;
    height: auto;
  }

  .atlas-copy-body,
  .atlas-sentences {
    flex: 0 0 auto;
  }

  .atlas-sentences {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .atlas-objective {
    margin-top: 0.84rem;
  }

  .atlas-preview-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .atlas-preview-block {
    max-width: none;
  }

  .atlas-frame {
    border-right: none;
    border-bottom: 1px solid var(--o-line);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .team-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8.25rem, 40vw);
    grid-template-areas:
      "identity globe"
      "lede lede"
      "cta cta";
    align-items: center;
    align-content: center;
    column-gap: 0.75rem;
    row-gap: 0.55rem;
    padding: 0.7rem clamp(1rem, 4vw, 1.35rem) 3rem;
  }

  .hero-copy {
    display: contents;
    padding-right: 0;
  }

  .hero-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    grid-area: identity;
    min-width: 0;
  }

  .hero-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }

  .hero-logo {
    width: clamp(2rem, 8vw, 2.55rem);
    height: clamp(2rem, 8vw, 2.55rem);
  }

  .hero-headline {
    margin: 0;
    font-size: clamp(1.15rem, 5vw, 1.4rem);
    white-space: nowrap;
  }

  .hero-lede {
    grid-area: lede;
    margin: 0.4rem 0 0.1rem;
    font-size: 0.92rem;
  }

  .cta-row {
    grid-area: cta;
    margin-top: 0.45rem;
  }

  .hero-globe {
    grid-area: globe;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    transform: none;
    justify-self: end;
    align-self: center;
    opacity: 1;
  }

  .site-footer {
    padding: 0.85rem var(--o-pad) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .section.pin-section:last-child .pin-stage {
    padding-bottom: 5.5rem;
  }

  .user-profile div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .inbox-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    max-width: none;
    width: 100%;
  }

  .header-atlas {
    padding: 0.45rem 0.65rem;
    font-size: 0.62rem;
  }

  .header-tools {
    flex-shrink: 1;
    justify-content: flex-end;
  }

  .nav-login-mobile {
    display: block !important;
  }

  .header-login {
    display: none;
  }

  .brand-mark span {
    display: none;
  }
}

/* Auth + inbox */
.login-cube {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.login-cube canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-shell,
.inbox-shell {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 8vh, 4rem) var(--o-pad) 4rem;
  width: min(100%, var(--o-max));
  max-width: var(--o-max);
  margin-inline: auto;
}

.auth-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(1.25rem, 4vh, 3rem);
}

.auth-panel {
  max-width: 28rem;
  width: min(100%, 28rem);
  border: 1px solid var(--o-line);
  padding: 1.75rem 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.72);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form .btn-rect {
  align-self: flex-start;
}

.auth-aside {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--o-muted);
}

.auth-form + .auth-aside {
  margin-top: 1rem;
}

.auth-aside a:hover,
.auth-aside a:focus-visible {
  color: var(--o-fg);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 2.7rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.2rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--o-muted);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--o-fg);
}

.password-toggle:focus-visible {
  outline: 1px solid var(--o-fg);
  outline-offset: 2px;
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.password-toggle[aria-pressed="true"] .password-toggle__show,
.password-toggle:not([aria-pressed="true"]) .password-toggle__hide {
  display: none;
}

.flash-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.flash {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--o-line);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.flash--error {
  border-color: var(--o-muted);
  color: var(--o-muted);
}

.flash--ok {
  border-color: var(--o-fg);
}

.nav-user {
  color: var(--o-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inline-form {
  display: inline;
  margin: 0;
}

.btn-rect--compact {
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
}

.inbox-intro {
  margin-bottom: 2rem;
}

.inbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--o-line);
}

.inbox-box {
  min-width: 0;
  border-right: 1px solid var(--o-line);
  background: var(--o-surface);
}

.inbox-box:nth-child(2n) {
  border-right: none;
}

.inbox-box:nth-child(-n+2) {
  border-bottom: 1px solid var(--o-line);
}

.inbox-box:last-child {
  border-right: none;
}

.inbox-box-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--o-line);
}

.inbox-box-header h2 {
  margin: 0;
  font-family: var(--o-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inbox-count {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--o-muted);
}

.inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.inbox-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--o-line);
}

.inbox-item:last-child {
  border-bottom: none;
}

.inbox-meta {
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--o-muted);
  text-transform: uppercase;
}

.inbox-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.inbox-row span {
  color: var(--o-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.inbox-row strong,
.inbox-row a {
  font-weight: 400;
  word-break: break-word;
}

.inbox-row a:hover,
.inbox-row a:focus-visible {
  outline: 1px solid var(--o-fg);
  outline-offset: 2px;
}

.inbox-row--block {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.inbox-action {
  margin: 0;
}

.inbox-empty {
  margin: 0;
  padding: 1.5rem 1.25rem;
  color: var(--o-muted);
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .pin-section,
  .pin-section:last-child,
  .pin-section.is-overflowing:not(:last-child) {
    height: auto;
    min-height: calc(100svh - var(--header-h));
    padding-bottom: 0;
  }

  .pin-stage,
  .pin-section:last-child .pin-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: calc(100svh - var(--header-h));
    opacity: 1;
    transform: none;
    will-change: auto;
    overflow: visible;
  }

  main > .pin-section + .pin-section {
    margin-top: 0;
  }

  .pin-snap {
    scroll-snap-align: none;
  }

  .hero-scroll-hint {
    display: none;
  }

  .section-atlas {
    box-shadow: none;
  }

  .site-footer {
    position: relative;
    bottom: auto;
    z-index: 2;
    padding: 1.5rem var(--o-pad) 2.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .hero-brand,
  .hero-headline,
  .hero-lede,
  .cta-row,
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
