@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #161819;
  --surface: #1c1f21;
  --ink: #f3f4f5;
  --muted: #a2a9b3;
  --line: #353b40;
  --blue: #7499ff;
  --amber: #d8aa79;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #3f5895; color: white; }

.atlas-topbar { max-width: 1600px; min-height: 106px; padding: 30px 48px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.atlas-brand { position: relative; flex: 0 1 244px; min-width: 0; }
.atlas-brand img { width: 244px; filter: brightness(0) invert(1); }
.atlas-brand::after { content: ""; position: absolute; inset: 0; background: #6056ff; mask: url('/img/cases-logo-page26.png') center / contain no-repeat; clip-path: inset(0 52% 0 37%); }
.atlas-topbar__meta { display: flex; gap: 34px; align-items: center; color: var(--muted); font-size: 12px; }
.atlas-topbar__meta a:hover, .atlas-footer a:hover { color: var(--ink); }
.content-shell { max-width: 1600px; margin: auto; padding: 16px 48px 32px; }
.atlas-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 64px; }
.atlas-heading { grid-column: 2; display: flex; align-items: start; gap: 18px; margin: 0 0 40px; font-size: 56px; line-height: 1.12; font-weight: 540; }
.atlas-heading > span { color: var(--muted); font-size: 13px; line-height: 2; font-weight: 400; }
.atlas-index { grid-column: 1; grid-row: 2; min-width: 0; }
.atlas-index > summary { display: none; }
.atlas-index__list { max-height: 390px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 10px; }
.atlas-index__list a { position: relative; display: grid; gap: 8px; padding: 18px 0 22px 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.atlas-index__list a:first-child { padding-top: 0; }
.atlas-index__list a > span { font-size: 12px; }
.atlas-index__list strong { font-size: 15px; line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
.atlas-index__list a[aria-current], .atlas-index__list a:hover { color: var(--ink); }
.atlas-index__list a[aria-current]::before { content: ""; position: absolute; top: 25px; left: 0; width: 3px; height: 24px; background: var(--blue); }
.atlas-index__list a:first-child[aria-current]::before { top: 8px; }
.atlas-index__stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding: 12px 0; color: var(--muted); font-size: 12px; }
.atlas-index__stats:hover { color: var(--blue); }
.atlas-stage { grid-column: 2; grid-row: 2; min-width: 0; }
.atlas-project { animation: project-appear 240ms ease both; }
.atlas-project__copy { padding: 34px 0 42px; }
.atlas-project__number { display: none; }
.atlas-project__copy h2 { max-width: 920px; margin-bottom: 14px; font-size: 40px; line-height: 1.16; font-weight: 520; overflow-wrap: anywhere; }
.atlas-project__copy > p:not(.atlas-project__number) { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.55; margin-bottom: 18px; }
.read-case { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue); font-size: 15px; }
.read-case span { transition: transform 160ms ease; font-size: 22px; }
.read-case:hover span { transform: translateX(4px); }
.read-case[aria-busy="true"] { opacity: .55; cursor: progress; }

.workflow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 32px; padding: 10px 0; }
.workflow__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin: 0; padding: 0; }
.workflow__step { position: relative; min-width: 0; }
.workflow__step:not(:last-child)::after { content: ""; position: absolute; width: 23px; height: 1px; background: var(--blue); right: -29px; top: 58%; }
.workflow__step:not(:last-child)::before { content: ""; position: absolute; width: 7px; height: 7px; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue); transform: rotate(45deg); right: -29px; top: calc(58% - 3px); }
.workflow__label { display: flex; gap: 8px; align-items: baseline; min-height: 48px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.workflow__label > span { color: #7d858e; font-size: 10px; }
.workflow__node { position: relative; min-height: 210px; border: 1px solid #707983; border-radius: 3px; padding: 18px 14px; background: var(--bg); box-shadow: 0 8px 24px #00000014; }
.workflow__node-top { display: flex; gap: 4px; height: 25px; align-items: flex-start; }
.workflow__node-top i { width: 3px; height: 3px; background: #68717d; }
.workflow__node-top span { height: 1px; width: 22px; background: var(--line); margin-left: auto; }
.workflow__node ul { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.workflow__node li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; color: #c7ccd2; }
.workflow__node li i { flex: 0 0 4px; height: 4px; margin-top: 6px; background: #66717c; }
.workflow__trace { display: flex; gap: 5px; margin-top: 18px; }
.workflow__trace i { width: 28%; height: 3px; background: #30363b; }
.workflow__trace i:nth-child(2) { width: 17%; }
.workflow__trace i:last-child { width: 33%; }
.workflow__node--document::before { content: ""; position: absolute; inset: -7px 7px 7px -7px; border: 1px solid #59616b; border-radius: 3px; z-index: -1; }
.workflow__node--document { isolation: isolate; }
.workflow__node--document li i { background: var(--amber); }
.workflow__node--checklist li i { flex-basis: 13px; height: 13px; margin-top: 2px; border: 1px solid #626c7c; background: transparent; position: relative; }
.workflow__node--checklist li i::after { content: ""; position: absolute; left: 3px; top: 1px; width: 5px; height: 8px; border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); transform: rotate(40deg); }
.workflow__node--board li { display: block; padding-left: calc(var(--row) * 5px); border-left: 2px solid var(--blue); }
.workflow__node--board li i { display: block; width: calc(54% + var(--row) * 10%); height: 5px; margin: 0 0 4px; background: #455e91; }
.workflow__node--table li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.workflow__node--table li i { flex-basis: 7px; background: var(--amber); }
.workflow__node--inbox li { border: 1px solid var(--line); padding: 6px; border-radius: 2px; }
.workflow__node--inbox li i { border-radius: 50%; background: var(--blue); }
.workflow__outputs { position: relative; display: grid; gap: 16px; padding: 0; margin: 48px 0 0; list-style: none; }
.workflow__outputs::before { content: ""; position: absolute; left: -18px; top: 27px; bottom: 27px; border-left: 1px solid #626b77; }
.workflow__outputs li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 10px; border: 1px solid #707983; border-radius: 3px; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.workflow__outputs li::before { content: ""; position: absolute; width: 18px; height: 1px; background: #626b77; left: -19px; top: 50%; }
.workflow__file { flex: 0 0 15px; width: 15px; height: 20px; border: 1px solid #a2abb6; border-radius: 1px; background: repeating-linear-gradient(transparent 0 4px, #6d7781 4px 5px) center / 7px 12px no-repeat; }

.atlas-directory { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 26px; }
.atlas-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .8fr); align-items: center; gap: 28px; padding: 32px 30px 32px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.atlas-preview:nth-child(even of :not([hidden])) { padding-left: 30px; padding-right: 0; border-left: 1px solid var(--line); }
.atlas-preview__number { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.atlas-preview h2 { font-size: 22px; font-weight: 500; line-height: 1.35; margin-bottom: 12px; overflow-wrap: anywhere; }
.atlas-preview h2 a:hover { color: var(--blue); }
.atlas-preview__copy > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.atlas-preview .read-case { font-size: 13px; }
.workflow--compact { display: block; min-width: 0; opacity: .8; }
.workflow--compact .workflow__steps { gap: 14px; align-items: center; }
.workflow--compact .workflow__outputs, .workflow--compact .workflow__label { display: none; }
.workflow--compact .workflow__node { min-height: 98px; padding: 8px 5px; }
.workflow--compact .workflow__node-top { height: 15px; gap: 2px; }
.workflow--compact .workflow__node-top i { width: 2px; height: 2px; }
.workflow--compact .workflow__node-top span { display: none; }
.workflow--compact .workflow__node ul { gap: 7px; }
.workflow--compact .workflow__node li { padding: 0; align-items: center; gap: 3px; }
.workflow--compact .workflow__node li span { font-size: 0; height: 3px; width: calc(50% + var(--row) * 10%); background: #505c68; }
.workflow--compact .workflow__node li i { flex-basis: 3px; height: 3px; margin: 0; }
.workflow--compact .workflow__node--checklist li i { flex-basis: 6px; height: 6px; }
.workflow--compact .workflow__node--checklist li i::after { width: 2px; height: 4px; left: 1px; top: -1px; }
.workflow--compact .workflow__trace { gap: 2px; margin-top: 10px; }
.workflow--compact .workflow__trace i { height: 2px; }
.workflow--compact .workflow__step:not(:last-child)::after { width: 9px; right: -12px; top: 50%; }
.workflow--compact .workflow__step:not(:last-child)::before { width: 4px; height: 4px; right: -12px; top: calc(50% - 2px); }
.atlas-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 32px; font-size: 12px; color: var(--muted); }

.case-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.has-case-modal { overflow: hidden; }
.case-modal__backdrop { position: absolute; inset: 0; background: #080a0cd9; backdrop-filter: blur(6px); }
.case-modal__dialog { position: relative; width: min(1120px, 100%); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid #41484e; border-radius: 6px; background: var(--surface); box-shadow: 0 24px 100px #0008; overflow-wrap: anywhere; }
.case-modal__close { position: sticky; top: 12px; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 12px 12px -56px 0; background: #262b30; border: 1px solid #555f6a; border-radius: 50%; color: var(--ink); font-size: 26px; }
.case-modal__close:hover { background: #3a424c; }
.case-detail { display: grid; gap: 28px; padding: 42px 72px 64px; min-width: 0; }
.case-detail__head { display: grid; gap: 16px; }
.crumbs, .eyebrow { color: var(--muted); font-size: 12px; margin: 0; }
.crumbs a:hover { color: var(--blue); }
.eyebrow { text-transform: uppercase; font-weight: 600; }
.case-detail h1, .hero-bar h1 { margin: 0; font-size: 36px; line-height: 1.25; font-weight: 550; }
.lead { color: #bec5ce; font-size: 18px; line-height: 1.65; margin: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { padding: 5px 9px; border: 1px solid #4a535d; border-radius: 4px; color: var(--muted); font-size: 11px; }
.meta-line { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.meta-line span { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.meta-line b { color: var(--ink); font-weight: 500; }
.case-user-case { padding: 8px 0 8px 24px; border-left: 2px solid var(--blue); }
.case-user-case .eyebrow { margin-bottom: 12px; color: var(--blue); }
.case-user-case__body, .case-prose { font-size: 17px; line-height: 1.85; color: #d3d8de; overflow-wrap: anywhere; min-width: 0; }
.case-user-case__body > :last-child, .case-prose > :last-child { margin-bottom: 0; }
.case-prose h2 { font-size: 26px; font-weight: 550; margin: 38px 0 16px; line-height: 1.3; color: var(--ink); }
.case-prose h3 { font-size: 21px; font-weight: 550; margin: 28px 0 14px; line-height: 1.4; color: var(--ink); }
.case-prose p, .case-prose ul, .case-prose ol { margin-bottom: 22px; }
.case-prose > :first-child { margin-top: 0; }
.case-prose a, .case-user-case a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.case-prose img, .case-cover { width: 100%; max-height: 720px; object-fit: contain; border-radius: 4px; background: #111416; margin: 26px 0 12px; }
.case-prose em { font-size: 14px; color: var(--muted); }
.case-prose blockquote { border-left: 2px solid var(--line); padding-left: 20px; margin-left: 0; }
.case-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.case-prose table { display: block; max-width: 100%; overflow: auto; }
.case-prose iframe, .video-frame iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #101214; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.process-summary, .project-stats-grid, .process-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.process-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-summary span, .project-stat-item, .process-type-item { border-top: 1px solid var(--line); padding: 20px 0; }
.process-summary span { display: grid; gap: 10px; font-size: 12px; color: var(--muted); }
.process-summary b, .project-stat-item strong, .process-type-item strong { color: var(--ink); font-size: 32px; font-weight: 500; }
.project-stat-item p, .process-type-item p { color: var(--muted); font-size: 13px; }
.process-type-item p { display: flex; align-items: baseline; gap: 8px; }
.process-type-item h2 { font-size: 16px; line-height: 1.5; font-weight: 500; }
.project-stats-block > h2 { font-size: 22px; font-weight: 500; }
.empty-state, .hero-bar { padding: 40px 0; color: var(--muted); line-height: 1.6; }
.hero-bar .button { color: var(--blue); }
@keyframes project-appear { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .atlas-heading { font-size: 64px; }
  .workflow__node { min-height: 230px; padding: 20px; }
  .workflow__node li { font-size: 12px; }
}
@media (max-width: 1200px) {
  .atlas-topbar { padding: 28px 30px; }
  .content-shell { padding: 16px 30px 32px; }
  .atlas-layout { grid-template-columns: 170px minmax(0, 1fr); column-gap: 36px; }
  .atlas-heading { font-size: 48px; }
  .workflow { grid-template-columns: 1fr; gap: 18px; }
  .workflow__outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 12px; }
  .workflow__outputs::before, .workflow__outputs li::before { display: none; }
  .workflow__node { min-height: 190px; }
  .atlas-project__copy h2 { font-size: 34px; }
  .atlas-preview { gap: 18px; grid-template-columns: minmax(0, 1fr) 140px; }
  .atlas-preview h2 { font-size: 20px; }
}
@media (max-width: 900px) {
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-heading { grid-column: 1; margin-bottom: 28px; font-size: 42px; }
  .atlas-index { grid-row: auto; grid-column: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .atlas-index > summary { display: flex; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none; font-size: 14px; }
  .atlas-index > summary::after { content: "+"; color: var(--blue); }
  .atlas-index[open] > summary::after { content: "−"; }
  .atlas-index > summary > span { margin-left: auto; margin-right: 18px; color: var(--muted); }
  .atlas-index__list { max-height: 320px; }
  .atlas-index__list strong { font-size: 14px; }
  .atlas-index__stats { margin: 8px 0; }
  .atlas-stage { grid-column: 1; grid-row: auto; }
  .atlas-preview { grid-template-columns: minmax(0, 1fr); }
  .atlas-preview .workflow { max-width: 260px; width: 100%; }
  .case-detail { padding: 40px 32px; }
}
@media (max-width: 600px) {
  .atlas-topbar { min-height: 86px; padding: 24px 20px; gap: 16px; }
  .atlas-brand { flex-basis: 184px; }
  .atlas-topbar__meta { font-size: 11px; white-space: nowrap; }
  .atlas-topbar__meta > a { display: none; }
  .content-shell { padding: 8px 20px 28px; }
  .atlas-heading { font-size: 32px; gap: 12px; line-height: 1.2; }
  .atlas-heading > span { font-size: 11px; }
  .workflow:not(.workflow--compact) .workflow__steps { grid-template-columns: 1fr; gap: 22px; }
  .workflow:not(.workflow--compact) .workflow__step { display: block; }
  .workflow:not(.workflow--compact) .workflow__label { display: flex; gap: 8px; font-size: 14px; min-height: auto; margin-bottom: 12px; }
  .workflow:not(.workflow--compact) .workflow__node { min-height: 0; padding: 14px 18px; }
  .workflow:not(.workflow--compact) .workflow__node li { font-size: 13px; }
  .workflow:not(.workflow--compact) .workflow__node ul { gap: 10px; }
  .workflow:not(.workflow--compact) .workflow__step:not(:last-child)::after { top: auto; bottom: -16px; width: 1px; height: 11px; right: 50%; }
  .workflow:not(.workflow--compact) .workflow__step:not(:last-child)::before { top: auto; bottom: -16px; right: calc(50% - 3px); transform: rotate(135deg); width: 7px; height: 7px; }
  .workflow__outputs { grid-template-columns: 1fr; margin-left: 0; gap: 8px; }
  .workflow__outputs li { min-height: 42px; font-size: 13px; }
  .atlas-project { display: flex; flex-direction: column; }
  .atlas-project__copy { order: -1; }
  .atlas-project__copy { padding: 22px 0 12px; }
  .atlas-project__number { display: block; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
  .atlas-project__copy h2 { font-size: 29px; line-height: 1.25; }
  .atlas-project__copy > p:not(.atlas-project__number) { font-size: 16px; line-height: 1.7; }
  .atlas-directory { grid-template-columns: 1fr; margin-top: 24px; }
  .atlas-preview, .atlas-preview:nth-child(even of :not([hidden])) { grid-template-columns: minmax(0, 1fr); padding: 26px 0; gap: 18px; border-left: 0; }
  .atlas-preview h2 { font-size: 22px; }
  .atlas-preview__copy > p { font-size: 14px; }
  .atlas-preview .workflow { max-width: 300px; }
  .atlas-footer { font-size: 11px; }
  .case-modal { padding: 0; }
  .case-modal__dialog { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .case-detail { padding: 32px 22px 48px; gap: 24px; }
  .case-detail__head { padding-top: 10px; }
  .case-detail h1 { font-size: 28px; }
  .case-user-case__body, .case-prose, .lead { font-size: 16px; line-height: 1.8; }
  .case-user-case { padding-left: 16px; }
  .case-prose h2 { font-size: 24px; }
  .case-prose h3 { font-size: 20px; }
  .case-prose ul, .case-prose ol { padding-left: 22px; }
  .process-summary, .project-stats-grid, .process-type-grid { grid-template-columns: 1fr; gap: 0; }
  .process-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
