@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: normal;
  font-display: swap;
  src: url("/assets/fonts/atlas/archivo-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/atlas/newsreader-variable.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atlas/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/atlas/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --aa-paper: #f7f5ef;
  --aa-paper-strong: #fffefa;
  --aa-ink: #111513;
  --aa-muted: #59615d;
  --aa-line: #c9cdc8;
  --aa-line-strong: #747c77;
  --aa-signal: #123f31;
  --aa-signal-soft: #e5eee9;
  --aa-alert: #b73b05;
  --aa-alert-soft: #fff0e8;
  --aa-good: #18794e;
  --aa-good-soft: #e8f4ed;
  --aa-header: rgba(247, 245, 239, .94);
  --aa-shadow: 0 18px 50px rgba(17, 21, 19, .08);
  --aa-max: 1480px;
  color-scheme: light;
}

/* Keep the complete document in the DOM for search and accessibility while
   letting Chromium skip layout/paint work for sections far below the fold. */
.aa-atlas main > section:not(.atlas-hero),
.aa-atlas footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

html[data-theme="dark"] {
  --aa-paper: #111513;
  --aa-paper-strong: #181d1a;
  --aa-ink: #f4f1e8;
  --aa-muted: #b4bbb6;
  --aa-line: #3d4540;
  --aa-line-strong: #8d9690;
  --aa-signal: #79c5a4;
  --aa-signal-soft: #1c352b;
  --aa-alert: #ff8a55;
  --aa-alert-soft: #43251a;
  --aa-good: #67c896;
  --aa-good-soft: #18382a;
  --aa-header: rgba(17, 21, 19, .94);
  --aa-shadow: 0 18px 50px rgba(0, 0, 0, .26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body.aa-atlas {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--aa-paper);
  color: var(--aa-ink);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.aa-atlas main {
  color: var(--aa-ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

body.aa-atlas.menu-open {
  overflow: hidden;
}

/* Preserve the incumbent desktop header: plain links stay plain, while the
   original grouped menus, language control and CTA retain their borders. */
@media (min-width: 1024px) {
  body.aa-atlas nav[data-aa-navfx-root="1"] .aa-nav-desktop > a.aa-nav-pill:not(.aa-shiny-cta),
  body.aa-atlas nav[data-aa-navfx-root="1"] .aa-nav-desktop > a.aa-nav-pill:not(.aa-shiny-cta):hover,
  body.aa-atlas nav[data-aa-navfx-root="1"] .aa-nav-desktop > a.aa-nav-pill:not(.aa-shiny-cta):focus-visible {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.aa-atlas nav[data-aa-navfx-root="1"] .aa-nav-desktop > .aa-theme-toggle.aa-nav-pill {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
  }
}

.aa-atlas main a {
  color: inherit;
}

.aa-atlas main button,
.aa-atlas main input,
.aa-atlas main select,
.aa-atlas main textarea {
  font: inherit;
}

.aa-atlas main img,
.aa-atlas main svg {
  display: block;
  max-width: 100%;
}

.aa-atlas :focus-visible {
  outline: 3px solid var(--aa-signal);
  outline-offset: 4px;
}

.atlas-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--aa-ink);
  color: var(--aa-paper) !important;
  border-radius: 6px;
  font-weight: 700;
}

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

.atlas-shell {
  width: min(calc(100% - 40px), var(--aa-max));
  margin-inline: auto;
}

.atlas-section {
  padding-block: clamp(72px, 9vw, 138px);
  border-top: 1px solid var(--aa-line);
}

.atlas-section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

.atlas-rule {
  border-top: 1px solid var(--aa-line);
}

.atlas-label,
.atlas-status,
.atlas-mono,
.atlas-kpi-label,
.atlas-case-id {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.atlas-label {
  color: var(--aa-signal);
}

/* Headings carry their own hierarchy. Operational labels inside artifacts stay. */
.atlas-case-id,
.atlas-label:has(+ .atlas-h1),
.atlas-label:has(+ .atlas-h2),
.atlas-label:has(+ .atlas-h3) {
  display: none;
}

.atlas-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aa-muted);
}

.atlas-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.atlas-status--demo {
  color: var(--aa-signal);
}

.atlas-status--alert {
  color: var(--aa-alert);
}

.atlas-status--good {
  color: var(--aa-good);
}

.atlas-display,
.atlas-h1,
.atlas-h2,
.atlas-h3 {
  margin: 0;
  color: var(--aa-ink);
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -.035em;
}

.atlas-h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6.9rem);
  font-weight: 650;
  line-height: .95;
}

.atlas-h1--wide {
  max-width: 18ch;
}

.atlas-hero.atlas-columns .atlas-h1 {
  max-width: none;
  font-size: clamp(2.75rem, 3.35vw, 4.35rem);
  line-height: .98;
}

.atlas-h1#realestate-title {
  font-size: clamp(2.75rem, 3.2vw, 4.2rem);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.atlas-h2 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 4.3vw, 4.8rem);
  font-weight: 620;
  line-height: 1.02;
}

.atlas-h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1.12;
}

.atlas-process-hero .atlas-h1,
.atlas-board-hero .atlas-h1,
.atlas-board-hero .atlas-h2,
.atlas-calculator .atlas-h3 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 95%;
  letter-spacing: -.045em;
}

.atlas-lede {
  max-width: 60ch;
  margin: 28px 0 0;
  color: var(--aa-muted);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.55;
}

.atlas-copy {
  max-width: 66ch;
  color: var(--aa-muted);
}

.atlas-copy p {
  margin: 0 0 1em;
}

.atlas-copy p:last-child {
  margin-bottom: 0;
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 34px;
}

.atlas-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--aa-ink);
  border-radius: 7px;
  background: var(--aa-ink);
  color: var(--aa-paper-strong) !important;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.atlas-button:hover {
  transform: translateY(-2px);
}

.atlas-button:active {
  transform: translateY(0) scale(.98);
}

.atlas-button--signal {
  border-color: var(--aa-signal);
  background: var(--aa-signal);
  color: var(--aa-paper-strong) !important;
}

.atlas-button--outline {
  background: transparent;
  color: var(--aa-ink) !important;
}

.atlas-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-block: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--aa-signal) !important;
  font-weight: 650;
  text-decoration: none;
}

.atlas-link::after,
.atlas-button::after {
  content: "→";
}

.atlas-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--aa-line);
  background: var(--aa-header);
  backdrop-filter: blur(16px);
}

.atlas-nav {
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 30px;
  align-items: center;
}

.atlas-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -.035em;
  text-decoration: none;
}

.atlas-brand img {
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.atlas-nav-links,
.atlas-nav-actions,
.atlas-lang-list {
  display: flex;
  align-items: center;
}

.atlas-nav-links {
  gap: clamp(22px, 3vw, 48px);
}

.atlas-nav-links a,
.atlas-lang-trigger,
.atlas-icon-button {
  border: 0;
  background: transparent;
  color: var(--aa-muted);
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}

.atlas-nav-links a:hover,
.atlas-nav-links a[aria-current="page"] {
  color: var(--aa-ink);
}

.atlas-nav-actions {
  justify-content: flex-end;
  gap: 12px;
}

.atlas-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--aa-line);
  border-radius: 7px;
  cursor: pointer;
}

.atlas-icon-button svg {
  width: 19px;
  height: 19px;
}

.atlas-lang {
  position: relative;
}

.atlas-lang-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
}

.atlas-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--aa-line);
  border-radius: 7px;
  background: var(--aa-paper-strong);
  box-shadow: var(--aa-shadow);
  list-style: none;
}

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

.atlas-lang-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--aa-muted);
  font-size: .86rem;
  text-decoration: none;
}

.atlas-lang-menu a:hover,
.atlas-lang-menu a[aria-current="true"] {
  background: var(--aa-signal-soft);
  color: var(--aa-signal);
}

.atlas-menu-button {
  display: none;
}

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

.atlas-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 18px;
  background: var(--aa-paper);
}

.atlas-mobile-menu-inner {
  display: flex;
  width: min(100%, 680px);
  min-height: 100%;
  margin-inline: auto;
  flex-direction: column;
}

.atlas-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--aa-line);
}

.atlas-mobile-links {
  display: grid;
  margin: auto 0;
}

.atlas-mobile-links a {
  padding: 17px 0;
  border-bottom: 1px solid var(--aa-line);
  font-size: clamp(1.8rem, 8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}

.atlas-mobile-foot {
  display: grid;
  gap: 20px;
  padding-top: 22px;
}

.atlas-lang-list {
  gap: 16px;
}

.atlas-lang-list a {
  color: var(--aa-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  text-decoration: none;
}

.atlas-hero {
  min-height: calc(100vh - 76px);
  padding-block: clamp(50px, 7vw, 100px) 42px;
}

.atlas-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(520px, 7fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
}

.atlas-open-dossier-hero {
  display: grid;
  width: min(calc(100% - 40px), var(--aa-max));
  grid-template-columns: minmax(460px, 5.2fr) minmax(560px, 6.8fr);
  gap: 22px;
  align-items: stretch;
}

.atlas-file-index {
  display: flex;
  padding: 22px 14px;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #153a2f;
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: #123f31;
  color: #f7f5ef;
}

.atlas-file-index > .atlas-mono {
  margin-bottom: 20px;
  color: #cbdad3;
}

.atlas-file-index a {
  display: grid;
  gap: 2px;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  color: inherit;
  text-decoration: none;
}

.atlas-file-index a strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 550;
  line-height: 1;
}

.atlas-file-index a span {
  font-size: .76rem;
}

.atlas-file-index a[aria-current="page"] {
  margin-inline: -20px 0;
  padding-left: 20px;
  border: 1px solid var(--aa-line-strong);
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: var(--aa-paper-strong);
  color: var(--aa-ink);
}

.atlas-dossier-cover {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  min-height: 650px;
  padding: clamp(30px, 4.4vw, 70px) clamp(28px, 4vw, 64px) 28px;
  flex-direction: column;
  border: 1px solid var(--aa-line-strong);
  border-radius: 7px;
  background:
    linear-gradient(rgba(18, 63, 49, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--aa-paper-strong);
  box-shadow: var(--aa-shadow);
}

.atlas-dossier-cover .atlas-h1 {
  max-width: none;
  font-size: clamp(3rem, 3.65vw, 4.5rem);
  line-height: .96;
}

.atlas-cover-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 46px;
  border-top: 1px solid var(--aa-line);
}

.atlas-sheet-stack {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 650px;
  padding: 66px 22px 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 14px;
  align-content: start;
  overflow: hidden;
  border: 1px solid #153a2f;
  border-radius: 7px;
  background: #123f31;
  box-shadow: var(--aa-shadow);
}

.atlas-folder-tab {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  color: #f7f5ef;
}

.atlas-folder-tab .atlas-status--demo {
  color: #cbdad3;
}

.atlas-folder-trace {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-self: end;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .28);
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  color: #f7f5ef;
}

.atlas-folder-trace > div {
  display: grid;
  min-height: 92px;
  padding: 14px;
  align-content: center;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, .22);
}

.atlas-folder-trace > div:last-child {
  border-right: 0;
  background: rgba(255, 255, 255, .08);
}

.atlas-folder-trace .atlas-mono {
  color: #cbdad3;
}

.atlas-folder-trace strong {
  font-size: .82rem;
}

.atlas-paper-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--aa-line-strong);
  border-radius: 7px;
  background: var(--aa-paper-strong);
  box-shadow: var(--aa-shadow);
}

.atlas-paper-sheet--transcript {
  grid-column: 1 / -1;
  z-index: 1;
  width: 100%;
}

.atlas-paper-sheet--memo {
  z-index: 2;
  width: 100%;
}

.atlas-paper-sheet--rules {
  z-index: 3;
  width: 100%;
}

.atlas-paper-sheet .atlas-transcript {
  font-size: .67rem;
}

.atlas-paper-sheet .atlas-transcript th,
.atlas-paper-sheet .atlas-transcript td {
  padding: 9px 10px;
}

.atlas-paper-sheet .atlas-job-fields {
  margin: 0;
  border: 0;
}

.atlas-paper-note {
  padding: 14px;
}

.atlas-rule-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--aa-line);
  font-size: .78rem;
}

.atlas-rule-row:last-child {
  border-bottom: 0;
}

.atlas-rule-row b {
  color: var(--aa-signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
}

.atlas-hero-copy {
  align-self: start;
}

.atlas-artifact {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--aa-line-strong);
  border-radius: 9px;
  background: var(--aa-paper-strong);
  box-shadow: var(--aa-shadow);
}

.atlas-artifact-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--aa-line);
}

.atlas-artifact-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 720;
  letter-spacing: -.015em;
}

.atlas-call-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .34fr);
}

.atlas-call-main {
  min-width: 0;
  border-right: 1px solid var(--aa-line);
}

.atlas-transcript {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(.69rem, .83vw, .82rem);
  line-height: 1.45;
}

.atlas-transcript th,
.atlas-transcript td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--aa-line);
  text-align: left;
  vertical-align: top;
}

.atlas-transcript th {
  color: var(--aa-muted);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.atlas-transcript tr.is-alert td {
  background: var(--aa-alert-soft);
  color: var(--aa-alert);
}

.atlas-call-meta {
  display: grid;
  align-content: start;
}

.atlas-meta-field {
  padding: 15px 16px;
  border-bottom: 1px solid var(--aa-line);
}

.atlas-meta-field:last-child {
  border-bottom: 0;
}

.atlas-meta-field dt {
  margin-bottom: 5px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .66rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.atlas-meta-field dd {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
}

.atlas-boundaries {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) repeat(2, minmax(0, 4fr));
  border-top: 1px solid var(--aa-line-strong);
  border-bottom: 1px solid var(--aa-line-strong);
}

.atlas-boundary-intro,
.atlas-boundary-col {
  padding: clamp(24px, 3vw, 46px);
}

.atlas-boundary-col {
  border-left: 1px solid var(--aa-line);
}

.atlas-boundary-col--team {
  background: var(--aa-alert-soft);
}

.atlas-step-list,
.atlas-plain-list,
.atlas-log-list,
.atlas-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--aa-line);
}

.atlas-step-list li:last-child {
  border-bottom: 0;
}

.atlas-step-no {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--aa-signal);
  color: var(--aa-paper-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
}

.atlas-columns {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.atlas-columns > * {
  min-width: 0;
}

.atlas-col-4 { grid-column: span 4; }
.atlas-col-5 { grid-column: span 5; }
.atlas-col-6 { grid-column: span 6; }
.atlas-col-7 { grid-column: span 7; }
.atlas-col-8 { grid-column: span 8; }
.atlas-col-12 { grid-column: span 12; }

.atlas-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--aa-line);
  border-radius: 9px;
  background: var(--aa-paper-strong);
}

.atlas-panel--signal {
  border-color: var(--aa-signal);
  background: var(--aa-signal-soft);
}

.atlas-panel--ink {
  border-color: var(--aa-ink);
  background: var(--aa-ink);
  color: var(--aa-paper-strong);
}

.atlas-panel--ink .atlas-h2,
.atlas-panel--ink .atlas-h3,
.atlas-panel--ink .atlas-copy {
  color: inherit;
}

.atlas-section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 84px);
}

.atlas-section-head .atlas-copy {
  justify-self: end;
}

.atlas-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.atlas-tab {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--aa-line);
  border-radius: 6px;
  background: transparent;
  color: var(--aa-muted);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 650;
}

.atlas-tab[aria-selected="true"] {
  border-color: var(--aa-signal);
  background: var(--aa-signal-soft);
  color: var(--aa-signal);
}

.atlas-demo-panel[hidden] {
  display: none;
}

.atlas-form {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.atlas-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.atlas-field label,
.atlas-fieldset legend {
  font-size: .84rem;
  font-weight: 700;
}

.atlas-field input,
.atlas-field select,
.atlas-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--aa-line-strong);
  border-radius: 6px;
  background: var(--aa-paper-strong);
  color: var(--aa-ink);
}

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

.atlas-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.atlas-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  gap: 10px;
  margin-top: 9px;
}

.atlas-choice {
  position: relative;
}

.atlas-choice input {
  position: absolute;
  opacity: 0;
}

.atlas-choice span {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--aa-line);
  border-radius: 6px;
  color: var(--aa-muted);
  cursor: pointer;
}

.atlas-choice input:checked + span {
  border-color: var(--aa-signal);
  background: var(--aa-signal-soft);
  color: var(--aa-signal);
}

.atlas-choice input:focus-visible + span {
  outline: 3px solid var(--aa-signal);
  outline-offset: 3px;
}

.atlas-output {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 76px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--aa-line);
  border-radius: 4px;
  background: var(--aa-signal-soft);
  color: var(--aa-ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.atlas-output:empty::before {
  color: var(--aa-muted);
  content: attr(data-empty);
}

.atlas-calculator {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  border: 1px solid var(--aa-line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--aa-paper-strong);
}

.atlas-calc-inputs,
.atlas-calc-result {
  padding: clamp(26px, 4vw, 52px);
}

.atlas-calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.atlas-range-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.atlas-range-value {
  flex: 0 0 auto;
  color: var(--aa-signal);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.atlas-field input[type="range"] {
  appearance: none;
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--aa-signal);
}

.atlas-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--aa-signal) 0 var(--range-fill, 0%), var(--aa-line) var(--range-fill, 0%) 100%);
}

.atlas-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid var(--aa-paper-strong);
  border-radius: 50%;
  background: var(--aa-signal);
  box-shadow: 0 3px 10px rgba(17, 21, 19, .18);
}

.atlas-field input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--aa-line);
}

.atlas-field input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--aa-signal);
}

.atlas-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--aa-paper-strong);
  border-radius: 50%;
  background: var(--aa-signal);
  box-shadow: 0 3px 10px rgba(17, 21, 19, .18);
}

.atlas-calc-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--aa-line);
  background: var(--aa-ink);
  color: var(--aa-paper-strong);
}

.atlas-calc-result .atlas-copy {
  color: var(--aa-paper-strong);
}

.aa-atlas footer .text-gray-400 {
  color: #59615d !important;
}

html[data-theme="dark"] body.aa-atlas nav,
html[data-theme="dark"] body.aa-atlas footer {
  border-color: #242a26 !important;
  background: #080b09 !important;
}

html[data-theme="dark"] body.aa-atlas nav .text-navy-900,
html[data-theme="dark"] body.aa-atlas nav .text-gray-500,
html[data-theme="dark"] body.aa-atlas nav button,
html[data-theme="dark"] body.aa-atlas footer .text-navy-900,
html[data-theme="dark"] body.aa-atlas footer .font-semibold,
html[data-theme="dark"] body.aa-atlas footer h3,
html[data-theme="dark"] body.aa-atlas footer h4 {
  color: #f1f5f2 !important;
}

html[data-theme="dark"] body.aa-atlas footer .bg-white {
  border-color: #313a34 !important;
  background: #111713 !important;
}

html[data-theme="dark"] body.aa-atlas footer .text-gray-500,
html[data-theme="dark"] body.aa-atlas footer .text-gray-600,
html[data-theme="dark"] body.aa-atlas footer .text-gray-400 {
  color: #aeb5c1 !important;
}

.atlas-result-number {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .95;
}

.atlas-formula {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  line-height: 1.55;
  opacity: .78;
}

.atlas-faq-list {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

.atlas-section-head:has(+ .atlas-faq-list) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 58rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.atlas-faq-list details {
  border-top: 1px solid var(--aa-line-strong);
}

.atlas-faq-list details:last-child {
  border-bottom: 1px solid var(--aa-line-strong);
}

.atlas-faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 650;
  list-style: none;
}

.atlas-faq-list summary::-webkit-details-marker {
  display: none;
}

.atlas-faq-list summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.3rem;
}

.atlas-faq-list details[open] summary::after {
  content: "−";
}

.atlas-faq-answer {
  max-width: 66ch;
  padding: 0 0 28px;
  color: var(--aa-muted);
}

.atlas-section--insights {
  padding-block: clamp(44px, 6vw, 76px);
  background: color-mix(in srgb, var(--aa-forest) 4%, var(--aa-paper));
}

.atlas-insights-grid {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.atlas-insight-list {
  border-top: 1px solid var(--aa-line-strong);
}

.atlas-insight-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--aa-line-strong);
  color: var(--aa-ink);
  text-decoration: none;
}

.atlas-insight-link strong {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.35;
}

.atlas-insight-link > :last-child {
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.atlas-insight-link:hover > :last-child,
.atlas-insight-link:focus-visible > :last-child {
  transform: translateX(4px);
}

.atlas-contact-band {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.atlas-contact-meta {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--aa-line);
}

.atlas-contact-meta a {
  text-decoration: none;
}

.atlas-site-footer {
  border-top: 1px solid var(--aa-line);
  padding-block: 52px 28px;
}

.atlas-footer-grid {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 30px;
}

.atlas-footer-title {
  margin: 0 0 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.atlas-footer-links {
  display: grid;
  gap: 8px;
}

.atlas-footer-links a,
.atlas-footer-copy {
  color: var(--aa-muted);
  font-size: .88rem;
  text-decoration: none;
}

.atlas-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--aa-line);
  color: var(--aa-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
}

/* Consulting: decision dossier */
.atlas-decision-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(520px, 7fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: end;
}

.atlas-decision-hero .atlas-h1 {
  max-width: none;
  font-size: clamp(2.75rem, 3.35vw, 4.35rem);
  line-height: .98;
}

.atlas-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}

.atlas-matrix th,
.atlas-matrix td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--aa-line);
  text-align: left;
}

.atlas-matrix th {
  font-family: "IBM Plex Mono", monospace;
  font-size: .67rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.atlas-score {
  display: inline-block;
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--aa-signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  text-align: center;
}

.atlas-no-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-no-list li {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
}

.atlas-no-list li:nth-child(2n) {
  border-right: 0;
}

/* Process X-Ray */
.atlas-process-hero {
  padding-top: clamp(52px, 7vw, 96px);
}

.atlas-process-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}

.atlas-swimlane {
  display: grid;
  grid-template-columns: 150px repeat(5, minmax(160px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--aa-line-strong);
  background: var(--aa-paper-strong);
}

.atlas-lane-label,
.atlas-lane-cell {
  min-height: 106px;
  padding: 14px;
  border-right: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
}

.atlas-lane-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--aa-paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.atlas-lane-cell {
  font-size: .84rem;
}

.atlas-lane-cell--active {
  background: var(--aa-signal-soft);
  color: var(--aa-signal);
}

.atlas-lane-cell--alert {
  background: var(--aa-alert-soft);
  color: var(--aa-alert);
}

/* Dispatch / garage / shift boards */
.atlas-board {
  border: 1px solid var(--aa-line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--aa-paper-strong);
}

.atlas-board-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--aa-line);
}

.atlas-board-row:last-child {
  border-bottom: 0;
}

.atlas-board-cell {
  min-height: 74px;
  padding: 13px;
  border-right: 1px solid var(--aa-line);
  font-size: .83rem;
}

.atlas-board-cell:last-child {
  border-right: 0;
}

.atlas-board-cell--time {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
}

.atlas-board-cell--signal {
  background: var(--aa-signal-soft);
}

.atlas-board-cell--alert {
  background: var(--aa-alert-soft);
}

.atlas-job-card {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--aa-line-strong);
  border-radius: 8px;
  background: var(--aa-paper-strong);
  box-shadow: 12px 12px 0 var(--aa-signal-soft);
}

.atlas-job-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--aa-line);
  border-left: 1px solid var(--aa-line);
}

.atlas-job-field {
  min-height: 92px;
  padding: 14px;
  border-right: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
}

.atlas-job-field dt {
  margin-bottom: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .67rem;
  text-transform: uppercase;
}

.atlas-job-field dd {
  margin: 0;
  font-weight: 650;
}

.atlas-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--aa-line-strong);
  border-bottom: 1px solid var(--aa-line-strong);
}

.atlas-journey-step {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--aa-line);
}

.atlas-journey-step:last-child {
  border-right: 0;
}

.atlas-time-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}

.atlas-time-stamp {
  margin-bottom: 26px;
  color: var(--aa-alert);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.2rem, 2.3vw, 2.2rem);
}

.atlas-ticket {
  padding: 24px;
  border: 1px solid var(--aa-line-strong);
  background: var(--aa-paper-strong);
  box-shadow: 10px 10px 0 var(--aa-alert-soft);
}

.atlas-ticket-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--aa-line-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
}

.atlas-calendar {
  display: grid;
  grid-template-columns: 86px repeat(3, minmax(150px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--aa-line-strong);
  background: var(--aa-paper-strong);
}

.atlas-calendar > * {
  min-height: 78px;
  padding: 12px;
  border-right: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
  font-size: .8rem;
}

.atlas-calendar-time {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--aa-paper);
  font-family: "IBM Plex Mono", monospace;
}

.atlas-calendar-slot--open {
  background: var(--aa-good-soft);
  color: var(--aa-good);
}

.atlas-calendar-slot--blocked {
  background: var(--aa-alert-soft);
  color: var(--aa-alert);
}

.atlas-dossier {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  border: 1px solid var(--aa-line-strong);
  background: var(--aa-paper-strong);
}

.atlas-dossier-main,
.atlas-dossier-side {
  padding: clamp(24px, 3vw, 40px);
}

.atlas-dossier-side {
  border-left: 1px solid var(--aa-line);
}

.atlas-progress {
  height: 9px;
  margin: 12px 0 22px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--aa-line);
}

.atlas-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--progress-scale, .4));
  transform-origin: left center;
  background: var(--aa-signal);
  transition: transform .35s ease;
}

@media (max-width: 1120px) {
  .atlas-nav {
    grid-template-columns: 1fr auto;
  }

  .atlas-nav-links,
  .atlas-nav-actions .atlas-lang,
  .atlas-nav-actions .atlas-button {
    display: none;
  }

  .atlas-menu-button {
    display: inline-grid;
  }

  .atlas-hero-grid,
  .atlas-decision-hero,
  .atlas-time-hero {
    grid-template-columns: 1fr;
  }

  .atlas-open-dossier-hero {
    grid-template-columns: minmax(360px, 5fr) minmax(480px, 7fr);
  }

  .atlas-hero-copy {
    max-width: 800px;
  }

  .atlas-h1 {
    max-width: 15ch;
  }

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

  .atlas-call-main {
    border-right: 0;
    border-bottom: 1px solid var(--aa-line);
  }

  .atlas-call-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-meta-field:nth-child(odd) {
    border-right: 1px solid var(--aa-line);
  }

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

  .atlas-footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  body.aa-atlas {
    font-size: 16px;
  }

  .atlas-shell {
    width: min(calc(100% - 28px), var(--aa-max));
  }

  .atlas-nav {
    min-height: 66px;
  }

  .atlas-brand img {
    width: 36px;
    height: 28px;
  }

  .atlas-brand {
    font-size: 1.12rem;
  }

  .atlas-hero {
    min-height: auto;
    padding-block: 42px 32px;
  }

  .atlas-open-dossier-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-dossier-cover {
    min-height: 640px;
    border-radius: 7px;
  }

  .atlas-sheet-stack {
    min-height: auto;
    padding: 62px 14px 14px;
    grid-template-columns: 1fr;
  }

  .atlas-folder-trace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-folder-trace > div:nth-child(2) {
    border-right: 0;
  }

  .atlas-folder-trace > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }

  .atlas-paper-sheet {
    width: 100%;
    margin: 0;
  }

  .atlas-h1 {
    font-size: clamp(2.75rem, 13vw, 4.7rem);
  }

  .atlas-section-head,
  .atlas-process-intro,
  .atlas-insights-grid,
  .atlas-contact-band {
    grid-template-columns: 1fr;
  }

  .atlas-section-head .atlas-copy {
    justify-self: start;
  }

  .atlas-columns {
    gap: 14px;
  }

  .atlas-col-4,
  .atlas-col-5,
  .atlas-col-6,
  .atlas-col-7,
  .atlas-col-8 {
    grid-column: span 12;
  }

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

  .atlas-boundary-col {
    border-top: 1px solid var(--aa-line);
    border-left: 0;
  }

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

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

  .atlas-calc-result {
    min-height: 360px;
    border-top: 1px solid var(--aa-line);
    border-left: 0;
  }

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

  .atlas-no-list li,
  .atlas-no-list li:nth-child(2n) {
    border-right: 0;
  }

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

  .atlas-journey-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--aa-line);
  }

  .atlas-journey-step:last-child {
    border-bottom: 0;
  }

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

  .atlas-dossier-side {
    border-top: 1px solid var(--aa-line);
    border-left: 0;
  }

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

  .atlas-footer-grid > :first-child,
  .atlas-footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .atlas-footer-base {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .atlas-nav-actions .atlas-icon-button:not(.atlas-menu-button) {
    display: none;
  }

  .atlas-h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .atlas-h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .atlas-actions {
    align-items: stretch;
  }

  .atlas-insight-link {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .atlas-insight-link .atlas-mono {
    grid-column: 1 / -1;
  }

  .atlas-button {
    width: 100%;
  }

  .atlas-call-meta,
  .atlas-job-fields {
    grid-template-columns: 1fr;
  }

  .atlas-meta-field:nth-child(odd) {
    border-right: 0;
  }

  .atlas-artifact {
    margin-inline: -5px;
  }

  .atlas-matrix {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .atlas-transcript th:nth-child(2),
  .atlas-transcript td:nth-child(2) {
    display: none;
  }

  .atlas-board-row {
    grid-template-columns: 74px repeat(3, minmax(150px, 1fr));
  }

  .atlas-board {
    overflow-x: auto;
  }

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

  .atlas-footer-grid > * {
    grid-column: auto !important;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Keep shared navigation and footer black while Atlas content surfaces vary. */
html[data-theme="dark"] body.aa-atlas nav.sticky.top-0.z-50,
html.dark body.aa-atlas nav.sticky.top-0.z-50 {
  background: rgba(3, 3, 3, 0.97) !important;
  border-color: #242624 !important;
  color: #f3f1eb !important;
}

html[data-theme="dark"] body.aa-atlas footer,
html.dark body.aa-atlas footer {
  background: #030403 !important;
  border-color: #242624 !important;
  color: #f3f1eb !important;
}

html[data-theme="dark"] body.aa-atlas nav .aa-theme-toggle,
html[data-theme="dark"] body.aa-atlas nav .aa-mobile-lang-wrap,
html.dark body.aa-atlas nav .aa-theme-toggle,
html.dark body.aa-atlas nav .aa-mobile-lang-wrap {
  background: #0a0b0a !important;
  border-color: #343734 !important;
  color: #f3f1eb !important;
  box-shadow: none !important;
}
