/* Detail reading layout; the accepted homepage composition stays independent. */
.project-page { --muted: #47594f; }
.project-page .container { max-width: 1200px; }
.project-page .project-intro { padding-top: 22px; padding-bottom: 36px; }
.project-page .project-intro-grid { grid-template-columns: 1fr 1.12fr; align-items: center; gap: 56px; margin: 36px 0 40px; }
.project-page .project-intro h1 { font-size: clamp(38px, 3.9vw, 52px); line-height: 1.3; letter-spacing: -.025em; margin: 0 0 24px; }
.project-page .intro-deck { font-size: 16px; line-height: 1.9; max-width: 30em; }
.project-page .project-eyebrow { font-size: 12px; letter-spacing: .08em; }
.project-page .project-role { font-size: 14px; margin-top: 24px; }
.project-page .project-role span { font-size: 12px; }
.project-product { margin: 0; }
.project-product .visual-zoom { border-radius: 5px; overflow: hidden; }
.project-page .project-phases b { font-size: 15px; }
.project-page .project-phases p { font-size: 13px; line-height: 1.8; }
.project-page .back-link { font-size: 13px; }
.project-page .chapter-links a { font-size: 13px; }
.project-page .chapter-links a:after { transition: none; }
.project-page .story-chapter { padding: 72px 0; }
.project-page .chapter-heading { display: block; margin-bottom: 34px; }
.project-page .chapter-heading .section-label { font: 500 12px/1.7 "PingFang SC", sans-serif; letter-spacing: .04em; margin: 0 0 14px; }
.chapter-heading .section-label b { font: 12px/1.7 "SFMono-Regular", monospace; display: inline-block; margin-right: 12px; }
.project-page .chapter-heading h2 { font-size: clamp(28px, 2.6vw, 34px); font-weight: 600; line-height: 1.45; letter-spacing: -.02em; max-width: 28em; margin: 0; text-wrap: balance; }
.project-page .chapter-heading > p { padding: 0; margin: 18px 0 0; max-width: 47em; font-size: 16px; line-height: 1.9; }
.project-page .story-explanation { display: block; padding: 0; margin-bottom: 24px; }
.project-page .story-explanation h3 { font-size: 24px; line-height: 1.5; margin-bottom: 14px; font-weight: 600; }
.project-page .story-explanation p { font-size: 16px; line-height: 1.9; max-width: 47em; }
.project-page #transformation > .story-explanation { padding-top: 36px; }
.project-page .deep-dive { margin-top: 40px; }
.project-page .deep-dive > summary { font-size: 22px; line-height: 1.5; padding: 26px 44px 22px 0; font-weight: 600; text-wrap: balance; }
.project-page .deep-dive > summary small { display: block; font-size: 12px; line-height: 1.7; font-weight: 500; margin: 0 0 8px; }
.project-page .deep-dive > summary:after { top: 45px; right: 8px; font-size: 27px; }
.project-page .dive-content { padding: 0 0 16px; }
.project-page .dive-content > p { max-width: 47em; font-size: 16px; line-height: 1.9; margin-bottom: 28px; }
.project-page .role-columns { gap: 56px; }
.project-page .role-columns h4 { font-size: 17px; line-height: 1.6; }
.project-page .role-columns li { font-size: 15px; line-height: 1.9; margin-top: 5px; }
.project-page figcaption { font-size: 13px; line-height: 1.8; margin-top: 12px; }
.project-page figcaption strong { font-size: 14px; line-height: 1.7; margin-bottom: 3px; }
.project-page .evidence-caption, .project-page .dive-content > .evidence-caption { font-size: 12px; line-height: 1.8; max-width: none; margin: 16px 0 0; }
.project-page .chapter-outcome { gap: 24px; margin-top: 36px; }
.project-page .chapter-outcome strong { font-size: 18px; line-height: 1.7; }
.project-page .chapter-outcome p { font-size: 15px; line-height: 1.9; }
.project-page .chapter-transition { font-size: 15px; line-height: 1.9; max-width: 47em; margin: 28px 0 0; }
.project-page .comparison-header h3 { font-size: 23px; line-height: 1.5; }
.project-page .comparison-header small, .project-page .comparison-header > div:first-child { font-size: 12px; }
.project-page .comparison-header p, .project-page .business-compare-row dt { font-size: 14px; line-height: 1.8; }
.project-page .business-compare-row dd { font-size: 15px; line-height: 1.85; }
.project-page .business-evidence { margin-top: 36px; }
.project-page .business-evidence strong { font-family: "PingFang SC", sans-serif; font-size: 32px; font-weight: 500; }
.project-page .business-evidence span { font-size: 13px; line-height: 1.8; }
.project-page .channel-layout { grid-template-columns: 1fr 1.1fr; gap: 28px; }
.project-page .channel-blueprint > header { font-size: 15px; line-height: 1.7; }
.project-page .channel-blueprint li { grid-template-columns: 22px 1fr; gap: 5px 14px; padding: 16px 22px; }
.project-page .channel-blueprint li strong { font-size: 15px; }
.project-page .channel-blueprint li p { grid-column: 2; font-size: 13px; line-height: 1.8; }
.project-page .channel-scope small { font-size: 12px; }
.project-page .channel-scope h4 { font-size: 18px; line-height: 1.7; }
.project-page .channel-scope p { font-size: 15px; line-height: 1.9; }
.project-page .channel-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; gap: 28px; }
.project-page .channel-gallery figure:first-child { grid-column: 1/-1; }
.project-page .project-close { padding: 64px 0; }
.project-page .project-close h2 { max-width: 24em; font: 500 32px/1.5 "PingFang SC", sans-serif; margin-bottom: 32px; text-wrap: balance; }
.project-page .contribution-row { grid-template-columns: 130px 1fr 1fr; gap: 28px; padding: 25px 0; }
.project-page .contribution-row h3 { font-size: 17px; }
.project-page .contribution-row p { font-size: 15px; line-height: 1.85; }
.device-context { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 48px; align-items: center; margin: 40px 0 32px; }
.context-scene .visual-zoom { overflow: hidden; border-radius: 5px; }
.service-context .service-path { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; margin: 0; }
.service-context .service-path li, .service-context .service-path li:first-child { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; padding: 0 0 0 20px; }
.service-context .service-path li:before, .service-context .service-path li + li:before { content: ""; position: absolute; width: 5px; height: 5px; top: 10px; left: 0; border-radius: 50%; background: var(--brass); }
.service-context .service-path strong { font-size: 15px; }
.service-context .service-path span { font-size: 14px; margin: 0; line-height: 1.8; }
.store-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 34px 24px; align-items: start; }
.store-gallery .visual-zoom { padding: 5px; background: #222e2a; border-radius: 13px; }
.store-gallery img { border-radius: 9px; }
.store-gallery figcaption { padding-inline: 2px; }
.store-flow { margin-top: 38px; }
.store-flow > header { display: flex; align-items: baseline; gap: 28px; margin-bottom: 22px; }
.store-flow h3 { flex-shrink: 0; font-size: 19px; font-weight: 600; line-height: 1.6; margin: 0; }
.store-flow > header p { max-width: 40em; font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.brochure-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin: 0 0 44px; align-items: start; }
.brochure-gallery .visual-zoom, .business-scene .visual-zoom { overflow: hidden; border-radius: 5px; }
.product-control { grid-column: 2; grid-row: 1 / span 2; }
.product-components { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.business-scene { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; align-items: center; gap: 48px; margin: 0 0 40px; }
.business-scene-copy h3 { font-size: 24px; line-height: 1.5; margin: 0 0 18px; font-weight: 600; }
.business-scene-copy p { max-width: 35em; font-size: 16px; line-height: 1.9; }
.project-page .phone-gallery { gap: 20px; }

/* The architecture takes its palette and nested modules from the supplied PDF. */
.project-page .architecture-sheet { margin: 0; padding: 28px; background: #fff; border: 1px solid #d7dce4; border-radius: 8px; color: #20242c; }
.project-page .figure-heading { align-items: baseline; margin: 0 0 28px; }
.project-page .figure-heading h3 { font-size: 20px; font-weight: 600; }
.project-page .figure-heading span { font-size: 12px; color: #59636f; }
.framework-map { display: grid; gap: 24px; }
.framework-row { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 20px; align-items: center; }
.framework-label { font: 500 19px/1.5 "PingFang SC", sans-serif; margin: 0; }
.framework-access { --diagram-line: #547dc8; --diagram-tint: #eff4fc; }
.framework-products { --diagram-line: #d7b14e; --diagram-tint: #fcf2cf; }
.framework-apps { --diagram-line: #9172d4; --diagram-tint: #ece4fc; }
.framework-base { --diagram-line: #606fb4; --diagram-tint: #dce1f4; }
.framework-access-panel, .framework-group, .framework-services, .framework-storage { border: 2px solid var(--diagram-line); background: var(--diagram-tint); border-radius: 7px; padding: 13px; min-width: 0; }
.framework-access-panel { display: grid; grid-template-columns: .8fr .65fr 1.55fr 1.15fr; gap: 10px; padding-block: 22px; }
.framework-groups { display: grid; grid-template-columns: 1.35fr 1.08fr .88fr; gap: 10px; }
.framework-group h4, .framework-storage h4 { font: 500 14px/1.65 "PingFang SC", sans-serif; text-align: center; margin: 0 0 13px; }
.framework-cells { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.framework-access-panel > span, .framework-cells > span, .framework-services > span { display: flex; align-items: center; justify-content: center; padding: 9px 5px; min-height: 41px; border: 1.5px solid var(--diagram-line); border-radius: 5px; background: #fff; text-align: center; font-size: 12px; line-height: 1.55; }
.framework-saas .framework-cells { grid-template-columns: repeat(4,minmax(0,1fr)); }
.framework-saas .framework-cells > span:nth-last-child(-n+2) { grid-column: span 2; }
.framework-customer .framework-cells { grid-template-columns: repeat(3,minmax(0,1fr)); }
.framework-customer .framework-cells > span:nth-child(4) { grid-column: span 2; }
.framework-staff .framework-cells > span:last-child { grid-column: 1/-1; }
.framework-apps .framework-groups { grid-template-columns: 1.2fr .8fr 1.2fr; }
.framework-permissions .framework-cells { grid-template-columns: 1fr; }
.framework-foundation { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.framework-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.framework-storage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.database-group { display: flex; width: 100%; justify-content: space-around; gap: 9px; }
.database-group > span { position: relative; border: 2px solid var(--diagram-line); background: #fff; border-radius: 50% / 14%; min-width: 0; flex: 1; padding: 39px 4px 21px; text-align: center; font-size: 13px; }
.database-group > span:before { content: ""; position: absolute; top: -2px; left: -2px; right: -2px; height: 25px; border: 2px solid var(--diagram-line); border-radius: 50%; background: #fff; }
.project-page .framework-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.8; margin: 22px 0 0; color: #59636f; }
.framework-caption a { color: var(--forest); border-bottom: 1px solid #87988b; }

@media (max-width: 1100px) {
  .project-page .project-intro-grid { gap: 34px; }
  .framework-row { grid-template-columns: 60px minmax(0,1fr); gap: 12px; }
  .framework-label { font-size: 17px; }
  .framework-group, .framework-services, .framework-storage { padding: 9px; }
  .framework-groups { grid-template-columns: 1fr 1fr; }
  .framework-staff { grid-column: 1/-1; }
  .framework-staff .framework-cells { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .framework-staff .framework-cells > span:last-child { grid-column: auto; }
  .framework-apps .framework-groups { grid-template-columns: 1.1fr .8fr 1.1fr; }
  .framework-saas .framework-cells { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .framework-saas .framework-cells > span:nth-last-child(-n+2) { grid-column: auto; }
  .framework-customer .framework-cells { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .framework-customer .framework-cells > span:nth-child(4) { grid-column: auto; }
  .framework-customer .framework-cells > span:last-child { grid-column: 1/-1; }
  .device-context { grid-template-columns: 240px 1fr; gap: 28px; }
  .store-gallery { gap: 28px 18px; }
}
@media (max-width: 760px) {
  .project-page .project-intro { padding-top: 14px; padding-bottom: 26px; }
  .project-page .project-intro-grid { grid-template-columns: 1fr; gap: 28px; margin: 24px 0 30px; }
  .project-page .project-intro h1 { font-size: 40px; margin-bottom: 20px; }
  .project-page .intro-deck { font-size: 15px; line-height: 1.9; }
  .project-page .project-eyebrow { font-size: 10px; }
  .project-page .project-role { font-size: 13px; }
  .project-page .project-phases b { font-size: 14px; }
  .project-page .project-phases p { font-size: 13px; }
  .project-page .chapter-links a { font-size: 11px; }
  .project-page .story-chapter { padding: 44px 0; }
  .project-page .chapter-heading { margin-bottom: 26px; }
  .project-page .chapter-heading h2 { font-size: 28px; line-height: 1.5; }
  .project-page .chapter-heading .section-label { font-size: 11px; margin-bottom: 12px; }
  .project-page .chapter-heading > p { margin-top: 16px; font-size: 15px; line-height: 1.9; }
  .project-page .story-explanation h3 { font-size: 22px; }
  .project-page .story-explanation p, .project-page .dive-content > p { font-size: 15px; line-height: 1.9; }
  .project-page .deep-dive { margin-top: 32px; }
  .project-page .deep-dive > summary { font-size: 20px; padding-right: 32px; }
  .project-page .deep-dive > summary small { font-size: 11px; }
  .project-page .role-columns { grid-template-columns: 1fr; gap: 24px; }
  .project-page .role-columns li { font-size: 14px; }
  .project-page figcaption { font-size: 12px; }
  .project-page figcaption strong { font-size: 13px; }
  .project-page .chapter-transition, .project-page .chapter-outcome p { font-size: 14px; }
  .project-page .chapter-outcome strong { font-size: 17px; }
  .project-page .comparison-header h3 { font-size: 18px; }
  .project-page .comparison-header p { font-size: 12px; line-height: 1.8; }
  .project-page .business-compare-row dt { font-size: 12px; }
  .project-page .business-compare-row dd { font-size: 13px; line-height: 1.85; }
  .project-page .business-evidence strong { font-size: 26px; }
  .project-page .business-evidence span { font-size: 12px; }
  .project-page .business-evidence div { padding-inline: 10px; }
  .project-page .business-evidence div:first-child { padding-left: 0; }
  .project-page .channel-layout, .project-page .channel-gallery { grid-template-columns: 1fr; }
  .project-page .channel-blueprint li { grid-template-columns: 20px 1fr; padding: 15px 18px; }
  .project-page .channel-blueprint li p { font-size: 13px; }
  .project-page .channel-scope h4 { font-size: 17px; }
  .project-page .channel-scope p { font-size: 14px; }
  .project-page .project-close { padding: 44px 0; }
  .project-page .project-close h2 { font-size: 27px; }
  .project-page .contribution-row { grid-template-columns: 1fr; gap: 10px; }
  .project-page .contribution-row p { font-size: 14px; }
  .device-context { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .context-scene { max-width: 300px; margin-inline: auto; }
  .service-context .service-path li { grid-template-columns: 76px 1fr; gap: 10px; }
  .service-context .service-path li + li:after { left: 2px; height: 30px; }
  .service-context .service-path strong { font-size: 14px; }
  .service-context .service-path span { font-size: 13px; }
  .store-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 16px; }
  .store-gallery .visual-zoom { padding: 4px; border-radius: 10px; }
  .store-flow { margin-top: 30px; }
  .store-flow > header { display: block; margin-bottom: 20px; }
  .store-flow h3 { font-size: 18px; margin-bottom: 10px; }
  .store-flow > header p { font-size: 14px; }
  .brochure-gallery { grid-template-columns: 1fr; gap: 26px; margin-bottom: 32px; }
  .product-control { grid-column: auto; grid-row: auto; max-width: 360px; justify-self: center; }
  .product-components { gap: 16px; }
  .business-scene { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .business-scene > figure { max-width: 300px; margin-inline: auto; }
  .business-scene-copy h3 { font-size: 22px; }
  .business-scene-copy p { font-size: 15px; }
  .project-page .phone-gallery { gap: 24px 16px; }
  .project-page .architecture-sheet { padding: 20px 14px; }
  .project-page .figure-heading { display: block; margin-bottom: 22px; }
  .project-page .figure-heading h3 { font-size: 19px; }
  .project-page .figure-heading span { font-size: 12px; }
  .framework-row { grid-template-columns: 1fr; gap: 10px; }
  .framework-label { font-size: 16px; }
  .framework-map { gap: 24px; }
  .framework-access-panel { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .framework-groups, .framework-apps .framework-groups { grid-template-columns: 1fr; gap: 10px; }
  .framework-group, .framework-services, .framework-storage { padding: 12px; }
  .framework-group h4, .framework-storage h4 { font-size: 14px; }
  .framework-staff .framework-cells { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .framework-staff .framework-cells > span:last-child { grid-column: 1/-1; }
  .framework-foundation { grid-template-columns: 1fr; }
  .framework-storage { gap: 8px; padding: 18px 20px 20px; }
  .database-group { gap: 14px; }
  .database-group > span { max-width: 85px; font-size: 13px; }
  .project-page .framework-caption { font-size: 12px; margin-top: 18px; }
}
