/* Roamline shares the portfolio's reading layout; the app carries its own colors. */
.roamline-page {
  --roam-paper: #fff;
  --roam-ink: #232323;
  --roam-muted: #737379;
  --roam-rule: #eaeaec;
  background: var(--roam-paper);
  color: var(--roam-ink);
}
.roam-shell { max-width: 856px; padding-inline: 24px; }
.roamline-page :focus-visible { outline: 2px solid #727e88; outline-offset: 5px; }
.roamline-page ::selection { background: #e7e7e7; color: var(--roam-ink); }
.roam-heading { padding-top: 0; padding-bottom: 40px; }
.project-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 18px; letter-spacing: -.3px; }
.project-lockup img { border-radius: 22%; width: 40px; height: 40px; }
.project-type { font-size: 12px; line-height: 1.7; letter-spacing: 0; margin-left: auto; color: var(--roam-muted); text-align: right; }
.roam-heading h1 { font-size: 56px; line-height: 1.08; font-weight: 500; letter-spacing: -1.8px; margin: 0 0 26px; text-wrap: balance; }
.roam-heading h1 em { font-style: normal; font-weight: inherit; }
.roam-deck { font-size: 21px; line-height: 1.6; letter-spacing: -.3px; color: var(--roam-muted); max-width: 630px; margin: 0; }
.heading-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 13px; line-height: 1.8; }
.heading-links a { border-bottom: 1px solid #d5d5da; padding-bottom: 4px; display: inline-flex; align-items: center; gap: 12px; }
.heading-links a:hover { border-color: var(--roam-ink); }
.case-hero { margin: 0 0 32px; }
.case-hero > img { width: 100%; height: auto; display: block; border-radius: 12px; }
.case-hero figcaption, .walkthrough-caption { font-size: 12px; line-height: 1.7; color: var(--roam-muted); margin-top: 12px; }
.project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 24px 0; border-block: 1px solid var(--roam-rule); }
.project-facts dt { font-size: 12px; line-height: 1.7; color: var(--roam-muted); margin-bottom: 7px; }
.project-facts dd { font-size: 13px; line-height: 1.65; margin: 0; }
.case-contents { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 0; font-size: 12px; line-height: 1.8; color: var(--roam-muted); }
.case-contents a { padding-block: 4px; }
.case-contents a:hover { text-decoration: underline; text-underline-offset: 5px; color: var(--roam-ink); }
.reading-width { max-width: 640px; margin-inline: auto; }
.case-section { margin-top: 72px; scroll-margin-top: 40px; }
.case-kicker { font-size: 12px; line-height: 1.7; font-weight: 500; letter-spacing: 0; color: var(--roam-muted); margin: 0 0 18px; }
.case-section h2, .case-closing h2 { font-size: 30px; line-height: 1.3; font-weight: 500; letter-spacing: -.8px; text-wrap: balance; margin: 0 0 24px; }
.case-section p:where(:not(.case-kicker):not(.walkthrough-caption)) { font-size: 18px; line-height: 1.8; color: #48484e; margin: 0 0 23px; letter-spacing: -.18px; }
.case-section .assumption { border-left: 2px solid #d9d9de; padding: 2px 0 2px 20px; margin-top: 28px; font-size: 16px; }
.assumption > span { display: block; font-size: 12px; line-height: 1.7; color: var(--roam-muted); letter-spacing: 0; margin-bottom: 8px; }
.process-note { padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--roam-rule); }
.process-note h3 { font-size: 14px; line-height: 1.7; font-weight: 500; margin: 0 0 12px; }
.case-section .process-note p { font-size: 15px; line-height: 1.8; letter-spacing: 0; margin-bottom: 14px; color: var(--roam-muted); }
.destination-map { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0; padding: 0; border-block: 1px solid var(--roam-rule); }
.destination-map li { min-width: 0; padding: 24px 18px 26px 0; }
.destination-map li + li { border-left: 1px solid var(--roam-rule); padding-left: 18px; }
.destination-number { font-size: 12px; line-height: 1.6; color: var(--roam-muted); font-variant-numeric: tabular-nums; }
.destination-map h3 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.5px; margin: 14px 0 12px; }
.case-section .destination-map p { font-size: 14px; line-height: 1.7; letter-spacing: 0; color: var(--roam-ink); margin-bottom: 12px; }
.destination-map li > span:last-child { font-size: 12px; line-height: 1.7; color: var(--roam-muted); display: block; }
.palette { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 28px 0; padding-block: 20px; border-block: 1px solid var(--roam-rule); }
.palette > span { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--roam-muted); }
.swatch { width: 23px; height: 23px; display: block; border-radius: 50%; border: 1px solid #302f291a; }
.swatch-paper { background: #f6f2e9; }
.swatch-vermilion { background: #ba4029; }
.swatch-ink { background: #2b302b; }
.task-walkthrough { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 34px 0 0; padding: 0; }
.task-walkthrough li { min-width: 0; }
.task-walkthrough figure { margin: 0; }
.task-walkthrough figure > a { display: flex; justify-content: center; padding: 24px 18px; background: #e8dfd0; border-radius: 12px; }
.task-walkthrough img { width: 100%; max-width: 244px; height: auto; aspect-ratio: 1360 / 2850; object-fit: contain; background: none; border: 0; border-radius: 0; }
.task-walkthrough figcaption { padding-top: 20px; }
.step-number { font-size: 12px; line-height: 1.7; color: var(--roam-muted); }
.task-walkthrough h3 { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.45px; margin: 10px 0 12px; }
.case-section .task-walkthrough p { font-size: 14px; line-height: 1.8; letter-spacing: 0; margin: 0; color: var(--roam-muted); }
.walkthrough-caption { border-top: 1px solid var(--roam-rule); padding-top: 16px; margin-top: 28px; }
.case-section code { font-size: .85em; background: #f2f2f4; padding: 2px 5px; border-radius: 4px; color: var(--roam-ink); }
.revision-note { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; margin: 28px 0; padding: 24px 0; border-block: 1px solid var(--roam-rule); }
.revision-note div > span { display: block; font-size: 12px; line-height: 1.7; color: var(--roam-muted); margin-bottom: 8px; }
.revision-note strong { font-size: 15px; font-weight: 500; line-height: 1.7; }
.revision-arrow { font-size: 24px; color: var(--roam-muted); }
.demo-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 36px 0; border-block: 1px solid var(--roam-rule); }
.demo-copy { min-width: 0; }
.demo-copy h2 { font-size: 32px; }
.case-section .demo-copy p { font-size: 17px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 4px; border-bottom: 1px solid #d5d5da; font-size: 13px; line-height: 1.8; }
.text-link:hover { border-color: var(--roam-ink); }
.demo-description { margin-top: 26px; font-size: 13px; line-height: 1.8; }
.demo-description summary { cursor: pointer; color: var(--roam-muted); }
.case-section .demo-description p { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.demo-figure { margin: 0; max-width: 280px; width: 100%; justify-self: center; }
.video-device { padding: 8px; background: #171916; border: 2px solid #62615b; border-radius: 40px; box-shadow: inset 0 0 0 2px #31342e; overflow: hidden; }
.video-device video { display: block; width: 100%; height: auto; aspect-ratio: 402 / 874; object-fit: contain; border-radius: 29px; background: #171916; }
.demo-figure figcaption { text-align: center; font-size: 12px; line-height: 1.7; color: var(--roam-muted); margin-top: 14px; }
.scope-list { margin: 28px 0 20px; }
.scope-list > div { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--roam-rule); }
.scope-list dt { font-size: 14px; line-height: 1.8; color: var(--roam-ink); }
.scope-list dd { font-size: 15px; line-height: 1.8; color: var(--roam-muted); margin: 0; }
.case-section .scope-footnote { font-size: 14px; line-height: 1.8; letter-spacing: 0; }
.validation-tasks { list-style: none; counter-reset: validation; margin: 28px 0; padding: 0; }
.validation-tasks > li { counter-increment: validation; position: relative; padding: 22px 0 23px 35px; border-top: 1px solid var(--roam-rule); }
.validation-tasks > li::before { content: '0' counter(validation); position: absolute; left: 0; top: 24px; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; color: var(--roam-muted); }
.validation-tasks h3 { font-size: 17px; line-height: 1.6; font-weight: 500; letter-spacing: -.2px; margin: 0 0 10px; }
.case-section .validation-tasks p { font-size: 15px; line-height: 1.8; margin: 0; color: var(--roam-muted); }
.case-closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--roam-rule); margin-top: 72px; padding-top: 32px; }
.case-closing h2 { font-size: 28px; margin: 0; }
.case-closing .case-kicker { margin-bottom: 14px; }
.case-closing .text-link { flex-shrink: 0; }
.asset-credit { font-size: 12px; line-height: 1.8; color: var(--roam-muted); max-width: 680px; margin: 36px 0 0; }
.asset-credit a { text-decoration: underline; text-decoration-color: #d5d5da; text-underline-offset: 3px; }
.roamline-page .article-footer { color: var(--roam-muted); font-size: 12px; }

@media (max-width: 900px) {
  .roam-shell { max-width: 856px; }
  .roam-heading { padding-top: 0; }
}
@media (max-width: 700px) {
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .destination-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .destination-map li:nth-child(3) { border-left: 0; padding-left: 0; }
  .destination-map li:nth-child(n+3) { border-top: 1px solid var(--roam-rule); }
  .task-walkthrough { grid-template-columns: 1fr; gap: 34px; }
  .task-walkthrough figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .task-walkthrough figcaption { padding-top: 0; }
  .demo-section { gap: 28px; }
}
@media (max-width: 600px) {
  .roam-shell { padding-inline: 24px; }
  .roam-heading { padding-top: 0; padding-bottom: 30px; }
  .project-lockup { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 17px; }
  .project-lockup img { width: 36px; height: 36px; }
  .project-type { flex-basis: 100%; margin: 2px 0 0; text-align: left; }
  .roam-heading h1 { font-size: 38px; line-height: 1.12; letter-spacing: -1.4px; margin-bottom: 22px; }
  .roam-deck { font-size: 19px; line-height: 1.65; letter-spacing: -.25px; }
  .heading-links { gap: 12px 24px; margin-top: 24px; }
  .case-hero { margin-bottom: 26px; }
  .project-facts { padding-block: 22px; gap: 20px 18px; }
  .case-contents { gap: 8px 20px; }
  .case-section { margin-top: 52px; scroll-margin-top: 28px; }
  .case-kicker { margin-bottom: 16px; }
  .case-section h2 { font-size: 26px; letter-spacing: -.7px; margin-bottom: 22px; }
  .case-section p:where(:not(.case-kicker):not(.walkthrough-caption)) { font-size: 17px; line-height: 1.8; margin-bottom: 21px; }
  .case-section .assumption { font-size: 16px; padding-left: 18px; }
  .case-section .process-note p { font-size: 15px; margin-bottom: 14px; }
  .destination-map { margin-top: 26px; }
  .destination-map li { padding: 22px 16px 24px 0; }
  .destination-map li + li { padding-left: 18px; }
  .destination-map li:nth-child(3) { padding-left: 0; }
  .case-section .destination-map p { font-size: 14px; margin-bottom: 12px; }
  .task-walkthrough figure { display: block; }
  .task-walkthrough figure > a { padding: 28px 32px; }
  .task-walkthrough img { max-width: 240px; }
  .task-walkthrough figcaption { padding-top: 20px; }
  .task-walkthrough h3 { font-size: 22px; }
  .case-section .task-walkthrough p { font-size: 15px; margin: 0; }
  .revision-note { gap: 16px; }
  .revision-note strong { font-size: 14px; }
  .demo-section { grid-template-columns: 1fr; gap: 30px; padding-block: 28px; }
  .demo-copy h2 br { display: none; }
  .case-section .demo-description p { font-size: 14px; }
  .demo-figure { max-width: 264px; }
  .video-device { border-radius: 37px; }
  .video-device video { border-radius: 26px; }
  .scope-list > div { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding-block: 18px; }
  .scope-list dt { font-size: 13px; }
  .scope-list dd { font-size: 14px; }
  .case-section .validation-tasks p { font-size: 15px; margin: 0; }
  .case-closing { display: block; margin-top: 52px; padding-top: 28px; }
  .case-closing h2 { font-size: 26px; }
  .case-closing .text-link { margin-top: 24px; }
  .asset-credit { margin-top: 30px; }
}
@media (max-width: 359px) {
  .roam-heading h1 { font-size: 35px; }
  .revision-note { grid-template-columns: 1fr; gap: 12px; }
  .revision-arrow { transform: rotate(90deg); justify-self: start; }
  .scope-list > div { grid-template-columns: 1fr; gap: 6px; }
}
