/* One topic per viewport; native scrolling remains available for tall content. */
html { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav); }
.screen {
  min-height: calc(100svh - var(--nav));
  min-height: calc(100dvh - var(--nav));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-block: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hero.screen { padding-block:42px 65px; background:linear-gradient(#fff 55%,#f6f8fa); }
.nav-links { font-size:15px; gap:32px; }
.nav-wordmark { display:block; overflow:hidden; width:82px; height:22px; flex-shrink:0; }
.nav-actions .button.small { font-size:14px; min-height:38px; padding-inline:19px; }
.cover-logo { width:224px; height:224px; margin:0 auto 8px; object-fit:contain; }
/* The mark stays still while a soft brand-blue halo breathes around its silhouette. */
@media (prefers-reduced-motion:no-preference) {
  .cover-logo { animation:aims-halo-breathe 4.8s ease-in-out infinite; }
}
@keyframes aims-halo-breathe {
  0%,100% { filter:drop-shadow(0 0 9px rgb(26 143 193 / .16)) drop-shadow(0 0 22px rgb(26 143 193 / .10)); }
  50% { filter:drop-shadow(0 0 28px rgb(26 143 193 / .64)) drop-shadow(0 0 60px rgb(26 143 193 / .36)); }
}
.cover-wordmark { display:block; overflow:hidden; width:200px; height:47px; margin:-30px auto 24px; }
.hero h1 { display:flex; flex-direction:row; justify-content:center; align-items:baseline; gap:0; white-space:nowrap; font-size:clamp(36px,4.2vw,54px); line-height:1.25; margin-top:0; }
.hero h1 .hero-kicker { font-size:1em; font-weight:500; color:var(--ink); letter-spacing:inherit; }
.hero h1 .hero-statement { font-size:1em; font-weight:600; }
.hero-copy>.eyebrow { margin-top:23px; font-size:11px; letter-spacing:.09em; }
.hero-lead { margin-top:18px; font-size:16px; }
.hero-lead .brand-blue { color:var(--blue); }
.screen-scroll, .screen-next, .screen-counter { display:none !important; }
.hero-next {
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:#657e8f;
  border-radius:50%;
}
.hero-next:hover { color:var(--blue-dark); }
.demo-screen { background:#f5f7f9; gap:25px; }
.demo-screen-heading { display:flex; justify-content:space-between; align-items:end; gap:25px; }
.demo-screen-heading h2 { font-size:clamp(28px,3vw,40px); letter-spacing:-.045em; }
.demo-screen-heading .eyebrow { padding-bottom:4px; }
.demo-screen .hero-stage { margin-top:0; }
.demo-screen .hero-footnote { margin-top:0; }
.how-section .work-flow { margin-top:45px; }
.how-section .section-intro h2 { font-size:clamp(36px,4.4vw,60px); }
.how-section .replay { margin-top:30px; }
.product-section.screen { padding-block:36px; }
.product-layout,.product-layout.reverse { min-height:0; }
.product-section:nth-of-type(even) { background:#f9fafb; }
.notebook { margin:20px; padding:20px 22px; }
.notebook h4 { margin:20px 0 12px; }
.notebook-row { padding:12px 0; }
.notebook-row p { margin-top:3px; }
.suggestion { margin-top:17px; }
.suggestion p { line-height:1.75; }
.platform-principles { margin-top:60px; }
.contact-section.screen { padding-block:50px; }
.screen-counter { position:fixed; right:22px; bottom:22px; z-index:20; display:flex; align-items:center; gap:9px; font-size:10px; font-variant-numeric:tabular-nums; color:#7c8e9c; pointer-events:none; padding:8px 10px; border-radius:4px; background:rgba(248,250,252,.88); backdrop-filter:blur(8px); }
.counter-line { height:1px; width:20px; background:#abb8c2; }
#screen-current { color:#34556b; }
.site-footer { scroll-snap-align:end; }
.direction-symbol { display:block; overflow:hidden; flex-shrink:0; }
.agent-tabs .direction-symbol { width:48px; height:48px; margin-right:8px; }
.agent-reply .direction-symbol { width:30px; height:30px; }
@media(max-width:1100px) { .agent-tabs .direction-symbol { width:42px; height:42px; margin-right:5px; } }
@media(max-width:760px) { .agent-tabs .direction-symbol { width:38px; height:38px; margin-right:0; } }
@media(min-width:761px) and (max-height:790px) {
  .screen { padding-block:28px; }
  .hero.screen { padding-block:25px 54px; }
  .cover-logo { width:176px; height:176px; margin-bottom:4px; }
  .cover-wordmark { width:166px; height:39px; margin:-23px auto 21px; }
  .hero h1 { font-size:46px; margin-top:0; }
  .hero-copy>.eyebrow { margin-top:21px; }
  .hero-lead { margin-top:17px; font-size:15px; }
  .screen-scroll { bottom:17px; }
  .demo-screen { gap:18px; }
  .demo-screen-heading h2 { font-size:31px; }
  .demo-screen .stage-header { padding-block:12px; }
  .demo-screen .agent-tabs button { padding-block:10px; }
  .demo-screen .agent-conversation { padding:24px 30px; }
  .demo-screen .demo-question { min-height:48px; }
  .demo-screen .demo-visual { height:226px; }
  .demo-screen .demo-steps { margin-block:17px; }
  .how-section .section-lead { font-size:17px; margin-top:20px; }
  .how-section .section-intro h2 { font-size:46px; }
  .how-section .work-flow { margin-top:33px; }
  .work-flow li { padding-top:18px; }
  .work-flow h3 { margin-top:15px; }
  .flow-role { margin-top:18px; }
  .product-section.screen { padding-block:28px; }
  .product-identity { margin-bottom:16px; }
  .product-copy h3 { font-size:40px; }
  .product-lead { margin-top:16px; line-height:1.8; }
  .feature-lines { margin-top:18px; }
  .feature-lines li { padding-block:9px; }
  .product-copy>.inline-link { margin-top:20px; }
  .media-heading { padding-block:17px; }
  .notebook { margin:17px; padding:17px 20px; }
  .notebook h4 { margin-top:15px; }
  .notebook-row { padding-block:10px; }
  .notebook-row p { line-height:1.6; }
  .suggestion p { font-size:13px; }
  .team-board { padding:28px; }
  .safety-overview { padding:28px 30px 6px; }
  .safety-info { padding-block:20px 17px; margin-bottom:20px; }
  .event-flow li { padding-bottom:20px; }
  .platform-heading h2 { font-size:48px; }
  .platform-principles { margin-top:40px; }
  .case-copy h2 { font-size:40px; }
  .contact-section h2 { font-size:44px; }
}
@media(max-width:760px) {
  html { scroll-snap-type:y mandatory; scroll-padding-top:var(--nav); }
  .screen { padding-block:40px; }
  .hero.screen { padding-block:35px 65px; }
  .nav-links a { font-size:16px; }
  .nav-wordmark { width:74px; height:20px; }
  .nav-actions .button.small { font-size:13px; min-height:36px; padding-inline:13px; }
  .hero h1 { font-size:clamp(24px,6.8vw,30px); margin-top:0; }
  .cover-logo { width:156px; height:156px; margin-bottom:10px; }
  .cover-wordmark { width:146px; height:35px; margin:-24px auto 22px; }
  .hero-copy>.eyebrow { font-size:9px; letter-spacing:.025em; margin-top:21px; }
  .hero-lead { font-size:14px; }
  .screen-scroll { bottom:25px; font-size:14px; }
  .demo-screen { gap:22px; }
  .demo-screen-heading { display:block; }
  .demo-screen-heading h2 { font-size:27px; line-height:1.35; margin-top:10px; }
  .demo-screen-heading .eyebrow { font-size:10px; }
  .demo-screen .hero-footnote { margin-inline:25px; }
  .demo-screen .stage-header { padding-block:12px; }
  .demo-screen .agent-conversation { padding:21px; }
  .demo-screen .demo-visual { height:205px; }
  .demo-screen .demo-steps { margin-block:17px; }
  .product-section.screen { padding-block:42px; }
  .product-layout,.product-layout.reverse { gap:28px; }
  .notebook { margin:17px; padding:20px 18px; }
  .platform-principles { margin-top:38px; }
  .screen-counter { right:10px; bottom:10px; font-size:9px; padding:7px; gap:6px; }
  .counter-line { width:15px; }
  .contact-section.screen { padding-block:45px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-snap-type:none; } }

/* The demonstration screen has one central visual and one sentence. */
.focus-screen { gap:18px; padding-block:26px; background:#f5f7f9; }
.cover-directions { display:flex; align-items:center; justify-content:space-between; gap:38px; width:min(660px,100%); margin:33px auto 0; padding:0; list-style:none; }
.cover-directions li { padding:0; }
.cover-directions a { display:grid; place-items:center; gap:11px; padding:5px; width:100%; box-sizing:border-box; border-radius:14px; color:inherit; text-decoration:none; transition:transform .18s ease; }
.cover-directions a:hover { transform:translateY(-3px); }
.cover-directions a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.cover-directions .direction-symbol { width:64px; height:64px; }
.cover-directions a>span { font-size:16px; font-weight:500; color:#587385; white-space:nowrap; }
.focus-heading { text-align:center; }
.focus-heading .eyebrow { font-size:12px; font-weight:500; letter-spacing:.05em; }
.focus-heading h2 { margin-top:13px; font-size:clamp(30px,4vw,48px); line-height:1.25; letter-spacing:-.045em; }
.focus-heading>p:last-child { margin-top:16px; font-size:15px; line-height:1.8; color:#778693; }
.focus-panel { border:0; outline-offset:2px; }
.focus-visual { height:min(40dvh,365px); min-height:220px; display:flex; align-items:center; justify-content:center; }
.focus-visual>img { width:min(600px,90%); height:100%; object-fit:contain; mix-blend-mode:multiply; }
.focus-visual .focus-symbol { width:min(30dvh,260px); height:min(30dvh,260px); }
.focus-caption { text-align:center; color:#8b98a3; font-size:10px; margin-top:12px; }
.focus-navigation { max-width:840px; margin-top:8px; }
.focus-navigation .agent-tabs { background:none; border-bottom:0; padding:0; gap:28px; }
.focus-navigation .agent-tabs button { justify-content:center; padding:12px 3px; border-radius:0; border-bottom:2px solid transparent; gap:10px; }
.focus-navigation .agent-tabs button:hover { background:transparent; }
.focus-navigation .agent-tabs button[aria-selected="true"] { border-bottom-color:var(--blue); }
.focus-navigation .agent-tabs .tab-arrow { display:none; }
.focus-navigation .agent-tabs button>span:not(.tab-arrow) { font-size:13px; }
.focus-navigation .agent-tabs small { font-size:10px; }
.focus-navigation .direction-symbol { width:40px; height:40px; margin:0; }
.product-wordmark { display:block; overflow:hidden; height:16px; width:auto; max-width:100%; }
.product-identity .product-wordmark { height:18px; }
.screenshot-button { display:block; width:100%; padding:0; cursor:zoom-in; }
.screenshot-button>img { width:100%; height:auto; }
.image-dialog:has(img[src$="matter-workbench.png"]) { width:min(1440px,calc(100% - 32px)); }
.focus-heading #demo-agent-name { display:flex; align-items:center; justify-content:center; gap:12px; }
.focus-heading #demo-agent-name .product-wordmark { height:17px; }
.focus-navigation .agent-tabs .product-wordmark { height:11px; margin-inline:auto; }
.inline-wordmark { display:inline-block; height:10px; vertical-align:middle; }
.suggestion-label .inline-wordmark { margin-right:6px; }
.architecture-screen { background:#f5f7f9; padding-block:42px; }
.architecture-content { text-align:center; }
.architecture-content h2 { font-size:clamp(30px,3.8vw,44px); letter-spacing:-.04em; }
.architecture-map { max-width:1000px; margin:48px auto 0; }
.model-node { display:flex; flex-direction:column; align-items:center; gap:11px; position:relative; width:max-content; margin:auto; }
.model-node strong { font-size:42px; font-weight:600; letter-spacing:.015em; color:var(--blue); }
.model-node>span { font-size:14px; color:#718593; }
.model-node::after { content:''; position:absolute; top:calc(100% + 16px); left:50%; height:42px; border-left:1.5px solid #abc5d5; }
.agent-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:90px; position:relative; }
.agent-grid::before { content:''; position:absolute; left:12.5%; right:12.5%; top:-32px; border-top:1.5px solid #abc5d5; }
.agent-node { display:flex; flex-direction:column; align-items:center; position:relative; padding:0 10px; }
.agent-node::before { content:''; position:absolute; top:-32px; left:50%; height:27px; border-left:1.5px solid #abc5d5; }
.agent-node .direction-symbol { width:80px; height:80px; transition:transform .2s; }
.agent-node:hover .direction-symbol,.agent-node.is-selected .direction-symbol { transform:translateY(-4px); }
.agent-node-name { display:block; font-size:18px; font-weight:500; margin-top:15px; color:#3c5668; }
.agent-node .product-wordmark { height:16px; margin-top:13px; }
.agent-node:hover .agent-node-name,.agent-node.is-selected .agent-node-name { color:var(--blue); }
.architecture-caption { font-size:15px; color:#778b99; margin-top:44px; }
@media(min-width:761px) and (max-height:790px) {
  .architecture-screen { padding-block:30px; }
  .architecture-map { margin-top:32px; }
  .model-node strong { font-size:36px; }
  .agent-node .direction-symbol { width:70px; height:70px; }
  .architecture-caption { margin-top:32px; }
}
@media(max-width:760px) {
  .focus-screen { padding-block:36px; gap:26px; }
  .cover-directions { width:min(380px,100%); gap:18px; margin-top:30px; }
  .cover-directions .direction-symbol { width:52px; height:52px; }
  .cover-directions a { gap:9px; padding:2px; }
  .cover-directions a>span { font-size:14px; }
  .focus-heading .eyebrow { font-size:11px; }
  .focus-heading h2 { font-size:30px; margin-top:17px; }
  .focus-heading>p:last-child { font-size:13px; margin-top:18px; }
  .focus-visual { height:32dvh; min-height:220px; }
  .focus-visual>img { width:100%; }
  .focus-navigation .agent-tabs { gap:9px; }
  .focus-navigation .agent-tabs button { padding:13px 0; gap:9px; }
  .focus-navigation .agent-tabs button>span:not(.tab-arrow) { font-size:11px; }
  .focus-navigation .agent-tabs small { font-size:8px; }
  .focus-navigation .direction-symbol { width:36px; height:36px; }
  .focus-navigation .agent-tabs .product-wordmark { height:8px; }
  .focus-heading #demo-agent-name .product-wordmark { height:14px; }
  .architecture-content h2 { font-size:29px; }
  .architecture-map { margin-top:34px; }
  .model-node strong { font-size:34px; }
  .model-node>span { font-size:13px; }
  .agent-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 12px; margin-top:70px; }
  .agent-grid::before { top:-23px; left:25%; right:25%; }
  .model-node::after { height:31px; }
  .agent-node::before { top:-23px; height:19px; }
  .agent-node:nth-child(n+3)::before { display:none; }
  .agent-node .direction-symbol { width:60px; height:60px; }
  .agent-node-name { font-size:16px; margin-top:10px; }
  .agent-node .product-wordmark { height:13px; margin-top:10px; }
  .architecture-caption { max-width:280px; margin:30px auto 0; font-size:13px; line-height:1.8; }
}
