/* A consistent reading scale; original palette and company artwork are retained. */
:root{--header-height:82px}
html{scroll-padding-top:var(--header-height)}
.header{height:var(--header-height)}
.navigation>a{white-space:nowrap}
.heading-grid>p,.layer-body>p,.context-heading>p,
.open-copy>p:not(.eyebrow):not(.section-lead),.open-principles p,
.solution-tile>p,.patient-copy>p:not(.eyebrow):not(.section-lead),
.patient-benefits>li,.trust-body>p,.trust-points p,.company-intro>p,
.team-info>p,.contact-inner p:not(.eyebrow){font-size:1rem;line-height:1.75}
.eyebrow,.hero-copy .eyebrow,.patient-copy>.eyebrow,.trust .eyebrow,
.contact-inner .eyebrow,.mini-label,.layer-name>.mini-label,
.solution-tile-top .mini-label,.section-number,.tag-row>span{font-size:0.75rem;line-height:1.6}
.hero-copy .eyebrow{letter-spacing:.07em}
.hero-description{font-size:1.1875rem;line-height:1.7;margin-bottom:28px;max-width:470px}
.hero-patient-link{font-size:0.875rem;line-height:1.7}
.hero-actions{flex-wrap:wrap}
.hero-actions .button,.hero-actions .text-link,.button-small,.text-link,
.patient-copy .text-link,.contact-actions .button{font-size:0.875rem}
.hero-bottom{font-size:0.75rem;gap:18px}
.standards-inner>span:first-child,.standards-inner>a{font-size:0.875rem}
.trust-points strong{font-size:1rem}
.development-note p{font-size:0.875rem;line-height:1.8}
.team-info>span{font-size:0.75rem;line-height:1.65}
.footer-top>p,.footer-bottom,.footer-bottom>a{font-size:0.75rem}
.footer-top>nav>a,.contact-email,.solution-tile-link{font-size:0.875rem}

/* The visible art stays the same; links and buttons get reliable hit areas. */
.brand,.menu-toggle,.navigation>a,.hero-patient-link,.text-link,
.standards-inner>a,.hero-bottom>a,.explain-button,.team-photo-wrap>a,
.contact-email,.footer-top>nav>a,.footer-bottom>a{min-height:44px;min-width:44px}
.menu-toggle{width:44px;align-items:center}
.hero-patient-link,.footer-top>nav>a,.footer-bottom>a,.contact-email{display:flex;align-items:center;gap:8px}
.hero-patient-link{flex-wrap:wrap}
.navigation>a:not(.button){display:flex;align-items:center}
.team-photo-wrap>a{justify-content:center}
.footer-top>nav{align-items:center}
.footer-top>nav>a{padding-block:10px}
.hero-patient-link>span{display:none}

/* Let the diagram grow with its text rather than shrinking it at breakpoints. */
.ecosystem-heading{font-size:0.75rem;letter-spacing:.06em;padding:18px}
.diagram-label,.ecosystem-footer>span:last-child{display:none}
.ecosystem-map{height:auto;display:grid;gap:28px;margin:24px 18px}
.map-lines{display:none}
.source-row,.ontology-core,.policy-node,.agent-row{position:relative;inset:auto;width:auto}
.source-row{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.source-node{height:auto;min-height:100px;padding:12px 6px;gap:7px}
.source-node>span{font-size:0.8125rem;line-height:1.4;white-space:normal}
.source-node>small{font-size:0.75rem;line-height:1.5;color:#a4bdce}
.ontology-core{padding:20px;justify-content:center;text-align:center}
.ontology-core>div{gap:7px}
.core-caption{font-size:0.75rem;letter-spacing:.08em}
.ontology-core strong{font-size:1.3125rem;line-height:1.35}
.ontology-core small{font-size:0.75rem;color:#b0d9dc}
.policy-node{height:auto;min-height:58px;padding:14px;font-size:0.875rem;flex-wrap:wrap}
.policy-tag{font-size:0.75rem}
.agent-row{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.agent-node{padding:16px 12px;gap:10px;min-width:0;align-items:flex-start}
.agent-node strong{font-size:0.875rem;white-space:normal;line-height:1.45}
.agent-node small{font-size:0.75rem;color:#a4bdce;line-height:1.5}
.ontology-core:before,.policy-node:before,.agent-row:before{content:"";position:absolute;left:50%;top:-29px;width:1px;height:28px;background:#80a8c1}
.ecosystem-footer{font-size:0.75rem;line-height:1.6;padding:16px 18px}

/* The interactive example uses the same readable scale at every size. */
.studio-label,.studio-instruction,.studio-note p,.synthetic-patient small,
.policy-version,.policy-version>span,.context-result-head .mini-label,
.context-count,.fact-source,.fact-status,.studio-foot>span,
.context-bottom,.lineage-detail>div,.lineage-detail strong,.lineage-detail p{font-size:0.75rem;line-height:1.65}
.studio-label{letter-spacing:.06em}
.workflow-tab strong,.synthetic-patient strong{font-size:1rem}
.workflow-tab small{font-size:0.75rem;white-space:normal;line-height:1.5}
.workflow-tab{padding:16px 12px;align-items:flex-start}
.workflow-tab .tab-arrow{display:none}
.context-explanation p{font-size:0.875rem;line-height:1.75}
.studio-main-head,.context-result-head,.studio-foot{flex-wrap:wrap;gap:16px}
.fact-row{grid-template-columns:20px minmax(0,1.4fr) minmax(0,1fr) 64px;gap:12px;padding:14px 0}
.fact-name{font-size:0.875rem;line-height:1.5}
.fact-icon{width:18px;height:18px;font-size:0.75rem}
.explain-button{font-size:0.875rem}
.policy-version{color:#a4bdce}
.fact-source,.studio-note,.context-bottom{color:#a4bdce}
.lineage-detail>div{gap:20px}

/* Captions in the illustrative clinical view are part of its message. */
.synthetic-label,.patient-profile p,.patient-domain-grid small,
.finding-heading,.finding-trace>span,.patient-preview-foot{font-size:0.75rem;line-height:1.6}
.patient-domain-grid strong{font-size:0.875rem;line-height:1.5}
.medication-finding p{font-size:0.875rem;line-height:1.75}
.finding-heading>span:last-child{margin-left:0;font-size:0.75rem}
.patient-profile{gap:14px}
.patient-profile p,.patient-preview-foot{color:#536b7c}
.synthetic-label{color:#536b7c}
.finding-heading,.medication-finding p{color:#756242}

/* Keep all section links available without squeezing the expanded navigation. */
@media(max-width:1100px){
  :root{--header-height:72px}
  .header-inner{position:relative}
  .menu-toggle{display:flex;background:transparent;padding:12px 4px;flex-direction:column;justify-content:center;gap:6px}
  .menu-toggle>span{display:block;width:24px;height:1.5px;background:var(--ink);transition:transform .2s}
  .menu-toggle[aria-expanded=true]>span:first-child{transform:translateY(3.75px) rotate(45deg)}
  .menu-toggle[aria-expanded=true]>span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  .navigation{display:none;position:absolute;left:-24px;right:-24px;top:calc(var(--header-height) - 1px);background:#f7f8f6;border-bottom:1px solid #d4e0e5;padding:22px 24px 28px;box-shadow:0 15px 25px #1123370c;gap:0;align-items:stretch;max-height:calc(100dvh - var(--header-height));overflow-y:auto}
  .navigation.is-open{display:flex;flex-direction:column}
  .navigation>a:not(.button){font-size:1rem;padding:12px 0;border-bottom:1px solid #dce4e7}
  .navigation>.button{margin-top:16px;align-self:flex-start}
}

@media(max-width:1180px){
  .context-studio{grid-template-columns:260px minmax(0,1fr)}
  .studio-sidebar,.studio-main{padding:24px}
  .source-node>small{display:none}
}
@media(min-width:901px) and (max-width:1050px){
  .hero-inner{grid-template-columns:1fr 1fr;gap:28px}
  .agent-node{display:block}.agent-node>svg,.agent-symbol{margin-bottom:10px}
  .policy-tag{display:none}
  .context-studio{grid-template-columns:230px minmax(0,1fr)}
  .fact-row{grid-template-columns:20px minmax(0,1fr) 64px}
  .fact-source{grid-column:2;grid-row:2;margin-top:-8px}
  .fact-status{grid-column:3;grid-row:1 / 3}
}
@media(max-width:1000px){
  .patient-grid{grid-template-columns:1fr;gap:40px}
  .patient-preview{width:100%;max-width:600px;margin-inline:auto}
}
@media(max-width:900px){
  .context-studio{grid-template-columns:1fr}
  .hero-description{font-size:1.125rem}
  .footer-top{flex-wrap:wrap;gap:24px}
  .footer-top>p{margin-left:0}
}
@media(max-width:650px){
  :root{--header-height:68px}
  .hero-copy .eyebrow{font-size:0.75rem;align-items:flex-start;gap:8px}
  .hero-copy .status-dot{margin-top:6px;flex:none}
  .hero-patient-link{font-size:0.875rem}
  .hero-bottom{flex-wrap:wrap;justify-content:flex-start;column-gap:18px;row-gap:4px}
  .hero-bottom>a{margin-left:auto}
  .ecosystem{max-width:500px}
  .ecosystem-heading{font-size:0.75rem}
  .ecosystem-map{margin:24px 14px}
  .source-node{min-height:86px}
  .source-node>span{font-size:0.75rem}
  .ontology-core{padding:20px 14px}
  .ontology-core strong{font-size:1.25rem}
  .policy-tag{display:none}
  .agent-node{display:block;padding:14px 10px}
  .agent-node>svg,.agent-symbol{display:block;margin-bottom:10px}
  .agent-node strong{font-size:0.875rem}.agent-node small{font-size:0.75rem}
  .studio-sidebar,.studio-main{padding:22px 18px}
  .workflow-tabs{gap:8px}
  .workflow-tab{padding:14px 10px;gap:8px}
  .workflow-tab strong{font-size:0.875rem}
  .workflow-tab small{font-size:0.75rem}
  .workflow-tab .workflow-icon{display:none}
  .studio-main-head{align-items:flex-start}
  .synthetic-patient small{max-width:190px}
  .policy-version{text-align:left}
  .context-result-head h3{font-size:1.375rem}
  .fact-row{grid-template-columns:18px minmax(0,1fr) 60px;gap:8px;padding:14px 0}
  .fact-name{font-size:0.875rem}.fact-source{font-size:0.75rem;margin-top:-5px}
  .fact-status{font-size:0.75rem}
  .lineage-detail{margin-inline:-18px;padding-inline:18px}
  .lineage-detail>div{flex-wrap:wrap;gap:4px}.lineage-detail strong{text-align:left}
  .solution-tile{padding:26px;min-height:360px}
  .solution-tile-top .mini-label{max-width:230px;font-size:0.75rem}
  .patient-preview{padding:22px 18px}
  .patient-preview-top{flex-wrap:wrap;gap:12px}
  .patient-domain-grid>span{padding:12px 10px}
  .patient-domain-grid small{font-size:0.75rem;letter-spacing:.03em}
  .team-member{grid-template-columns:110px minmax(0,1fr);gap:20px}
  .team-photo-wrap{height:170px}
  .team-info h3{font-size:1.375rem}
  .team-info>span{font-size:0.75rem}.team-info>p{font-size:1rem}
  .contact-inner .eyebrow{font-size:0.75rem}
  .footer-top>p{font-size:0.75rem;padding-left:0;border-left:0}
  .footer-top>nav{gap:0 24px}
  .footer-bottom{grid-template-columns:1fr;font-size:0.75rem}
  .footer-bottom>a{grid-column:1;grid-row:auto;justify-self:start;font-size:0.875rem}
}
@media(max-width:370px){
  .hero h1{font-size:2.5rem}
  .team-member{grid-template-columns:1fr}
  .team-photo-wrap{height:260px;max-width:260px}
  .patient-domain-grid{grid-template-columns:1fr}
}

/* Bring the solutions introduction into view as soon as the section is opened. */
.solutions{padding-top:44px}
.solutions .section-heading>.eyebrow{margin-bottom:16px}
.solutions .solution-overview{margin-top:24px}

/* Short navigation sections still fill the area below the sticky header. */
.company,.solutions{min-height:calc(100vh - var(--header-height));min-height:calc(100svh - var(--header-height))}
.patient-preview{transform:none}

/* Laptop height is a layout constraint too. Keep every demo row and founder bio
   in the initial section view, using spacing and image height rather than tiny text. */
@media(min-width:901px) and (max-height:1000px){
  .context-section{padding-top:28px;padding-bottom:16px}
  .context-heading{margin-bottom:20px;gap:48px}
  .context-heading .eyebrow{margin-bottom:10px}
  .context-heading h2{font-size:2rem}
  .studio-sidebar{padding:20px 16px}
  .studio-label{margin-bottom:18px}
  .studio-instruction{margin-bottom:10px}
  .studio-main{padding:16px 20px 0}
  .studio-main-head{padding-bottom:10px}
  .context-result-head{padding:12px 0}
  .context-result-head h3{font-size:1.25rem}
  .fact-row{grid-template-columns:20px minmax(0,1.4fr) minmax(0,1fr) 64px;min-height:32px;padding:5px 0}
  .fact-source,.fact-status{grid-column:auto;grid-row:auto;margin-top:0}
  .context-explanation{padding:10px 0}
  .context-explanation p{line-height:1.6}
  .studio-foot{margin-inline:-20px;padding:8px 20px}
  .context-bottom{margin-top:12px}
  .company{padding-top:44px;padding-bottom:44px}
  .company-intro{margin-bottom:24px}
  .company-intro .eyebrow{margin-bottom:14px}
  .company-intro h2{font-size:2.25rem}
  .team-photo-wrap{width:190px;max-width:100%;height:190px}
  .team-info{padding-top:16px}
  .team-info>span{margin-bottom:10px}
  .team-info>p{line-height:1.6}
}
