/* Mobile first. Local assets and system fonts; Tally owns its popup styling. */
:root {
  color-scheme: light;
  --navy: #073266;
  --teal: #087984;
  --ink: #263e52;
  --muted: #526779;
  --gold: #a07830;
  --line: #d9e5e9;
  --pale: #f3f8fa;
  --white: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scroll-padding-bottom: 96px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #c5edf0; color: var(--navy); }
a { color: var(--navy); text-underline-offset: .25em; }
button, summary { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 3px; }
main:focus, .chapter:focus, .site-header:focus { outline: none; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 20; padding: 10px 16px; min-height: 44px; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; width: min(210px, 65%); min-height: 44px; flex-shrink: 1; }
.brand img { display: block; width: 100%; height: auto; }
.desktop-navigation { display: none; }
.mobile-navigation { position: relative; flex: 0 0 auto; }
.mobile-navigation summary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; min-width: 80px; padding: 8px; list-style: none; color: var(--navy); cursor: pointer; font-weight: 600; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation summary span { font-size: 22px; line-height: 1; }
.mobile-navigation[open] summary span { transform: rotate(45deg); }
.mobile-navigation nav { position: absolute; z-index: 10; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 40px)); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 30px #07326618; }
nav a { display: flex; align-items: center; min-height: 48px; min-width: 44px; padding: 8px 16px; font-size: 16px; font-weight: 600; text-decoration: none; }
nav a:hover { background: var(--pale); text-decoration: underline; }
p { margin: 0 0 1.5em; overflow-wrap: break-word; }
h1, h2 { color: var(--navy); font-weight: 500; }
h1 { font-size: clamp(38px, 11vw, 56px); line-height: 1.1; letter-spacing: -.06em; white-space: nowrap; margin: 0 0 18px; }
h2 { max-width: 810px; font-size: clamp(32px, 8.7vw, 40px); line-height: 1.18; letter-spacing: -.035em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.hero { display: grid; gap: 26px; padding-block: 24px 48px; }
.hero-copy { max-width: 640px; }
.beta { display: inline-block; padding: 7px 12px; margin-bottom: 14px; background: var(--navy); color: white; border-radius: 5px; font-size: 16px; font-weight: 650; line-height: 1.5; }
.beta em, .patent-notice em { font-style: normal; }
.eyebrow { color: var(--teal); font-size: 14px; line-height: 1.6; margin-bottom: 14px; letter-spacing: .035em; }
.intro { font-size: 18px; line-height: 1.6; margin-bottom: 16px; }
.hero .intro { font-size: 19px; }
.support { max-width: 500px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.support strong { font-weight: 500; }
.discover { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 4px; border-bottom: 1px solid var(--gold); text-decoration: none; font-weight: 600; }
.discover span { color: var(--gold); font-size: 22px; }
.discover:hover { border-bottom-color: var(--navy); }
.hero-art { width: min(100%, 400px); justify-self: center; background: radial-gradient(ellipse at center, #f0f8fa, white 72%); }
svg { display: block; width: 100%; height: auto; }
svg text { text-anchor: middle; font-family: inherit; font-size: 16px; fill: var(--navy); font-weight: 500; }
.desktop-diagram { display: none; }
.mobile-diagram { display: block; }
.orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.thread { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.resource-node rect { fill: white; stroke: var(--line); }
.node-icon { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.patient-halo { fill: #e0f1f1; }
.patient-core { fill: var(--teal); }
.person { fill: none; stroke: white; stroke-width: 1.8; }
svg .patient-label, svg .inverse-label { fill: white; font-size: 16px; }
.gold-dot { fill: var(--gold); }
.art-footnote { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.art-footnote span { width: 30px; height: 1px; background: var(--gold); }
.chapter { padding-block: 48px; }
.chapter-heading { margin-bottom: 28px; }
.chapter-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.chapter-number { color: var(--teal); font-size: 13px; letter-spacing: .1em; }
.back-to-top { position: fixed; z-index: 5; right: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 28px; background: var(--white); color: var(--navy); box-shadow: 0 3px 16px #07326612; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.back-to-top:hover { background: var(--navy); color: var(--white); }
.back-to-top span { font-size: 20px; line-height: 1; }
.vision, .infrastructure { background: var(--pale); }
.story-layout, .application-layout, .infrastructure-layout { display: grid; gap: 30px; }
.prose { min-width: 0; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); font-weight: 650; }
.story-opening { color: var(--navy); font-size: 18px; }
.conviction { margin-block: 30px; padding-left: 20px; border-left: 2px solid var(--gold); font-size: 22px; line-height: 1.5; letter-spacing: -.02em; }
.conviction strong { font-weight: 500; }
.foundation-art { width: min(100%, 400px); justify-self: center; }
.physician-core { fill: var(--navy); }
.section-intro { max-width: 810px; font-size: 18px; line-height: 1.7; }
.application-layout { margin-top: 36px; }
.application-title { margin: 0 0 20px; color: var(--navy); font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: .025em; }
.application-art { width: min(100%, 400px); justify-self: center; padding-block: 20px 12px; background: #f6f9fb; border-radius: 6px; }
.mdt-layout .application-art { grid-row: 2; }
.diagram-label { display: block; padding-inline: 16px; margin-bottom: 20px; color: var(--navy); font-size: 14px; letter-spacing: .08em; }
.diagram-label b { margin-left: 8px; font-size: 18px; }
.ai-node rect { fill: #edf4f8; stroke: #bbd0dd; }
.ai-node text { font-size: 20px; }
svg .diagram-note { fill: var(--muted); font-size: 16px; }
.clinical-principle { padding: 20px; border-left: 2px solid var(--gold); background: var(--pale); font-size: 19px; line-height: 1.5; }
.pool-layout { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.pool-layout .application-art { background: #f0f8f7; }
.human-node circle { fill: white; stroke: #9fc9ca; stroke-width: 1.5; }
.human-symbol { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }
.closing-thought { max-width: 940px; margin: 42px auto 0; color: var(--navy); font-size: 25px; line-height: 1.5; letter-spacing: -.03em; }
.closing-thought strong { font-weight: 500; }
.app-surface { fill: white; stroke: #cbdbe4; }
svg .app-label { font-size: 23px; letter-spacing: .05em; }
.foundation-outline { fill: none; stroke: #dce6ec; }
.os-surface { fill: var(--navy); }
svg .os-label { fill: white; font-size: 22px; letter-spacing: .06em; }
.access-point { fill: var(--pale); stroke: var(--gold); stroke-width: 1.8; }
.regional-compliance { border-bottom: 1px solid var(--line); }
.compliance-layout { display: grid; gap: 32px; align-items: start; }
.compliance-art { justify-self: center; }
.concept-art svg .compliance-legal { font-size: 20px; fill: var(--muted); }
.compliance-copy { display: grid; gap: 24px; }
.compliance-copy p { margin: 0; }
.team-members { margin-top: 32px; }
.team-member { padding-block: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px 18px; align-items: start; }
.member-portrait { display: block; width: 80px; height: 90px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; filter: saturate(.72); }
.team-member > p { grid-column: 1 / -1; }
.member-name, .member-title { color: var(--navy); font-size: 22px; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 18px; }
.member-name strong, .member-title { font-weight: 600; }
.member-title { font-size: 26px; font-style: normal; margin-bottom: 8px; }
.member-role { color: var(--navy); font-size: 18px; line-height: 1.4; margin-top: 4px; margin-bottom: 0; }
.member-identity { min-width: 0; margin-bottom: 0; }
.member-identity .member-name { margin-bottom: 0; }
.member-link { display: inline-flex; align-items: center; min-height: 44px; }
.member-link-pending { color: var(--navy); text-decoration: underline; text-underline-offset: .25em; }
.team-member p:last-child { margin-bottom: 0; max-width: 680px; }
.contact { background: #edf6f7; padding-bottom: 0; }
.contact .chapter-heading { text-align: center; }
.contact .chapter-tools { justify-content: center; }
.contact h2 { margin-inline: auto; }
.contact-copy { max-width: 640px; margin-inline: auto; text-align: center; }
.contact-action { margin-block: 24px 16px; }
.contact-action button, .contact-fallback { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 352px); min-height: 56px; padding: 14px 24px; border: 1px solid var(--navy); border-radius: 5px; background: var(--navy); color: white; font-size: 16px; letter-spacing: .07em; line-height: 1.7; text-decoration: none; cursor: pointer; }
.contact-action button:hover, .contact-fallback:hover { background: var(--teal); }
.sign-off { margin-top: 44px; padding: 0 16px 96px; background: white; text-align: center; }
.end-thread { position: relative; display: block; width: 1px; height: 60px; margin: 0 auto 28px; background: var(--gold); }
.end-thread::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.signature { color: var(--navy); font-size: 32px; letter-spacing: -.045em; line-height: 1.3; margin-bottom: 22px; }
.signature strong { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-weight: 500; }
.signature-logo { display: block; width: min(100%, 300px); height: auto; }
.patent-notice { max-width: 640px; margin: 24px auto 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.7; }
.privacy-notice { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.geographic-presence { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  /* Every phase ends by 3s (37.5% of 8s), leaving a full 5s still. */
  .is-connected .thread { stroke-dasharray: 1; animation: var(--draw, draw-late) 8s ease-in-out infinite both; }
  .is-connected .reveal-node { animation: var(--reveal, reveal-1) 8s ease-out infinite both; }
  .draw-early { --draw: draw-early; }
  .draw-network-1 { --draw: draw-network-1; }
  .draw-network-2 { --draw: draw-network-2; }
  .draw-network-3 { --draw: draw-network-3; }
  .draw-foundation { --draw: draw-foundation; }
  .reveal-2 { --reveal: reveal-2; }
  .reveal-3 { --reveal: reveal-3; }
  .reveal-4 { --reveal: reveal-4; }
  @keyframes reveal-1 { 0% { opacity: 0; } 5%, 100% { opacity: 1; } }
  @keyframes reveal-2 { 0%, 5% { opacity: 0; } 10%, 100% { opacity: 1; } }
  @keyframes reveal-3 { 0%, 10% { opacity: 0; } 15%, 100% { opacity: 1; } }
  @keyframes reveal-4 { 0%, 15% { opacity: 0; } 20%, 100% { opacity: 1; } }
  @keyframes draw-early { 0% { stroke-dashoffset: 1; } 20%, 100% { stroke-dashoffset: 0; } }
  @keyframes draw-late { 0%, 20% { stroke-dashoffset: 1; } 37.5%, 100% { stroke-dashoffset: 0; } }
  @keyframes draw-network-1 { 0% { stroke-dashoffset: 1; } 32.5%, 100% { stroke-dashoffset: 0; } }
  @keyframes draw-network-2 { 0%, 2.5% { stroke-dashoffset: 1; } 35%, 100% { stroke-dashoffset: 0; } }
  @keyframes draw-network-3 { 0%, 5% { stroke-dashoffset: 1; } 37.5%, 100% { stroke-dashoffset: 0; } }
  @keyframes draw-foundation { 0%, 5% { stroke-dashoffset: 1; } 37.5%, 100% { stroke-dashoffset: 0; } }
}
@media (min-width: 600px) {
  .shell { width: min(1240px, calc(100% - 64px)); }
  .header-inner { min-height: 88px; }
  .brand { width: 242px; }
  .hero { padding-block: 40px 64px; }
  h1 { font-size: clamp(56px, 8vw, 76px); }
  h2 { font-size: 40px; }
  .mobile-diagram { display: none; }
  .desktop-diagram { display: block; }
  .hero-art, .foundation-art, .application-art { width: min(100%, 460px); }
  .chapter { padding-block: 64px; }
  .chapter-heading { margin-bottom: 36px; }
  .application-art { padding-inline: 12px; }
  .contact { padding-bottom: 0; }
  .sign-off { padding-inline: 32px; }
  .signature strong { flex-direction: row; flex-wrap: wrap; gap: 24px; }
}
@media (min-width: 1000px) {
  body { font-size: 17px; }
  .shell { width: min(1240px, calc(100% - 112px)); }
  .header-inner { min-height: 100px; }
  .desktop-navigation { display: flex; gap: 8px; }
  .desktop-navigation a { padding-inline: 10px; font-size: 14px; }
  .mobile-navigation { display: none; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-block: 64px 84px; }
  h1 { font-size: clamp(44px, 4.4vw, 66px); }
  h2 { font-size: 46px; }
  .hero-art { width: 100%; }
  .beta { margin-bottom: 24px; }
  .intro { font-size: 21px; }
  .hero .intro { max-width: 520px; font-size: 22px; }
  .support { margin-bottom: 26px; }
  .chapter { padding-block: 88px; }
  .chapter-heading { margin-bottom: 48px; }
  .story-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
  .infrastructure-layout { grid-template-columns: 1.25fr 1fr; gap: 76px; align-items: start; }
  .compliance-layout { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .compliance-copy { font-size: 18px; }
  .story-opening, .section-intro { font-size: 20px; }
  .foundation-art, .mdt-layout .application-art { position: sticky; top: 32px; }
  .conviction { font-size: 25px; }
  .application-layout { grid-template-columns: .95fr 1.25fr; gap: 76px; align-items: start; margin-top: 60px; }
  .mdt-layout .application-art { grid-row: auto; }
  .pool-layout { grid-template-columns: 1.25fr .95fr; align-items: center; padding-top: 60px; }
  .closing-thought { margin-top: 64px; font-size: 33px; text-align: center; }
  .team-members { margin-top: 48px; }
  .team-member { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px; padding-block: 32px; }
  .member-portrait { width: 100px; height: 112px; }
  .team-member > p { grid-column: auto; }
  .member-name { font-size: 25px; }
  .member-title { font-size: 29px; }
  .member-role { font-size: 20px; }
  .contact { padding-bottom: 0; }
  .sign-off { margin-top: 64px; padding-bottom: 104px; }
  .back-to-top { right: 24px; bottom: 20px; }
  .signature { font-size: 42px; }
  .signature-logo { width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread { stroke-dasharray: none; stroke-dashoffset: 0; }
}
@media print {
  body { font-size: 11pt; }
  .shell { width: 100%; }
  nav, .mobile-navigation, .skip-link, .discover, .back-to-top, .hero-art, .application-art, .foundation-art, .end-thread, .contact-action { display: none; }
  .site-header { border: 0; }
  .header-inner { min-height: auto; }
  .brand { width: 200px; }
  .hero, .story-layout, .application-layout, .infrastructure-layout, .team-member { display: block; padding: 0; }
  .hero { padding-top: 24px; }
  .chapter { padding-block: 24px; background: white; }
  h1 { font-size: 44pt; }
  h2 { font-size: 24pt; break-after: avoid; }
  .chapter-heading { margin-bottom: 24px; }
  .chapter-tools { display: none; }
  .team-member { padding-block: 16px; }
  .sign-off { margin-top: 24px; }
}
